body {
    margin: 0;
    font-family: 'Press Start 2P', monospace;
    background-color: #1b1b1b;
    color: #e0c341;
    font-size: 11px; /* чуть меньше */
    line-height: 1.6;
}

/* Навбар */
.navbar {
    background: #222;
    border-bottom: 3px solid #e0c341;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 13px;
    color: #e0c341;
    letter-spacing: 1px;
}

.navbar nav a {
    margin: 0 14px;
    color: #bbb;
    text-decoration: none;
    transition: 0.25s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

    .navbar nav a.active,
    .navbar nav a:hover {
        color: #e0c341;
        border-bottom: 2px solid #e0c341;
    }

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-logout {
    background: #e0c341;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

    .btn-logout:hover {
        background: #d1b42f;
    }

/* Контент */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Подписка */
.subscription-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a2a;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 28px;
    border: 2px solid #3a3a3a;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.active-sub {
    color: #9dd776;
}

.inactive-sub {
    color: #e76a6a;
}

.btn-sub {
    background: #e0c341;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

    .btn-sub:hover {
        background: #d1b42f;
    }

/* Клубы */
.clubs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .clubs-header h2 {
        font-size: 13px;
        margin: 0;
    }

.btn-add {
    background: #e0c341;
    color: #111;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.25s;
}

    .btn-add:hover {
        background: #d1b42f;
    }

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    justify-content: start; /* прижимаем карточки влево */
    max-width: 1100px; /* ограничиваем ширину контейнера */
}

.club-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px; /* фиксированная компактная высота */
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.club-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border-color: #e0c341;
}

.club-card h3 {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #e0c341;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.club-info {
    text-align: center;
    font-size: 11px;
    color: #ddd;
    margin: 6px 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.short-link {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.btn-edit {
    padding: 6px 12px;
    background: #e0c341;
    color: #111;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    font-size: 11px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-edit:hover {
    background: #d1b42f;
}

.club-ip {
    text-align: center;
    font-size: 12px;
    color: #ddd;
    margin: 6px 0;
}

.short-link {
    margin: 6px 0;
    font-size: 11px;
    color: #ccc;
    line-height: 1.4;
    text-align: left; /* именно короткая ссылка по левому краю */
}

.empty {
    text-align: center;
    color: #888;
    margin-top: 35px;
}

.form-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background: #1c1c1c;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.2);
    color: #f0f0f0;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #ffdd00;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: #dcdcdc;
    }

.form-group input {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #ffdd00;
    outline: none;
    box-shadow: 0 0 6px #ffdd00;
}

span.field-validation-error {
    color: #ff6b6b;
    font-size: 0.85rem;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: #ffdd00;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #e6c900;
}

.btn-cancel {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.btn-cancel:hover {
    color: #ffdd00;
}


.club-card {
    position: relative;
    z-index: 1;
}

.btn-delete {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #e74c3c;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 12px;
    cursor: pointer;
    border: none;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.actions-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 14px;
}

.inline-form { display: inline; margin: 0; }

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: .25s ease;
    font-family: inherit;
    font-size: 12px;
}

.btn-primary {
    background: #ffdd00;
    color: #111;
}
.btn-primary:hover { background: #e6c900; }

.btn-danger {
    background: #e74c3c;
    color: #fff;
}
.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,.25);
}

.btn-ghost {
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
}
.btn-ghost:hover { color: #ffdd00; border-color: #666; }

.club-title {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #e0c341;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-host {
    text-align: center;           /* твое требование – IP:порт по центру */
    font-weight: 600;
    margin-bottom: 6px;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-version {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #3a3a3a;
    background: #232323;
    margin: 0 auto 6px auto;      /* по центру под IP */
    text-align: center;
}

.club-version.ok {
    border-color: #2e7d32;
    color: #9dd776;
}

.club-version.err {
    border-color: #7d2e2e;
    color: #e76a6a;
}

.club-shortline {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: start;
    margin-top: 6px;
}

.short-label {
    color: #999;
    font-size: 10px;
}

.short-value {
    text-align: left;             /* короткая ссылка по левому краю */
    word-break: break-word;       /* если вдруг длинная */
}

.form-check-label {
    display: flex;
    justify-content: space-between; /* текст слева, чекбокс справа */
    align-items: center;
    width: 100%;
    font-size: 12px;
    cursor: pointer;
}

    .form-check-label input[type="checkbox"] {
        margin-left: 10px; /* отступ от текста */
        width: 18px;
        height: 18px;
        flex-shrink: 0; /* чтобы чекбокс не растягивался */
    }

.admin-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 10px;
    text-align: left;
    white-space: nowrap;
    color: #f0f0f0;
    border-bottom: 1px solid #444;
}
.admin-table th:nth-child(1) { width: 10%; } /* ID */
.admin-table th:nth-child(2) { width: 25%; } /* Имя пользователя */
.admin-table th:nth-child(3) { width: 30%; } /* Статус подписки */
.admin-table th:nth-child(4) { width: 35%; } /* Действия */


/*footer */
.site-footer {
    width: 100%;
    background-color: #161616;
    padding: 30px 20px;
    border-top: 2px solid #2a2a2a;
    color: #cfcfcf;
    text-align: center;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-info p {
    margin: 0;
    line-height: 1.6;
}

.footer-info a {
    color: #e0c341;
    text-decoration: none;
    font-weight: 500;
}

.footer-info a:hover {
    color: #d1b42f;
    text-decoration: underline;
}

.footer-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-buttons a.footer-btn {
    background: #e0c341;
    color: #0a0a0a;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-buttons a.footer-btn:hover {
    background: #d1b42f;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-buttons {
        flex-direction: column;
        gap: 12px;
    }
}
