:root {
    --main-color: #8B4513;
    --main-dark: #5a2d08;
    --secondary-color: #FFA500;
    --secondary-dark: #cc8400;
    --accent-color: #75C94F;
    --bg-dark: #121212;
    --bg-medium: #1e1e1e;
    --bg-light: #2a2a2a;
    --text-color: #f0f0f0;
    --text-muted: #aaaaaa;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Minecraft';
    src: url('minecraft.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Minecraft', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
    overflow-x: hidden;
}

/* Стили для экрана блокировки */
#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#auth-overlay .logo {
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

#auth-overlay .welcome-message {
    text-align: center;
    margin-bottom: 20px;
    max-width: 500px;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

#auth-overlay .auth-container {
    background-color: var(--bg-medium);
    padding: clamp(20px, 5vw, 30px);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--box-shadow);
}

#auth-overlay .auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
}

#auth-overlay .auth-tab {
    flex: 1;
    padding: 12px 8px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: clamp(0.9rem, 3vw, 1rem);
}

#auth-overlay .auth-tab.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

#auth-overlay .auth-form {
    display: none;
}

#auth-overlay .auth-form.active {
    display: block;
}

#auth-overlay input {
    width: 100%;
    padding: 14px 12px;
    margin: 8px 0;
    border-radius: var(--border-radius);
    border: none;
    background-color: var(--bg-light);
    color: var(--text-color);
    font-size: 16px;
    -webkit-appearance: none;
}

#auth-overlay button[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--border-radius);
    width: 100%;
    cursor: pointer;
    margin: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
    min-height: 50px;
}

#auth-overlay button[type="submit"]:hover {
    background-color: #5cb85c;
}

#auth-overlay .auth-switch {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    margin-top: 10px;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 8px;
}

#auth-overlay .auth-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.9rem;
}

#auth-overlay .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

#auth-overlay .form-row input {
    flex: 1;
    min-width: 120px;
}

#auth-overlay .password-reset {
    text-align: center;
    margin: 10px 0;
}

#auth-overlay .password-reset a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px;
    display: inline-block;
}

/* Стили для кода бота */
.bot-code-section {
    margin: 15px 0;
}

.bot-code-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-direction: column;
}

.bot-code-input input {
    flex: 1;
}

.bot-info {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    border-left: 4px solid var(--secondary-color);
    font-size: 0.9rem;
}

.bot-info p {
    margin-bottom: 8px;
}

.bot-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 0;
}

/* Основные стили сайта */
#main-content {
    display: none;
}

/* Стили для экрана бана */
#banned-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

#banned-overlay .ban-icon {
    font-size: 4rem;
    color: #ff4444;
    margin-bottom: 20px;
}

#banned-overlay .ban-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    color: #ff4444;
    margin-bottom: 15px;
}

#banned-overlay .ban-message {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 25px;
    max-width: 500px;
}

#banned-overlay .ban-contact {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
}

/* Стили для обратного отсчета */
.countdown-container {
    background-color: var(--bg-medium);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 2px solid #ff4444;
    max-width: 400px;
    width: 100%;
}

.countdown-title {
    color: #ff4444;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.countdown-unit {
    background-color: var(--bg-dark);
    padding: 10px;
    border-radius: var(--border-radius);
    min-width: 60px;
}

.countdown-value {
    font-size: 2rem;
    font-weight: bold;
    color: #ff4444;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.ban-reason {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    border-left: 4px solid #ff4444;
}

.ban-reason-title {
    color: #ff4444;
    margin-bottom: 8px;
    font-weight: bold;
}

.permanent-ban {
    background-color: var(--bg-medium);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 2px solid #ff4444;
    max-width: 400px;
    width: 100%;
}

.permanent-ban-title {
    color: #ff4444;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

header {
    background-color: var(--bg-medium);
    padding: 15px;
    border-bottom: 4px solid var(--main-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    font-size: 0.9rem;
    min-height: 36px;
}

.auth-header-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-1px);
}

.auth-header-btn.logout {
    background-color: var(--main-color);
}

.auth-header-btn.logout:hover {
    background-color: var(--main-dark);
}

