* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo span {
    color: #4fc3f7;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: #ffffff;
}

h1, h2, h3 {
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}

.footer-content {
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    color: #b0b0b0;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #4fc3f7;
}

.copyright {
    color: #b0b0b0;
    font-size: 14px;
}

/* Staff page styles */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.staff-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.staff-card-header {
    height: 100px;
    background: linear-gradient(45deg, #2E7D32, #4CAF50);
    position: relative;
}

.staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
}

.staff-card-body {
    padding: 50px 20px 20px;
    text-align: center;
}

.staff-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.staff-rank {
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 15px;
}

.staff-desc {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
}

.rank-admin {
    background: linear-gradient(45deg, #d32f2f, #f44336);
}

.rank-moderator {
    background: linear-gradient(45deg, #1976D2, #2196F3);
}

.rank-helper {
    background: linear-gradient(45deg, #7B1FA2, #9C27B0);
}

.rank-developer {
    background: linear-gradient(45deg, #FF8F00, #FFA000);
}

/* Plugins page styles */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plugin-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.plugin-header {
    height: 150px;
    background: linear-gradient(45deg, #2E7D32, #4CAF50);
    display: flex;
    justify-content: center;
    align-items: center;
}

.plugin-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.plugin-body {
    padding: 20px;
}

.plugin-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.plugin-author {
    color: #4fc3f7;
    margin-bottom: 15px;
}

.plugin-desc {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.plugin-links {
    display: flex;
    gap: 10px;
}

.plugin-link {
    padding: 8px 15px;
    background: #2a2a2a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.plugin-link:hover {
    background: #4fc3f7;
}

.download-count {
    margin-top: 15px;
    color: #b0b0b0;
    font-size: 14px;
}

/* Rules page styles */
.rules-container {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.rule-category {
    margin-bottom: 30px;
}

.rule-category h3 {
    color: #4fc3f7;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #2a2a2a;
}

.rule-item {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.rule-item::before {
    content: "•";
    color: #4fc3f7;
    position: absolute;
    left: 0;
}

/* Admin panel styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.login-form {
    max-width: 400px;
    margin: 50px auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: none;
    border-radius: 5px;
    color: white;
}

.form-group textarea {
    min-height: 150px;
}

.btn {
    padding: 10px 20px;
    background: #4fc3f7;
    color: #0f0f0f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #3da8d8;
}

.btn-danger {
    background: #f44336;
}

.btn-danger:hover {
    background: #d32f2f;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.dashboard-card h3 {
    margin-bottom: 10px;
    color: #4fc3f7;
}

.dashboard-card p {
    font-size: 24px;
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.table th {
    background: #1a1a1a;
    color: #4fc3f7;
}

.table tr:hover {
    background: #1e1e1e;
}

.page-description {
    text-align: center;
    margin-bottom: 30px;
    color: #b0b0b0;
    font-size: 18px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.staff-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.staff-card-header {
    height: 120px;
    position: relative;
}

.staff-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    background: #2a2a2a;
}

.staff-card-body {
    padding: 60px 20px 25px;
    text-align: center;
}

.staff-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.staff-rank {
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 16px;
}

.staff-desc {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

.staff-contacts {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.staff-contact {
    color: #b0b0b0;
    font-size: 18px;
    transition: color 0.3s;
}

.staff-contact:hover {
    color: #4fc3f7;
}

/* Rank colors */
.rank-admin {
    background: linear-gradient(45deg, #d32f2f, #f44336);
}

.rank-moderator {
    background: linear-gradient(45deg, #1976D2, #2196F3);
}

.rank-helper {
    background: linear-gradient(45deg, #7B1FA2, #9C27B0);
}

.rank-developer {
    background: linear-gradient(45deg, #FF8F00, #FFA000);
}

.rank-media {
    background: linear-gradient(45deg, #00897B, #00ACC1);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.table th {
    background: #1a1a1a;
    color: #4fc3f7;
}

.table tr:hover {
    background: #1e1e1e;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.rank-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rank-selector label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.rank-selector input[type="radio"] {
    margin-right: 5px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
}

.login-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 10px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #4fc3f7;
}

.admin-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-section h2 {
    color: #4fc3f7;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: #ffffff;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4fc3f7;
    color: #0f0f0f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #3da8d8;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.dashboard-card h3 {
    color: #b0b0b0;
    margin-bottom: 10px;
    font-size: 18px;
}

.dashboard-card p {
    font-size: 24px;
    font-weight: 600;
    color: #4fc3f7;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.table th {
    background: #1a1a1a;
    color: #4fc3f7;
}

.table tr:hover {
    background: #1e1e1e;
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plugin-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.plugin-header {
    height: 150px;
    background: linear-gradient(45deg, #2E7D32, #4CAF50);
    display: flex;
    justify-content: center;
    align-items: center;
}

.plugin-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    color: white;
    font-size: 60px;
}

.plugin-body {
    padding: 20px;
}

.plugin-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.plugin-author {
    color: #4fc3f7;
    margin-bottom: 15px;
}

.plugin-desc {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 60px;
}

.plugin-links {
    display: flex;
    gap: 10px;
}

.plugin-link {
    padding: 8px 15px;
    background: #2a2a2a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.plugin-link:hover {
    background: #4fc3f7;
}

.download-count {
    margin-top: 15px;
    color: #b0b0b0;
    font-size: 14px;
}

.page-description {
    text-align: center;
    margin-bottom: 30px;
    color: #b0b0b0;
    font-size: 18px;
}

.current-file {
    margin-top: 5px;
    color: #b0b0b0;
    font-size: 14px;
}

.btn + .btn {
    margin-left: 10px;
}

.rules-container {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    color: #ffffff;
}

.rules-container h1, .rules-container h2, .rules-container h3 {
    color: #4fc3f7;
    margin-bottom: 15px;
}

.rules-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.rules-container ul, .rules-container ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.rules-container li {
    margin-bottom: 5px;
}

.rules-container a {
    color: #4fc3f7;
    text-decoration: none;
}

.rules-container a:hover {
    text-decoration: underline;
}

.tox-tinymce {
    border-radius: 5px !important;
    border: 1px solid #3a3a3a !important;
}

.error-message {
    color: #f44336;
    margin-top: 15px;
    font-size: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 15px;
}

.logo span {
    color: #4fc3f7;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
}

.nav a:hover, .nav a.active {
    color: #ffffff;
}

h1, h2, h3 {
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

.page-description {
    text-align: center;
    margin-bottom: 20px;
    color: #b0b0b0;
    font-size: 16px;
    padding: 0 10px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.staff-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.staff-card-header {
    height: 100px;
    position: relative;
}

.staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    background: #2a2a2a;
}

.staff-card-body {
    padding: 50px 15px 20px;
    text-align: center;
}

.staff-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.staff-rank {
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 16px;
}

.staff-desc {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.staff-contacts {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.staff-contact {
    color: #b0b0b0;
    font-size: 18px;
    transition: color 0.3s;
}

.staff-contact:hover {
    color: #4fc3f7;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.plugin-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.plugin-header {
    height: 120px;
    background: linear-gradient(45deg, #2E7D32, #4CAF50);
    display: flex;
    justify-content: center;
    align-items: center;
}

.plugin-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.plugin-body {
    padding: 20px 15px;
}

.plugin-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plugin-author {
    color: #4fc3f7;
    margin-bottom: 12px;
    font-size: 14px;
}

.plugin-desc {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.plugin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plugin-link {
    padding: 8px 12px;
    background: #2a2a2a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 14px;
}

.plugin-link:hover {
    background: #4fc3f7;
}

.download-count {
    margin-top: 12px;
    color: #b0b0b0;
    font-size: 13px;
}

.rules-container {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.rules-container h1, .rules-container h2, .rules-container h3 {
    color: #4fc3f7;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #2a2a2a;
}

.rules-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.rules-container ul, .rules-container ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.rules-container li {
    margin-bottom: 8px;
}

.rules-container a {
    color: #4fc3f7;
    text-decoration: none;
}

.rules-container a:hover {
    text-decoration: underline;
}

.admin-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.login-form {
    max-width: 400px;
    margin: 30px auto;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-size: 14px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: white;
    font-size: 14px;
}

.form-group textarea {
    min-height: 120px;
}

.btn {
    padding: 10px 18px;
    background: #4fc3f7;
    color: #0f0f0f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 14px;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #3da8d8;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.dashboard-card h3 {
    color: #b0b0b0;
    margin-bottom: 8px;
    font-size: 16px;
}

.dashboard-card p {
    font-size: 20px;
    font-weight: 600;
    color: #4fc3f7;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.table th, .table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}

.table th {
    background: #1a1a1a;
    color: #4fc3f7;
    font-size: 14px;
}

.table tr:hover {
    background: #1e1e1e;
}

.error-message {
    color: #f44336;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.captcha-container {
    max-width: 100%;
    width: 350px;
    margin: 20px auto;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    text-align: center;
}

.captcha-code {
    font-size: 28px;
    letter-spacing: 3px;
    background: #2a2a2a;
    padding: 12px;
    margin: 15px 0;
    color: #4fc3f7;
    font-weight: bold;
    border-radius: 5px;
}

.captcha-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    text-align: center;
}

.captcha-btn {
    width: 100%;
    padding: 12px;
    background: #4fc3f7;
    color: #0f0f0f;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.captcha-btn:hover {
    background: #3da8d8;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .plugins-grid {
        grid-template-columns: 1fr;
    }

    .staff-card-header {
        height: 80px;
    }

    .staff-avatar {
        width: 70px;
        height: 70px;
        bottom: -35px;
    }

    .staff-card-body {
        padding: 45px 10px 15px;
    }

    .plugin-header {
        height: 100px;
    }

    .plugin-icon {
        width: 70px;
        height: 70px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .table {
        display: block;
        overflow-x: auto;
    }

    .admin-container {
        padding: 10px;
    }

    .login-form {
        padding: 20px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .nav {
        gap: 8px;
    }

    .nav a {
        padding: 5px 8px;
        font-size: 14px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .plugin-links {
        flex-direction: column;
    }

    .plugin-link {
        width: 100%;
        text-align: center;
    }

    .captcha-container {
        width: 90%;
        padding: 15px;
    }

    .captcha-code {
        font-size: 24px;
        padding: 10px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 30px;
    color: #4fc3f7;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-label {
    color: #b0b0b0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .stat-icon {
        font-size: 25px;
    }

    .stat-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo span {
    color: #4fc3f7;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: #ffffff;
}

h1, h2, h3 {
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 22px;
}

.footer-content {
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    color: #b0b0b0;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #4fc3f7;
}

.copyright {
    color: #b0b0b0;
    font-size: 14px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.staff-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.staff-card-header {
    height: 100px;
    background: linear-gradient(45deg, #2E7D32, #4CAF50);
    position: relative;
}

.staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
}

.staff-card-body {
    padding: 50px 20px 20px;
    text-align: center;
}

.staff-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.staff-rank {
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 15px;
}

.staff-desc {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
}

.rank-admin {
    background: linear-gradient(45deg, #d32f2f, #f44336);
}

.rank-moderator {
    background: linear-gradient(45deg, #1976D2, #2196F3);
}

.rank-helper {
    background: linear-gradient(45deg, #7B1FA2, #9C27B0);
}

.rank-developer {
    background: linear-gradient(45deg, #FF8F00, #FFA000);
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plugin-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.plugin-header {
    height: 150px;
    background: linear-gradient(45deg, #2E7D32, #4CAF50);
    display: flex;
    justify-content: center;
    align-items: center;
}

.plugin-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.plugin-body {
    padding: 20px;
}

.plugin-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.plugin-author {
    color: #4fc3f7;
    margin-bottom: 15px;
}

.plugin-desc {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.5;
}

.plugin-links {
    display: flex;
    gap: 10px;
}

.plugin-link {
    padding: 8px 15px;
    background: #2a2a2a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.plugin-link:hover {
    background: #4fc3f7;
}

.download-count {
    margin-top: 15px;
    color: #b0b0b0;
    font-size: 14px;
}

.rules-container {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.rule-category {
    margin-bottom: 30px;
}

.rule-category h3 {
    color: #4fc3f7;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #2a2a2a;
}

.rule-item {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.rule-item::before {
    content: "•";
    color: #4fc3f7;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .plugins-grid {
        grid-template-columns: 1fr;
    }

    .staff-card-header {
        height: 80px;
    }

    .staff-avatar {
        width: 70px;
        height: 70px;
        bottom: -35px;
    }

    .plugin-header {
        height: 100px;
    }

    .plugin-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .nav {
        gap: 8px;
    }

    .nav a {
        padding: 5px 8px;
        font-size: 14px;
    }

    .plugin-links {
        flex-direction: column;
    }

    .plugin-link {
        width: 100%;
        text-align: center;
    }
}

/* Rules page styles */
.rules-container {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.rule-section {
    margin-bottom: 30px;
}

.rule-section h2 {
    color: #4fc3f7;
    text-align: left;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 22px;
}

.rules-list {
    list-style-type: none;
}

.rule-item {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.rule-item::before {
    content: "•";
    color: #4fc3f7;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.loading {
    text-align: center;
    color: #b0b0b0;
    font-style: italic;
}

.error {
    color: #f44336;
    text-align: center;
    padding: 20px;
}

.loading {
    text-align: center;
    color: #b0b0b0;
    padding: 20px;
    font-style: italic;
}

.error {
    text-align: center;
    color: #ff5555;
    padding: 20px;
    border: 1px solid #ff5555;
    border-radius: 5px;
    margin: 20px;
    background-color: #1a1a1a;
}

.reload-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #4fc3f7;
    color: #0f0f0f;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.reload-btn:hover {
    background-color: #3da8d8;
}

/* Стили для аватаров */
.staff-card-header {
    height: 120px;
    position: relative;
    background: linear-gradient(45deg, #2E7D32, #4CAF50);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    background-color: #2a2a2a;
    overflow: hidden;
}

.staff-avatar i {
    font-size: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #b0b0b0;
}

/* Цвета для рангов */
.rank-admin {
    background: linear-gradient(45deg, #d32f2f, #f44336);
}

.rank-developer {
    background: linear-gradient(45deg, #FF8F00, #FFA000);
}

/* Additional Rules Styles */
.rules-container {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    color: #ffffff;
    line-height: 1.6;
}

.rules-container h1, 
.rules-container h2, 
.rules-container h3 {
    color: #4fc3f7;
    margin-bottom: 15px;
    text-align: left;
    padding-bottom: 5px;
    border-bottom: 1px solid #2a2a2a;
}

.rules-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.rules-list {
    list-style-type: none;
    margin-bottom: 30px;
}

.rule-item {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.rule-item::before {
    content: "•";
    color: #4fc3f7;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.rule-section {
    margin-bottom: 40px;
}

.rule-section:last-child {
    margin-bottom: 0;
}

.rules-container a {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.3s;
}

.rules-container a:hover {
    color: #3da8d8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .rules-container {
        padding: 20px;
    }
    
    .rule-item {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .rules-container {
        padding: 15px;
    }
    
    .rule-item {
        font-size: 14px;
    }
}