a { text-decoration: none; }
* { outline: none; }

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0c0f;
    font-family: 'Share Tech Mono', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ffcc;
    position: relative;
    overflow-x: hidden;
}

/* Сканирующая линия */
.scanline {
    display: none;
}

/* Основной контейнер */
.container, .admin-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 30px rgba(0,255,204,0.3);
    background: rgba(10,12,15,0.95);
    position: relative;
    z-index: 5;
    backdrop-filter: blur(5px);
}

/* Экраны */
.screen {
    display: none;
    padding: 40px;
    min-height: 600px;
    position: relative;
    border: 1px solid #ff00ff;
    background: repeating-linear-gradient(0deg,
        rgba(0,255,204,0.03) 0px,
        rgba(255,0,255,0.03) 2px,
        transparent 2px,
        transparent 4px
    );
}

.screen.active {
    display: block;
}

/* Заголовок терминала */
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff00ff;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.glitch {
    position: relative;
    color: #00ffcc;
    text-shadow: 0.05em 0 0 #ff00ff, -0.05em -0.025em 0 #0ff;
    animation: glitch 3s infinite;
}

.glitch::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    top: 2px;
    color: #ff00ff;
    opacity: 0.5;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-top 2s infinite;
}

@keyframes glitch {
    0%,100% { text-shadow: 0.05em 0 0 #ff00ff, -0.05em -0.025em 0 #0ff; }
    25% { text-shadow: -0.05em -0.025em 0 #ff00ff, 0.025em 0.025em 0 #0ff; }
    50% { text-shadow: 0.025em 0.05em 0 #ff00ff, -0.05em -0.05em 0 #0ff; }
    75% { text-shadow: -0.05em 0 0 #ff00ff, -0.025em -0.05em 0 #0ff; }
}

.version {
    color: #ff00ff;
    font-size: 1rem;
    border: 1px solid #ff00ff;
    padding: 5px 10px;
    box-shadow: 0 0 10px #ff00ff;
}

/* Форма входа */
.login-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    color: #00ffcc;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glow-input, .cyber-input {
    width: 100%;
    background: transparent;
    border: 2px solid #00ffcc;
    padding: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: #00ffcc;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0,255,204,0.3);
}

.glow-input:focus, .cyber-input:focus {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff, inset 0 0 10px #ff00ff;
    transform: scale(1.02);
}

.glow-input::placeholder {
    color: rgba(0,255,204,0.3);
}

.cyber-button {
    width: 100%;
    background: transparent;
    border: 3px solid #00ffcc;
    color: #00ffcc;
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
}

.cyber-button:hover {
    background: #00ffcc;
    color: #0a0c0f;
    box-shadow: 0 0 40px #00ffcc;
    border-color: #ff00ff;
    transform: scale(1.05);
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 5%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,0,255,0.4), transparent);
    transition: left 1s ease;
}

.cyber-button:hover::before {
    left: 120%;
}

.cyber-button.small {
    padding: 10px 20px 12px;
    font-size: 1rem;
    width: auto;
    margin: 0;
    overflow: visible;
    line-height: 1.2;
}

.hint {
    text-align: center;
    margin-top: 20px;
    color: rgba(255,0,255,0.7);
    font-size: 0.9rem;
    animation: blink 2s infinite;
}

/* Ошибки */
.error-message {
    background: rgba(255,0,255,0.2);
    border: 2px solid #ff00ff;
    color: #ff00ff;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    animation: blink 1s infinite;
}

/* Приветствие пользователя */
.user-welcome {
    color: #00ffcc;
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding: 10px;
    border-left: 4px solid #ff00ff;
    background: rgba(255,0,255,0.1);
}

/* Сетка меню */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 60px;
}

.menu-item {
    border: 2px solid #00ffcc;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(0,255,204,0.05);
}

.menu-item:hover {
    border-color: #ff00ff;
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(255,0,255,0.5),
                inset 0 0 30px rgba(255,0,255,0.3);
    background: rgba(255,0,255,0.1);
}

.menu-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(0,255,204,0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.menu-item:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

.item-number {
    display: block;
    font-size: 3rem;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff;
    margin-bottom: 15px;
}

.item-title {
    display: block;
    font-size: 1.5rem;
    color: #00ffcc;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.item-desc {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,0,255,0.7);
    text-transform: uppercase;
}

/* Статус бар */
.status-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ff00ff;
    color: #00ffcc;
    font-size: 1rem;
}

.status-bar span {
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #00ffcc;
    box-shadow: 0 0 10px rgba(0,255,204,0.3);
}

/* Матричный фон */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
        rgba(0,255,204,0.02) 0px,
        rgba(255,0,255,0.02) 2px,
        transparent 2px,
        transparent 30px
    );
    pointer-events: none;
    z-index: -1;
}

/* Админ панель */
.admin-container {
    width: 95%;
    max-width: 1400px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ff00ff;
    background: rgba(0,0,0,0.5);
}

.admin-content {
    padding: 20px;
}

.control-panel {
    background: rgba(0,255,204,0.05);
    padding: 20px;
    border: 2px solid #00ffcc;
    margin-bottom: 30px;
}

.control-panel h2 {
    color: #ff00ff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.users-table {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    border: 1px solid #00ffcc;
    padding: 12px;
    text-align: left;
}

th {
    background: rgba(0,255,204,0.1);
    color: #ff00ff;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    color: #00ffcc;
}

.role-badge {
    padding: 3px 8px;
    border-radius: 0;
    font-size: 0.9rem;
    display: inline-block;
}

.role-admin {
    background: rgba(255,0,255,0.3);
    border: 1px solid #ff00ff;
    color: #ff00ff;
}

.role-user {
    background: rgba(0,255,204,0.3);
    border: 1px solid #00ffcc;
    color: #00ffcc;
}