h1 {
    color: var(--secondary-color);
    margin: 0;
    font-size: clamp(1.3rem, 6vw, 2rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.minecraft-icon {
    display: inline-block;
    width: clamp(24px, 6vw, 32px);
    height: clamp(24px, 6vw, 32px);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%2375C94F" d="M4 2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m2 4v4h4v2H8v6h2v-2h4v2h2v-6h-2v-2h4V6h-4v4h-4V6H6z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
}

.tabs {
    display: flex;
    overflow-x: auto;
    background-color: var(--bg-medium);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 73px;
    z-index: 90;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 12px 15px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    white-space: nowrap;
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 44px;
}

.tab-btn:hover {
    background-color: rgba(139, 69, 19, 0.3);
    color: var(--secondary-color);
}

.tab-btn.active {
    background-color: var(--main-color);
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.tabcontent {
    display: none;
    padding: 20px 15px;
    background-color: var(--bg-medium);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.3s ease;
}

.tabcontent.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    position: relative;
    padding-bottom: 8px;
    line-height: 1.3;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--main-color);
    border-radius: 3px;
}

h3 {
    color: var(--secondary-color);
    margin: 15px 0 10px;
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    line-height: 1.3;
}

p, li {
    margin-bottom: 8px;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 6px;
}

.download-section {
    background-color: var(--bg-light);
    padding: 20px 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.download-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin: 12px 0;
    font-weight: bold;
    width: 100%;
    max-width: 280px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 50px;
}

.download-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.download-btn i {
    font-size: 1.1rem;
}

.version-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--main-color);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 8px;
}

.server-ip {
    display: inline-block;
    padding: 12px 16px;
    background-color: var(--bg-light);
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin: 12px 0;
    color: var(--accent-color);
    box-shadow: var(--box-shadow);
    word-break: break-all;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--main-color);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    display: block;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    background: #000;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    margin: 12px 0;
    box-shadow: var(--box-shadow);
}

.link-card:hover {
    background-color: var(--main-color);
    transform: translateX(3px);
}

.link-card i {
    font-size: 1.3rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

footer {
    background-color: var(--bg-medium);
    text-align: center;
    padding: 20px 15px;
    border-top: 4px solid var(--main-color);
    margin-top: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-color);
    font-size: 1.4rem;
    transition: var(--transition);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.copyright {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Стили для профиля пользователя */
.user-profile {
    background-color: var(--bg-light);
    padding: 20px 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: none;
}

.user-profile.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-direction: column;
}

.profile-info h3 {
    color: var(--secondary-color);
    margin: 0 0 5px 0;
    font-size: clamp(1.2rem, 4vw, 1.4rem);
}

.profile-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.profile-detail {
    background-color: var(--bg-medium);
    padding: 12px;
    border-radius: var(--border-radius);
}

.profile-detail h4 {
    color: var(--secondary-color);
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.profile-detail p {
    margin: 0;
    font-size: 1rem;
}

.status-admin {
    color: #ff5555;
    font-weight: bold;
}

.status-player {
    color: var(--accent-color);
    font-weight: bold;
}

.status-vip {
    color: #ffcc00;
    font-weight: bold;
}

.status-csrv {
    color: #00ccff;
    font-weight: bold;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
    min-height: 44px;
}

.logout-btn:hover {
    background-color: var(--main-dark);
    transform: translateY(-2px);
}

/* Стили для удаления аккаунта */
.delete-account-section {
    background-color: var(--bg-light);
    padding: 20px 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    border-left: 4px solid #ff4444;
    box-shadow: var(--box-shadow);
}

.delete-account-warning {
    background-color: rgba(255, 68, 68, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 1px solid #ff4444;
}

.delete-account-warning h4 {
    color:#ff4444;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
    min-height: 50px;
}

.delete-account-btn:hover {
    background-color: #cc3333;
    transform: translateY(-2px);
}

.delete-account-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10002;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-medium);
    padding: 25px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--box-shadow);
    animation: fadeIn 0.3s ease;
}

.modal-title {
    color: #ff4444;
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    min-height: 44px;
    min-width: 120px;
}

.modal-btn.confirm {
    background-color: #ff4444;
    color: white;
}

.modal-btn.confirm:hover {
    background-color: #cc3333;
}

.modal-btn.cancel {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.modal-btn.cancel:hover {
    background-color: var(--main-color);
}

.account-deletion-info {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border-left: 4px solid var(--accent-color);
}

.account-deletion-info h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.recovery-countdown {
    background-color: var(--bg-medium);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    border: 2px solid var(--accent-color);
}

.recovery-countdown h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.countdown-display {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.countdown-item {
    background-color: var(--bg-dark);
    padding: 10px;
    border-radius: var(--border-radius);
    min-width: 60px;
    text-align: center;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.restore-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
    min-height: 50px;
    margin-top: 15px;
}

.restore-account-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-2px);
}

/* Стили для кнопки редактирования профиля */
.profile-actions {
    margin: 20px 0;
    text-align: center;
}

.edit-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    min-height: 44px;
}

