/* Базовые стили */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #1a1a2e;
    color: #eee;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 600px;
    width: 90%;
    margin: 20px auto;
    background: #16213e;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

h1, h2 {
    text-align: center;
    color: #e94560;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 8px;
    border: none;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    background: #0f3460;
    color: white;
    transition: 0.2s;
    font-size: 16px;
}

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn.free { background: #2ecc71; color: black; }
.btn.login { background: #3498db; }
.btn.buy { background: #e94560; }
.btn:hover { opacity: 0.8; transform: scale(1.02); }

.buttons-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.result-box {
    background: #0f0f1f;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

code {
    background: #000;
    padding: 8px;
    display: block;
    border-radius: 8px;
    word-break: break-all;
    margin: 10px 0;
    color: #2ecc71;
}

.keys-list {
    background: #0f0f1f;
    padding: 15px;
    border-radius: 12px;
}

.key-item {
    background: #1e2a4a;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.tariffs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tariff-card {
    background: #0f3460;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    min-width: 140px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 30px;
    border: none;
    background: #1e2a4a;
    color: white;
}

a { 
    color: #e94560; 
    text-decoration: none;
}
a:hover { text-decoration: underline; }

.nav-links {
    text-align: center;
    margin-top: 25px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #16213e;
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover {
    color: #e94560;
}

.btn.google-login {
    background: #fff;
    color: #333;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn.google-login:hover {
    background: #f5f5f5;
}

.modal-note {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 20px;
    border-top: 1px solid #2a2a4a;
    padding-top: 15px;
}

.info-note {
    background: #1e2a4a;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    color: #aaa;
}

.empty-msg {
    text-align: center;
    color: #888;
}

/* Добавьте в конец существующего style.css */

.user-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background: #1e2a4a;
    border-radius: 40px;
}

.user-info-card {
    background: #1e2a4a;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details p {
    margin: 5px 0;
    color: #ccc;
}

.user-details strong {
    color: #e94560;
}

.warning-box {
    background: #e94560;
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.warning-box a {
    color: white;
    font-weight: bold;
    text-decoration: underline;
}

.btn.logout {
    background: #e94560;
    padding: 8px 16px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Стили для ключей */
.key-item {
    background: #1e2a4a;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.key-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn.small {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 40px;
}

.empty-msg {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 16px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}