.status-badge {
    padding: 3px 8px;
    display: inline-block;
}

.status-badge.active {
    background: rgba(0,255,204,0.3);
    border: 1px solid #00ffcc;
    color: #00ffcc;
}

.status-badge.inactive {
    background: rgba(255,0,255,0.3);
    border: 1px solid #ff00ff;
    color: #ff00ff;
}

.action-btn {
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #00ffcc;
    color: #0a0c0f;
}

.action-btn.delete:hover {
    background: #ff00ff;
    border-color: #ff00ff;
}

/* Логи */
.logs-panel {
    background: rgba(255,0,255,0.05);
    padding: 20px;
    border: 2px solid #ff00ff;
}

.logs-panel h2 {
    color: #00ffcc;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.log-item {
    padding: 10px;
    border-bottom: 1px solid rgba(0,255,204,0.2);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.log-item:hover {
    background: rgba(255,0,255,0.1);
}

.log-time {
    color: #ff00ff;
    min-width: 160px;
}

.log-user {
    color: #00ffcc;
    min-width: 120px;
}

.log-action {
    color: #fff;
    min-width: 100px;
}

.log-details {
    color: rgba(255,255,255,0.5);
    flex: 1;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #0a0c0f;
    margin: 5% auto;
    padding: 30px;
    border: 3px solid #ff00ff;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 50px #ff00ff;
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    color: #ff00ff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #00ffcc;
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #00ffcc;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group small {
    color: #00ffcc;
    opacity: 0.7;
    font-size: 0.8rem;
}

.cyber-select {
    width: 100%;
    background: transparent;
    border: 2px solid #00ffcc;
    padding: 10px;
    color: #00ffcc;
    font-family: 'Share Tech Mono', monospace;
    outline: none;
}

.cyber-select:focus {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
}

.cyber-select option {
    background: #0a0c0f;
    color: #00ffcc;
}

/* Анимации */
@keyframes blink {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0c0f;
}

::-webkit-scrollbar-thumb {
    background: #00ffcc;
    box-shadow: 0 0 20px #00ffcc;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff00ff;
}

/* Выделение текста */
::selection {
    background: #ff00ff;
    color: #00ffcc;
}

/* Адаптивность */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .screen {
        padding: 20px;
    }
    
    .item-number {
        font-size: 2rem;
    }
    
    .item-title {
        font-size: 1.2rem;
    }
    
    .log-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .log-time, .log-user, .log-action {
        min-width: auto;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 8px;
    }
}
/* Стили для автозаказа */
.autoorder-container {
    width: 95%;
    max-width: 1400px;
    margin: 20px;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 30px rgba(0,255,204,0.3);
    background: rgba(10,12,15,0.95);
}

.autoorder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ff00ff;
}

.autoorder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    min-height: 600px;
}

/* Левая панель */
.control-panel {
    background: rgba(0,255,204,0.05);
    border: 2px solid #00ffcc;
    padding: 20px;
}

.control-panel h2, .accounts-panel h2 {
    color: #ff00ff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.control-panel h3 {
    color: #00ffcc;
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.phone-input-section {
    background: rgba(255,0,255,0.05);
    padding: 20px;
    border: 1px solid #ff00ff;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons .cyber-button {
    flex: 1;
    margin: 0;
}

.cyber-button.stop {
    border-color: #ff00ff;
    color: #ff00ff;
}

.cyber-button.stop:hover {
    background: #ff00ff;
    color: #0a0c0f;
    box-shadow: 0 0 40px #ff00ff;
}

.cyber-button.stop:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cyber-button.stop:disabled:hover {
    background: transparent;
    color: #ff00ff;
    box-shadow: none;
}

.status-panel {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border: 1px solid #00ffcc;
}

.status-text {
    color: #00ffcc;
    font-size: 1.1rem;
    margin: 10px 0;
    padding: 10px;
    background: rgba(0,255,204,0.1);
    border-left: 4px solid #00ffcc;
}

.current-phone {
    color: #ff00ff;
    font-size: 1rem;
    padding: 10px;
    background: rgba(255,0,255,0.1);
}

.code-input-group {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,0,255,0.1);
    border: 1px dashed #ff00ff;
}

.code-input-group .cyber-button {
    margin-top: 10px;
}

/* Правая панель - список аккаунтов */
.accounts-panel {
    background: rgba(255,0,255,0.05);
    border: 2px solid #ff00ff;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.accounts-list {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
    border: 1px solid #00ffcc;
    background: rgba(0,0,0,0.3);
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(0,255,204,0.2);
    transition: all 0.3s ease;
}

.account-item:hover {
    background: rgba(255,0,255,0.1);
}

.account-item.verified {
    border-left: 4px solid #00ffcc;
}

.account-item.pending {
    border-left: 4px solid #ff00ff;
    opacity: 0.7;
}

.account-phone {
    color: #00ffcc;
    font-family: monospace;
    font-size: 1.1rem;
}

.account-status {
    padding: 3px 8px;
    font-size: 0.8rem;
}

.account-item.verified .account-status {
    background: rgba(0,255,204,0.3);
    color: #00ffcc;
    border: 1px solid #00ffcc;
}

.account-item.pending .account-status {
    background: rgba(255,0,255,0.3);
    color: #ff00ff;
    border: 1px solid #ff00ff;
}

.account-time {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.no-accounts {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
}

/* Стили для админки */
.accounts-table {
    overflow-x: auto;
    margin: 20px 0;
}

.status-badge.pending {
    background: rgba(255,0,255,0.3);
    border: 1px solid #ff00ff;
    color: #ff00ff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .autoorder-content {
        grid-template-columns: 1fr;
    }
    
    .account-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}