.edit-profile-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* Стили для формы редактирования профиля */
.edit-profile-form {
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.profile-info-note {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin-top: 20px;
}

.profile-info-note p {
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-info-note i {
    color: var(--secondary-color);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 10004;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.error {
    background-color: #ff4444;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    animation: slideIn 0.3s ease;
}

/* Адаптивные стили */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .tabs {
        top: 63px;
        padding: 2px;
    }

    .tab-btn {
        padding: 10px 12px;
        gap: 4px;
        font-size: 0.8rem;
    }

    .tabcontent {
        padding: 15px 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    .download-btn {
        max-width: 100%;
    }

    header {
        padding: 12px;
    }

    #auth-overlay {
        padding: 15px;
    }

    #auth-overlay .auth-container {
        padding: 15px;
    }

    .countdown-timer {
        gap: 5px;
    }

    .countdown-unit {
        min-width: 50px;
        padding: 8px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 20px 15px;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .profile-header {
        flex-direction: row;
        text-align: left;
    }

    .bot-code-input {
        flex-direction: row;
    }

    .form-row {
        flex-wrap: nowrap;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 1.1rem;
    }

    .tab-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .minecraft-icon {
        width: 20px;
        height: 20px;
    }
}

/* Улучшения для touch devices */
@media (hover: none) {
    .tab-btn:hover {
        background-color: transparent;
        color: var(--text-color);
    }

    .tab-btn.active:hover {
        background-color: var(--main-color);
        color: white;
    }

    .download-btn:hover,
    .link-card:hover,
    .feature-card:hover {
        transform: none;
    }

    .download-btn:active,
    .link-card:active,
    .feature-card:active {
        transform: scale(0.98);
    }
}

/* Предотвращение выделения текста при тапе */
.tab-btn,
.download-btn,
.logout-btn,
.social-link {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Оптимизация анимаций */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Cookies Banner */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    z-index: 10005;
    animation: slideIn 0.3s ease;
}

.cookies-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.cookies-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.cookies-text {
    flex: 1;
    min-width: 200px;
}

.cookies-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.accept-cookies-btn {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 40px;
}

.accept-cookies-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-2px);
}

/* Скрытый класс для баннера */
.cookies-banner.hidden {
    display: none;
}

/* Мобильные стили для cookies */
@media (max-width: 480px) {
    .cookies-banner {
        padding: 12px;
        position: static;
        margin-top: 20px;
    }

    .cookies-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookies-text p {
        font-size: 0.85rem;
        text-align: center;
    }

    .accept-cookies-btn {
        width: 100%;
        max-width: 200px;
        align-self: center;
    }
}

/* Стили для контактной секции */
.contact-section {
    background-color: var(--bg-light);
    padding: 20px 15px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--accent-color);
}

.contact-section h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-section p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    min-height: 44px;
}

.contact-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-2px);
}

/* Стили для контактной формы */
.contact-form {
    margin: 20px 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--bg-light);
    border-radius: var(--border-radius);
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.submit-btn {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    min-height: 44px;
    min-width: 150px;
}

.submit-btn:hover {
    background-color: #5cb85c;
    transform: translateY(-2px);
}

.cancel-btn {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--bg-light);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    min-height: 44px;
    min-width: 150px;
}

.cancel-btn:hover {
    background-color: var(--main-color);
    color: white;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.9rem;
}

.form-status.success {
    color: var(--accent-color);
    background-color: rgba(117, 201, 79, 0.1);
    border: 1px solid var(--accent-color);
}

.form-status.error {
    color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
}

/* Мобильные стили для контактной формы */
@media (max-width: 480px) {
    .contact-form .form-actions {
        flex-direction: column;
    }

    .submit-btn,
    .cancel-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}



/* Стили для системы устройств */
.profile-section {
    background-color: var(--bg-medium);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--secondary-color);
}

.profile-section h4 {
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section h4 i {
    opacity: 0.7;
}

.devices-list {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.device-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 15px;
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.device-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.device-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-medium);
    border-radius: 50%;
}

.device-info {
    flex: 1;
    min-width: 200px;
}

.device-name {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 4px;
}

.device-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.device-last-login {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.current-device-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 4px;
    display: inline-block;
}

.device-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.device-btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.device-btn.logout {
    background-color: #dc3545;
    color: white;
}

.device-btn.logout:hover {
    background-color: #c82333;
}

.device-btn.logout-all {
    background-color: #ffc107;
    color: #000;
}

.device-btn.logout-all:hover {
    background-color: #e0a800;
}

.devices-loading,
.no-devices {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.devices-loading i,
.no-devices i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.no-devices h5 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.no-devices p {
    font-size: 0.9rem;
}

/* Мобильные стили для устройств */
@media (max-width: 768px) {
    .device-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .device-actions {
        width: 100%;
    }

    .device-btn {
        flex: 1;
        justify-content: center;
        min-height: 36px;
    }

    .current-device-badge {
        align-self: flex-start;
    }
}
