/* ===== Базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(ellipse at top, #141827 0%, #0a0c14 60%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== Карточка (для форм) ===== */
.card {
    background: #1a1d2e;
    padding: 45px 40px;
    border-radius: 24px;
    border: 1px solid #2a2d3e;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 60px rgba(124, 140, 255, 0.12);
}

/* ===== Логотип ===== */
.logo {
    font-size: 48px;
    text-align: center;
    color: #7c8cff;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(124, 140, 255, 0.5);
}

/* ===== Заголовки ===== */
h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

h2 {
    font-size: 18px;
    font-weight: 500;
    color: #8a8d9b;
    text-align: center;
    margin-bottom: 30px;
}

/* ===== Поля ввода ===== */
input {
    width: 100%;
    padding: 14px 18px;
    margin: 8px 0;
    background: #0f1220;
    border: 1px solid #2a2d3e;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: #7c8cff;
    box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.15);
}

input::placeholder {
    color: #5a5d6b;
}

/* ===== Кнопки ===== */
button, .btn {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: #7c8cff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    background: #8f9cff;
    box-shadow: 0 0 30px rgba(124, 140, 255, 0.4);
    transform: translateY(-1px);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* ===== Вторичная кнопка ===== */
.btn-secondary {
    background: #1a1d2e;
    border: 1px solid #2a2d3e;
    color: #fff;
}

.btn-secondary:hover {
    background: #252a45;
    box-shadow: none;
}

/* ===== Ссылки ===== */
a {
    color: #7c8cff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #a5b3ff;
}

.muted {
    color: #8a8d9b;
    font-size: 13px;
    text-align: center;
    margin-top: 20px;
}

/* ===== Ошибки ===== */
.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
}

.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
}

/* ===== Статус подписки ===== */
.sub-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sub-active {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.sub-inactive {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* ===== Админка (таблица) ===== */
.admin-wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1d2e;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a2d3e;
    margin-top: 20px;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #2a2d3e;
}

th {
    background: #0f1220;
    color: #8a8d9b;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(124, 140, 255, 0.05);
}

/* ===== Хедер ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    text-align: left;
    margin: 0;
}

/* ===== Кнопки в таблице ===== */
.action-link {
    color: #7c8cff;
    font-size: 13px;
    margin-right: 10px;
}

.action-link.danger {
    color: #ff6b6b;
}

.mono {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #8a8d9b;
}