.page-box {
  width: 590px;
  margin: 20px auto;
  padding: 25px;
  /*background: #ffffff;*/
  background: rgba(39, 35, 35, 0.05);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
  border: 1px solid #eee;
}

.page-box h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #444;
}

.page-box label {
  display: block;
  margin-top: 15px;
  margin-bottom: 6px;
  font-size: 14px;
  color: #666;
}

.page-box input,
.page-box select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 14px;
  color: #000;
}

.rate {
  margin-top: 12px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

.info-text {
  background: #f5f7fa;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.btn-main {
  margin-top: 22px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #ff8a00, #ff3d00);
  color: #fff;
  transition: 0.25s;
}

.btn-main:hover {
  transform: scale(1.03);
  background: linear-gradient(90deg, #f89019, #f74c19);
  /*box-shadow: 0 5px 15px rgba(255,138,0,0.4);*/
}


.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f1f1f1;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  color: #000;
}

.tab-btn.active {
  background: linear-gradient(90deg,#ff8a00,#ff3d00);
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Tables */
.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.history-table th {
  background: #fafafa;
}

/* Account */

.account-info {
  display: grid;
  gap: 10px;
  max-width: 500px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.status.active {
  color: #2ecc71;
}

.status.offline {
  color: #e74c3c;
}

.btn-small {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  background: #ff8a00;
  color: #fff;
  cursor: pointer;
}

/* Characters */

.char-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.char-card {
  width: 140px;
  text-align: center;
}

.char-img {
  width: 100px;
  border-radius: 10px;
}

.char-name {
  font-weight: bold;
  margin-top: 6px;
}

.char-info {
  font-size: 13px;
  color: #555;
}

.online-dot,
.offline-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.online-dot {
  background: #2ecc71;
}

.offline-dot {
  background: #e74c3c;
}


/* INFO GRID */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.info-item {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
}


/* MODERN TABLE */

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th {
  background: #f3f4f6;
  text-align: left;
  padding: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.modern-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f1f1;
}

.modern-table tr:hover {
  background: #f9fafb;
}

/* FORM LAYOUT */

.form-modern {
  max-width: 460px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: #1f2937;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 13px;
  transition: 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #b45309;
  outline: none;
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.1);
}

.form-hint {
  font-size: 11px;
  color: #6b7280;
  margin-top: 5px;
}

/* TERMS */

.form-terms {
  text-align: center;
  font-size: 12px;
  margin: 20px 0;
  color: #6b7280;
}

.form-terms a {
  color: #b45309;
  text-decoration: none;
}

.form-terms a:hover {
  text-decoration: underline;
}

/* CAPTCHA */

.captcha-box {
  display: flex;
  gap: 12px;
  align-items: center;
}

.captcha-box img {
  height: 40px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* BUTTON */

.btn-register, .btn-recover {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #b45309, #7c2d12);
  color: #fff;
  font-weight: 600;
  font-size: 14px;

  transition: 0.2s;
}

.btn-register, .btn-recover:hover {
  opacity: 0.9;
}


/* DOWNLOAD CARD */
/* PAGE BOX (если нужно) */
.download-section {
  margin-top: 35px;
}

.download-section:first-of-type {
  margin-top: 15px;
}

.download-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #1f2937;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}


/* DOWNLOAD CARD */

.download-card {
  display: grid;
  grid-template-columns: 1fr auto; /* текст + кнопка */
  align-items: center;

  gap: 20px;

  width: 100%;
  box-sizing: border-box;

  padding: 22px 24px;
  margin-bottom: 18px;

  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

  transition: 0.2s ease;
}

.download-card:hover {
  background: #f1f5f9;
}


/* LEFT SIDE */

.download-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.download-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
  line-height: 1.4;
}

.download-size {
  font-size: 12px;
  color: #9ca3af;
}


/* BUTTON */

.btn-download {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;

  background: linear-gradient(135deg, #b45309, #7c2d12);
  color: #fff;
  text-decoration: none;
  font-weight: 500;

  white-space: nowrap;
  transition: 0.2s;
}

.btn-download:hover {
  opacity: 0.9;
}


/* BUTTON */
/*
.btn-main {
  background: linear-gradient(135deg, #b45309, #7c2d12);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn-main:hover {
  opacity: 0.9;
}
*/

/* TABS */

.tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  cursor: pointer;
}

.tab.active {
  background: #7c3f2b;
  color: white;
  border-color: #7c3f2b;
}


/* NEWS CARD */

.news-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 20px;
  transition: 0.2s ease;
}

.news-card:hover {
  background: #f1f5f9;
}


/* HEADER */

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.news-date {
  font-size: 12px;
  color: #9ca3af;
}


/* CONTENT */

.news-content {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 18px;
}


/* FOOTER */

.news-footer {
  display: flex;
  justify-content: flex-start;
}

.news-readmore {
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  text-decoration: none;
  transition: 0.2s;
}

.news-readmore:hover {
  text-decoration: underline;
}



/*   TICKETS SYSTEM   */

.ticket-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
}

.ticket-table th {
  text-align: left;
  padding: 10px;
  background: #f1f5f9;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.ticket-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.ticket-table tr:hover {
  background: #f9fafb;
}

.ticket-table a {
  color: #b45309;
  text-decoration: none;
  font-weight: 600;
}

.ticket-table a:hover {
  text-decoration: underline;
}

.ticket-status,
.status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status.open {
  background: #fee2e2;
  color: #b91c1c;
}

.status.answered {
  background: #e0f2fe;
  color: #0369a1;
}

.status.closed {
  background: #e5e7eb;
  color: #374151;
}

.priority {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.priority.low {
  background: #e5e7eb;
  color: #374151;
}

.priority.medium {
  background: #fef3c7;
  color: #92400e;
}

.priority.high {
  background: #fee2e2;
  color: #b91c1c;
}

.category {
  font-size: 12px;
  color: #374151;
}

.ticket-messages {
  margin-top: 20px;
}

.message {
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.message.user {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.message.admin {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.message .meta {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #6b7280;
}

.message .text {
  color: #1f2937;
}

.attachments {
  margin-top: 8px;
}

.attachments a {
  display: inline-block;
  margin-right: 10px;
  font-size: 12px;
  color: #b45309;
  text-decoration: none;
}

.attachments a:hover {
  text-decoration: underline;
}

.btn-ticket {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b45309, #7c2d12);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: 0.2s;
}

.btn-ticket:hover {
  opacity: 0.9;
}

/* ===========================
   CREATE TICKET FORM
=========================== */

.ticket-form {
  max-width: 600px;
  margin: 0 auto;
}

.ticket-form .form-group {
  margin-bottom: 22px;
}

.ticket-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: #1f2937;
}

.ticket-form input[type="text"],
.ticket-form input[type="email"],
.ticket-form select,
.ticket-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 13px;
  transition: 0.2s;
  box-sizing: border-box;
  color: #000;
}

.ticket-form textarea {
  min-height: 140px;
  resize: vertical;
}

.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus {
  outline: none;
  border-color: #b45309;
  box-shadow: 0 0 0 2px rgba(180,83,9,0.1);
}

/* HINT */
.form-hint {
  font-size: 11px;
  color: #6b7280;
  margin-top: 5px;
}

/* FILE UPLOAD */
.file-upload {
  display: flex;
  flex-direction: column;
}

.file-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

/* PRIORITY SELECTOR */

.priority-selector {
  display: flex;
  gap: 10px;
}

.priority-option {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.priority-option input {
  display: none;
}

/* LOW */
.priority-option.low {
  background: #8eb3fc;
}

.priority-option.low:hover {
  background: #76a3fc;
}

/* MEDIUM */
.priority-option.medium {
  background: #fce177;
}

.priority-option.medium:hover {
  background: #fde68a;
}

/* HIGH */
.priority-option.high {
  background: #ff8f8f;
}

.priority-option.high:hover {
  background: #ff7777;
}

/* SELECTED */
.priority-option input:checked + * {
  font-weight: 600;
}

/* ===========================
   TICKET VIEW
=========================== */

.ticket-view {
  max-width: 900px;
  margin: 0 auto;
}

/* HEADER */
.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 15px;
}

.ticket-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 5px;
}

/* BADGES */
.ticket-badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* PRIORITY COLORS */
.priority-low { background: #8eb3fc; }
.priority-medium { background: #fce177; }
.priority-high { background: #ff8f8f; }

/* STATUS */
.ticket-status {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.status-open {
  background: #8df8c1;
  color: #064e3b;
}

.status-useranswered {
  background: #fbbf24;
  color: #78350f;
}

.status-admanswered {
  background: #93c5fd;
  color: #1e3a8a;
}

.status-closed {
  background: #cbd5e1;
  color: #334155;
}

/* ===========================
   MESSAGES
=========================== */

.ticket-messages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

/* MESSAGE */
.ticket-message {
  padding: 15px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}

/* USER */
.ticket-message.user {
  background: #f3f4f6;
  border-left: 4px solid #9ca3af;
}

/* ADMIN */
.ticket-message.admin {
  background: #fff7ed;
  border-left: 4px solid #b45309;
}

/* HEADER */
.message-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
  color: #6b7280;
}

.message-header .author {
  font-weight: 600;
  color: #1f2937;
}

/* BODY */
.message-body {
  margin-bottom: 10px;
}

/* ATTACHMENTS */
.message-attachments img {
  max-width: 110px;
  border-radius: 6px;
  margin-top: 5px;
  border: 1px solid #e5e7eb;
}

/* ===========================
   REPLY BLOCK
=========================== */

.ticket-reply {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.ticket-reply h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.ticket-reply textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  resize: vertical;
  background: #fff;
  color: #000;
}

.ticket-reply textarea:focus {
  outline: none;
  border-color: #b45309;
  box-shadow: 0 0 0 2px rgba(180,83,9,0.1);
}

/* BOTTOM */
.reply-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* CLOSE BUTTON */
.btn-close-ticket {
  margin-top: 15px;
  background: #ef4444;
  border: none;
  padding: 8px 14px;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.btn-close-ticket:hover {
  background: #dc2626;
}

.btn-close-ticket:disabled {
  background: #d89393;
  cursor: not-allowed;
}

.ticket-closed-notice {
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

/* THUMBNAILS */

.ticket-thumb {
  max-width: 140px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition: 0.2s;
}

.ticket-thumb:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* LIGHTBOX */

#ticket-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#ticket-lightbox img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

/* Footer Base */
.site-footer {
  margin-top: 40px;
  background: rgba(107, 106, 106, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
}

/* Container */
.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* Columns */
.footer-col {
  padding: 10px 5px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #cdcdcd;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  font-size: 13px;
  color: #9ca3af;
  transition: 0.2s;
}

.footer-col ul li a:hover {
  color: #2563eb;
}

/* Contacts text */
.footer-col p {
  font-size: 13px;
  color: #9ca3af;
  margin: 4px 0;
}

/* Socials */
.footer-socials {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.soc {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-block;
  transition: 0.2s;
}

.soc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Languages */
.footer-lang {
  display: flex;
  gap: 10px;
}

.footer-lang img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  padding: 15px;
  font-size: 12px;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
}

/* CHARACTER LAYOUT */
.character-layout{
  display:flex;
  gap:30px;
  align-items:flex-start;
}

.character-image img{
  width:170px;
  border-radius:6px;
  border:1px solid #ddd;
}

.character-info{
  flex:1;
}

/* TABLE */
.character-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.character-table td{
  padding:8px 10px;
  border-bottom:1px solid #e3e3e3;
}

.character-table td:first-child{
  width:160px;
  color:#666;
}

/* STATUS */
.status-online{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background: #3ddc84;
  margin-right:6px;
}

.status-offline{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background: #dc3d3d;
  margin-right:6px;
}

/* CHARACTER LIST */
.char-list{
  color: #c0392b;
  font-weight:600;
}

/* GUILD */
.guild-name{
  color: #d35400;
  font-weight:600;
}

/* LAYOUT */
.guild-layout{
  display:flex;
  gap:90px;
  align-items:flex-start;
}

/* GUILD MARK */
.guild-mark img{
  width:120px;
  height:120px;
  border:1px solid #ddd;
  border-radius:6px;
}

/* TABLE */
.guild-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.guild-table td{
  padding:8px 10px;
  border-bottom:1px solid #e3e3e3;
}

.guild-table td:first-child{
  width:160px;
  color:#666;
}

/* GUILD MEMBERS */
.guild-members{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.guild-members th{
  background:#c9983a;
  color:#fff;
  padding:8px;
  text-align:left;
}

.guild-members td{
  padding:8px;
  border-bottom:1px solid #e3e3e3;
}

/* COLORS */
.char-master{
  color:#c0392b;
  font-weight:600;
}

.char-assistant{
  color:#e74c3c;
  font-weight:600;
}

.char-bm{
  color:#27ae60;
  font-weight:600;
}

.char-normal{
  color:#333;
}

.guild-name{
  color:#c0392b;
  font-weight:600;
}

.guild-master{
  color:#e74c3c;
  font-weight:600;
}

.guild-assistant{
  color:#3498db;
}

.guild-bm{
  color:#27ae60;
}

/* RATES */
.ranking-rates{
display:flex;
flex-direction:column;
align-items:center;
gap:6px;
margin-bottom:20px;
}

.rate-btn{
background:#5b4a3f;
color:#fff;
padding:6px 30px;
border-radius:3px;
cursor:pointer;
font-size:13px;
}

.rate-btn.active{
background:#a06e2a;
}

/* RANK TYPES */
.ranking-types{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
margin-bottom:20px;
}

.ranking-btn{
background:#7a5327;
color:#fff;
padding:8px 18px;
border-radius:4px;
font-size:13px;
cursor:pointer;
}

.ranking-btn.active{
background:#b37b36;
}

.ranking-btn:hover{
background:#9a6a30;
}

/* CLASS FILTER */
.ranking-classes{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
margin-bottom:20px;
}

.class-btn{
background:#7a5327;
color:#fff;
padding:8px 16px;
border-radius:4px;
font-size:13px;
cursor:pointer;
}

.class-btn.active{
background:#c9983a;
}

/* TABLE */
.ranking-table{
width:100%;
border-collapse:collapse;
font-size:13px;
}

.ranking-table th{
background:#c9983a;
color:#fff;
padding:8px;
text-align:left;
}

.ranking-table td{
padding:8px;
border-bottom:1px solid #e3e3e3;
}

.rank-name{
color:#c0392b;
font-weight:600;
}

/* CACHE */
.ranking-cache{
text-align:right;
font-size:11px;
color:#999;
margin-top:5px;
}

/* SEARCH */
.ranking-search{
display:flex;
gap:20px;
justify-content:center;
}

.ranking-search input{
width:400px;
padding:10px;
border:1px solid #ddd;
border-radius:4px;
}

.btn-orange{
background:linear-gradient(#a06e2a,#6e4319);
color:#fff;
padding:10px 30px;
border:none;
border-radius:4px;
cursor:pointer;
}

/* OWNER BANNER */
.castle-banner{
height:180px;
background:url('/newmu/img/castle-siege-banner.jpg') center/cover no-repeat;
border-radius:6px;
overflow:hidden;
}

.castle-banner-overlay{
background:rgba(0,0,0,0.55);
height:100%;
display:flex;
align-items:center;
padding:20px;
}

.castle-owner-layout{
display:flex;
align-items:center;
gap:25px;
color:#fff;
}

.castle-guild-mark img{
width:90px;
height:90px;
border:2px solid #c9983a;
border-radius:6px;
}

.castle-owner-guild a{
font-size:22px;
font-weight:700;
color:#f1c40f;
}

.castle-owner-master a{
font-size:13px;
color:#ccc;
}

.castle-owner-name a{
font-size:15px;
color:#f1c40f;
}

.castle-alliance{
margin-top:25px;
}

.castle-alliance-title{
color:#f1c40f;
font-size:14px;
font-weight:600;
margin-bottom:10px;
}

.castle-alliance-list{
display:flex;
flex-wrap:wrap;
gap:15px;
}

.castle-alliance-guild{
display:flex;
align-items:center;
gap:8px;
background:rgba(0,0,0,0.35);
padding:6px 10px;
border-radius:4px;
}

.castle-alliance-info{
display:flex;
flex-direction:column;
font-size:12px;
}

.ally-name{
color:#fff;
font-weight:600;
}

.ally-master{
color:#ccc;
font-size:11px;
}

/* ATTACKING GUILDS */
.castle-guilds{
display:flex;
flex-wrap:wrap;
gap:20px;
}

.attack-guild{
display:flex;
align-items:center;
gap:10px;
background:#f4f4f4;
padding:8px 15px;
border-radius:4px;
}

.attack-guild img{
width:32px;
height:32px;
}

.attack-guild span{
font-weight:600;
}

/* COUNTDOWN */
.siege-countdown{
display:flex;
justify-content:center;
gap:25px;
}

.count-box{
text-align:center;
background:#222;
color:#fff;
padding:15px 20px;
border-radius:6px;
min-width:80px;
}

.count-box span{
font-size:26px;
font-weight:700;
color:#f1c40f;
display:block;
}

.count-box small{
font-size:11px;
color:#aaa;
}

/* CASTLE TABLE */
.castle-table{
width:100%;
border-collapse:collapse;
font-size:13px;
}

.castle-table td{
padding:8px 10px;
border-bottom:1px solid #eee;
}

.castle-table td:first-child{
width:220px;
color:#666;
}

/* EVENT SCHEDULE */
.castle-schedule{
width:100%;
border-collapse:collapse;
font-size:13px;
}

.castle-schedule th{
background:#c9983a;
color:#fff;
padding:8px;
text-align:left;
}

.castle-schedule td{
padding:8px;
border-bottom:1px solid #eee;
}

/* BATTLE EMPTY */
.castle-battle-empty{
text-align:center;
color:#999;
padding:20px;
}	

/* SOCIAL LINKS */
.discord-widget {
    width: 100%;
    max-width: 300px;
    background: #36393f;
    border-radius: 8px;
    font-family: sans-serif;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.discord-header {
    background: #5865f2;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}
.discord-body {
    padding: 20px;
    text-align: center;
}
.discord-btn {
    display: inline-block;
    background: #3ba55d;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    transition: 0.3s;
}
.discord-btn:hover { background: #2d7d46; }

.tg-widget-container {
    background-color: #2b2d31;
    border-radius: 8px;
    /*width: 230px; */
    margin: 15px auto;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tg-header {
    background-color: #24A1DE;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tg-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.tg-title {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.tg-body {
    padding: 20px 15px;
    text-align: center;
}

.tg-join-btn {
    display: inline-block;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.tg-join-btn:hover {
    background-color: #218838;
    transform: scale(1.03);
}