* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030305;
    font-family: 'Jura', sans-serif;
    color: #fff;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}
.logo img {
    max-width: 1000px;
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .logo img {
        max-width: 300px;
    }
}

h1 {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 30px;
    font-weight: 700;
}
h1::after {
    content: ":";
}

/* Поля ввода */
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    color: #8F8E94;
    font-size: 0.85rem;
    margin-bottom: 5px;
}
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #1D1C21;
    border: 1px solid #8F8E94;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s;
}
.input-group textarea {
    resize: vertical;
    min-height: 100px;
}
.input-group input:focus,
.input-group textarea:focus {
    border-color: #FFB128;
}

/* Автозаполнение */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1D1C21 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Поле пароля */
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 90px;
}
.toggle-password {
    position: absolute;
    right: 12px;
    top: 65%;
    transform: translateY(-50%);
    background: url('../images/eye.svg') no-repeat center;
    width: 24px;
    height: 24px;
    border: none;
    cursor: pointer;
    background-size: contain;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    z-index: 2;
}
.toggle-password.active {
    opacity: 1;
}
.generate-password {
    position: absolute;
    right: 45px;
    top: 65%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #FFB128;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 2;
}

/* Градиентные кнопки */
.btn-gradient, .icon-btn {
    background: linear-gradient(45deg, #FFB128, #FF006F, #EB007E, #FFB128);
    background-size: 300% 100%;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    padding: 12px 20px;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-position 0.3s;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}
.btn-gradient:hover, .icon-btn:hover {
    background-position: 100% 0;
}
.full-width {
    width: 100%;
    display: block;
}

/* Иконки-кнопки (круглые) */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}
.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.logout-btn::before {
    background-image: url('../images/logout.svg');
}
.back-btn::before {
    background-image: url('../images/back.svg');
}
.settings-btn::before {
    background-image: url('../images/settings.svg');
}
/* Убираем фон картинок у самих кнопок */
.icon-btn.logout-btn,
.icon-btn.back-btn,
.icon-btn.settings-btn {
    background-image: none !important;
}

/* Кнопка Google (если нужна) */
.btn-google {
    background-color: #030305;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    padding: 12px 20px;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.btn-google img {
    width: 20px;
    height: 20px;
}

.separator {
    text-align: center;
    color: #8F8E94;
    margin: 20px 0;
    position: relative;
}
.separator::before,
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #8F8E94;
}
.separator::before { left: 0; }
.separator::after { right: 0; }

.signup-link {
    text-align: center;
    margin-top: 20px;
}
.signup-link a {
    color: #FFFFFF;
    font-weight: bold;
    text-decoration: underline;
}

.error-message {
    color: #ff4444;
    margin: 10px 0;
    text-align: center;
}
.success-message {
    color: #00ff88;
    margin: 10px 0;
    text-align: center;
}
.info-text {
    text-align: center;
    color: #8F8E94;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}
.header-left, .header-right {
    width: 40px;
}
.header-right {
    visibility: hidden; /* чтобы лого центрировалось, когда нет правой кнопки */
}
.header-center {
    flex: 1;
    text-align: center;
}
.logo-small {
    height: 40px;
    width: auto;
}

/* Секция ключей */
.keys-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: left;
}
.keys-section h2::after {
    content: ":";
}
.keys-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}
.key-card {
    background-color: #1D1C21;
    border: 1px solid #8F8E94;
    border-radius: 12px;
    padding: 12px;
}
.key-name {
    font-weight: bold;
    margin-bottom: 5px;
}
.key-status {
    font-size: 0.85rem;
}
.key-status.blocked {
    color: #ff4444;
}
.key-payment {
    color: #8F8E94;
    font-size: 0.85rem;
}
.key-payment strong {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: bold;
}
.empty {
    color: #8F8E94;
    text-align: center;
}

/* Сетка кнопок действий */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}
.action-btn {
    background-color: #1D1C21;
    border: 1px solid #FFFFFF;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: bold;
    position: relative;
}
.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #FFB128, #FF006F, #EB007E, #FFB128);
    background-size: 300% 100%;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #FFFFFF;
}
.request-access {
    text-align: center;
    margin-top: 20px;
}
.request-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}
.admin-link {
    margin-top: 15px;
    text-align: center;
}
.admin-link a {
    color: #FFB128;
    text-decoration: underline;
}

/* Информационные карточки */
.info-card {
    background-color: #1D1C21;
    border: 1px solid #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.custom-list {
    list-style: none;
    padding-left: 0;
}
.custom-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.4;
}
.custom-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #FFB128;
    font-size: 1.2rem;
}
.custom-list li.warning {
    color: #ff4444;
}
.custom-list li.warning::before {
    color: #ff4444;
    content: "!";
    font-weight: bold;
}
.phone-link {
    color: #FFFFFF;
    text-decoration: underline;
    font-weight: bold;
}
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.download-buttons .btn-outline,
.download-buttons .btn-gradient {
    flex: 1;
    text-align: center;
}
.btn-outline {
    background-color: #1D1C21;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    padding: 10px 20px;
    color: #FFFFFF;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Файловый ввод */
.file-input {
    margin-bottom: 20px;
}
.file-input input[type="file"] {
    margin-top: 8px;
}
.file-name {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #8F8E94;
}
.remove-file {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Новости */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.add-news-btn {
    background: linear-gradient(45deg, #FFB128, #FF006F, #EB007E, #FFB128);
    background-size: 300% 100%;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-card {
    background-color: #1D1C21;
    border: 1px solid #8F8E94;
    border-radius: 12px;
    padding: 15px;
}
.news-date {
    color: #8F8E94;
    font-size: 0.8rem;
    margin-bottom: 5px;
}
.news-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.news-content {
    color: #FFFFFF;
    line-height: 1.4;
}

/* Заглушка настроек */
.placeholder {
    text-align: center;
    margin-top: 50px;
    color: #8F8E94;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #1D1C21;
}
::-webkit-scrollbar-thumb {
    background: #FFB128;
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    .action-buttons {
        gap: 10px;
    }
    .download-buttons {
        flex-direction: column;
    }
}
/* ===    lk.php === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}
.header-left, .header-right {
    width: 40px;
}
.header-center {
    flex: 1;
    text-align: center;
}
.logo-small {
    height: 40px;
    width: auto;
}

/* ===       (, ) === */
.icon-btn {
    background: linear-gradient(45deg, #FFB128, #FF006F, #EB007E, #FFB128) !important;
    background-size: 300% 100% !important;
    border: 1px solid #FFFFFF !important;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-position 0.3s;
}
.icon-btn:hover {
    background-position: 100% 0 !important;
}
.icon-btn.logout-btn,
.icon-btn.settings-btn {
    background-image: none !important;
}
.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.logout-btn::before {
    background-image: url('../images/logout.svg');
}
.settings-btn::before {
    background-image: url('../images/settings.svg');
}

/* ===   - === */
.admin-link {
    margin-top: 15px;
    text-align: center;
}
.admin-link a {
    color: #FFB128;
    text-decoration: underline;
}