/* AZEgame Guild - Modern Dark UI
 * Design-only stylesheet. Functional classes / IDs are preserved.
 */
:root{
  --gd-bg:#0f1115;
  --gd-surface:#151922;
  --gd-surface-2:#1b202b;
  --gd-surface-3:#222936;
  --gd-border:#2a3240;
  --gd-border-hover:#3a4658;
  --gd-text:#f1f4f8;
  --gd-muted:#8e98a8;
  --gd-accent:#F05A1B;
  --gd-accent-2:#ff7a3d;
  --gd-danger:#ef4444;
  --gd-success:#22c55e;
  --gd-radius:16px;
  --gd-radius-sm:11px;
  --gd-shadow:0 10px 30px rgba(0,0,0,.22);
}

.guild_container{
  font-size:1em;
  word-break:keep-all;
  color:var(--gd-text);
}

.guild_container,
.guild_container *{box-sizing:border-box;}

.guild_container a{color:inherit;}
.guild_container a:hover{color:var(--gd-accent);}

.gd_width_full{width:100%;}
.gd_center{text-align:center;}
.gd_line{line-height:1.8em;color:var(--gd-muted);}
.gd_padding_1em{padding:1em;}
.text-danger{color:#ff6262!important;}

.gd_button{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px!important;
  margin:4px!important;
  border:1px solid var(--gd-border)!important;
  border-radius:10px!important;
  outline:none;
  background:var(--gd-surface-2)!important;
  color:var(--gd-text)!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-family:inherit;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.2;
  cursor:pointer!important;
  text-decoration:none!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease,color .18s ease;
}
.gd_button:hover{
  background:var(--gd-surface-3)!important;
  border-color:var(--gd-border-hover)!important;
  color:#fff!important;
  transform:translateY(-1px);
}
.gd_button:active{transform:translateY(0);}

.gd_button.primary{
  background:var(--gd-accent)!important;
  border-color:var(--gd-accent)!important;
  color:#fff!important;
}
.gd_button.primary:hover{
  background:var(--gd-accent-2)!important;
  border-color:var(--gd-accent-2)!important;
}
.gd_button.basic{
  min-height:34px;
  padding:7px 11px!important;
  margin:2px!important;
  border-radius:8px!important;
  background:#202631!important;
  border-color:#303947!important;
  color:#dce2ea!important;
  font-size:13px!important;
}
.gd_button.basic:hover{border-color:var(--gd-accent)!important;color:#fff!important;}
.gd_button.success{
  background:#16834b!important;
  border-color:#16834b!important;
  color:#fff!important;
}
.gd_button.success:hover{background:#1da45e!important;border-color:#1da45e!important;}
.gd_button.danger{
  background:#9f2f35!important;
  border-color:#9f2f35!important;
  color:#fff!important;
}
.gd_button.danger:hover{background:#c63b43!important;border-color:#c63b43!important;}
.gd_button.round{border-radius:999px!important;}
.gd_button.shadow{box-shadow:0 5px 16px rgba(0,0,0,.18)!important;}
.gd_button.shadow:hover{box-shadow:0 8px 22px rgba(0,0,0,.28)!important;}
.gd_button.shadow:active{box-shadow:0 3px 8px rgba(0,0,0,.2)!important;}

.gd_input,.gd_textarea{
  display:inline-block;
  width:auto;
  border:1px solid var(--gd-border)!important;
  background:#11151c!important;
  color:var(--gd-text)!important;
  padding:12px 14px;
  margin:8px 0;
  border-radius:10px!important;
  outline:none;
  font:inherit;
  line-height:1.5;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
.gd_input{height:44px;}
.gd_textarea{min-height:110px;resize:vertical;}
.gd_textarea:focus,.gd_input:focus{
  border-color:var(--gd-accent)!important;
  box-shadow:0 0 0 3px rgba(240,90,27,.13)!important;
  background:#151a22!important;
}
.gd_input[readonly]{background:#0c0f14!important;color:#737d8c!important;cursor:not-allowed;}

.guild_editor{
  max-width:900px;
  margin:24px auto;
  padding:32px;
  background:var(--gd-surface);
  border:1px solid var(--gd-border);
  border-radius:20px;
  box-shadow:var(--gd-shadow);
}
.guild_editor label strong{
  display:inline-block;
  margin-bottom:5px;
  color:#fff;
  font-size:15px;
}
.help-block{display:block;margin-top:4px;font-size:13px;color:var(--gd-muted);}
.guild_editor hr{border:0;border-top:1px solid var(--gd-border);margin:28px 0;}
.guild_editor .centralize{display:flex;gap:8px;justify-content:center;margin-top:28px;}
.guild_editor .centralize .gd_button{min-width:120px;}
#img_guild_logo{
  display:inline-block!important;
  width:250px;
  height:250px;
  object-fit:cover;
  border:1px solid var(--gd-border)!important;
  border-radius:18px!important;
  background:#0b0d11;
  padding:5px;
}
.guild_editor #img_guild_logo{width:256px;height:256px;}

.list_table{
  width:100%;
  font-size:1em;
  vertical-align:middle;
  text-decoration:none;
  border-collapse:separate!important;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--gd-border);
  border-radius:16px;
  background:var(--gd-surface);
}
.list_table th,.list_table td{
  height:auto;
  padding:16px;
  text-align:left;
  border-bottom:1px solid var(--gd-border);
  color:var(--gd-text);
}
.list_table tr:last-child td{border-bottom:0;}
.list_table tr:hover{background:#1b2029;cursor:pointer;}
.list_table .guild_name{margin-left:20px;width:30%;font-weight:700;}
.list_table .guild_info{width:30%;text-align:center;color:var(--gd-muted);}
.list_table .guild_rank{width:20%;}

.list_img{margin-left:20px!important;}
.square{
  float:left;
  position:relative;
  width:70%;
  padding-bottom:70%;
  margin:1.66%;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  border-radius:14px;
  border:1px solid var(--gd-border);
}
.list_logo{
  width:100%;
  padding-bottom:100%;
  cursor:pointer;
}
.gd_mini_logo{
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:13px;
  border:1px solid var(--gd-border);
  background:#0b0d11;
  vertical-align:middle;
}

.gd_module_block{
  background-image:url("https://api.hoto.dev/get/module.gif"),url("data:image/gif;base64,R0lGODlhAQABAJAAAP8AAAAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==");
  background-repeat:no-repeat;
}
.gd_link{color:#fff;}
.gd_usermenu{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -ms-overflow-style:none;
  scrollbar-width:none;
  white-space:nowrap;
}
.gd_usermenu::-webkit-scrollbar{display:none;}

.wrap_set{
  font-size:14px;
  background:var(--gd-surface);
  border-radius:16px;
  border:1px solid var(--gd-border);
}
.ms_wrapper1{margin:10px;}
.guild_container hr{background:var(--gd-border);height:1px;border:0;}

.table_notice{
  margin:18px auto!important;
  max-width:1000px;
  overflow:hidden;
  background:var(--gd-surface)!important;
  border:1px solid var(--gd-border)!important;
  border-radius:14px!important;
  box-shadow:0 6px 20px rgba(0,0,0,.14);
}
.table_notice .title{
  padding:13px 16px!important;
  background:var(--gd-surface-2)!important;
  border-bottom:1px solid var(--gd-border)!important;
  color:#fff!important;
  font-weight:800;
}
.table_notice .content{
  padding:18px!important;
  color:#b8c0cc!important;
  line-height:1.75;
}

.table_info{
  width:100%!important;
  max-width:900px;
  margin:20px auto!important;
  border-collapse:separate!important;
  border-spacing:0;
  overflow:hidden;
  background:var(--gd-surface)!important;
  border:1px solid var(--gd-border)!important;
  border-radius:16px;
}
.table_info td{
  padding:14px 16px!important;
  border-bottom:1px solid var(--gd-border)!important;
  color:#aeb7c5;
}
.table_info tr:last-child td{border-bottom:0!important;}
.table_info td:first-child{
  width:38%;
  color:#737e8e;
  font-weight:600;
}
.table_info td:last-child{color:#f0f3f7;font-weight:600;}
.table_info strong{color:#fff;}
.table_info a{color:var(--gd-accent)!important;text-decoration:none;}

.card.material-table{
  max-width:1000px;
  margin:20px auto;
  overflow:hidden;
  background:var(--gd-surface);
  border:1px solid var(--gd-border);
  border-radius:16px;
  box-shadow:var(--gd-shadow);
}
#datatable{
  width:100%;
  border-collapse:collapse!important;
  background:transparent!important;
}
#datatable th{
  padding:14px 16px!important;
  background:var(--gd-surface-2)!important;
  color:#8f9aaa!important;
  border-bottom:1px solid var(--gd-border)!important;
  font-size:12px;
  font-weight:800;
  text-transform:none;
}
#datatable td{
  padding:14px 16px!important;
  background:transparent!important;
  color:#dbe0e7!important;
  border-bottom:1px solid var(--gd-border)!important;
}
#datatable tr:last-child td{border-bottom:0!important;}
#datatable tbody tr:hover td{background:#1b2029!important;}
#datatable a{color:#fff;text-decoration:none;}
#datatable a:hover{color:var(--gd-accent);}
#datatable .gd_button{margin:2px!important;}

.table_guild_list{
  width:100%;
  border-collapse:separate!important;
  border-spacing:0;
  overflow:hidden;
  background:var(--gd-surface)!important;
  border:1px solid var(--gd-border)!important;
  border-radius:18px;
  box-shadow:var(--gd-shadow);
}
.table_guild_list th{
  padding:15px!important;
  background:var(--gd-surface-2)!important;
  color:#8993a3!important;
  border-bottom:1px solid var(--gd-border)!important;
  font-size:12px;
}
.table_guild_list td{
  padding:14px!important;
  background:transparent!important;
  color:#dfe4eb!important;
  border-bottom:1px solid var(--gd-border)!important;
}
.table_guild_list tbody tr:last-child td{border-bottom:0!important;}
.table_guild_list tbody tr:hover td{background:#1b2029!important;}
.table_guild_list td strong{color:#fff;}
.table_guild_list a{color:var(--gd-accent)!important;text-decoration:none!important;font-weight:700;}
.table_guild_list a:hover{color:var(--gd-accent-2)!important;}

.error_message{
  padding:12px 15px;
  margin:12px 0;
  border:1px solid rgba(239,68,68,.35);
  border-radius:10px;
  background:rgba(239,68,68,.08);
  color:#ff8a8a;
}

.history_intro{
  margin:0 0 18px;
  padding:10px;
  background:transparent;
}
.history_menu{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.history_menu a{
  min-height:62px;
  padding:12px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  background:var(--gd-surface);
  border:1px solid var(--gd-border);
  border-radius:13px;
  color:#cbd2dc;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  transition:.18s;
}
.history_menu a:hover{
  color:#fff;
  border-color:var(--gd-accent);
  background:#1b2029;
  transform:translateY(-1px);
}

.sub_photo{
  width:100%;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:14px;
  padding:0;
  margin:0;
  background:transparent;
}
.sub_photo .guild_item{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  height:100%;
  padding:16px 12px;
  text-align:center;
  background:linear-gradient(180deg,#181d26,#141820);
  border:1px solid var(--gd-border);
  border-radius:16px;
  transition:transform .18s,border-color .18s,box-shadow .18s,background .18s;
}
.sub_photo .guild_item:hover{
  transform:translateY(-3px);
  border-color:#3a4555;
  box-shadow:0 12px 28px rgba(0,0,0,.24);
  background:#1a202a;
}
.sub_photo .square.list_logo{
  width:96px;
  height:96px;
  padding:0;
  margin:0 0 12px;
  flex:none;
  background-size:cover;
  background-position:center;
  border:1px solid #343d4c;
  border-radius:16px;
  box-shadow:0 5px 15px rgba(0,0,0,.18);
}
.sub_photo .guild_name_link{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  margin-bottom:8px;
}
.sub_photo .tx_brief{
  width:100%;
  font-size:12px;
  color:#8e98a8;
  line-height:1.55;
}
.sub_photo .tx_brief span{
  display:block;
  margin-top:3px;
}
.sub_photo .tx_brief span[style*="#F05A1B"]{color:var(--gd-accent)!important;}
.sub_photo .tx_brief span[style*="#ff4d4f"]{color:#ff6b72!important;}

.guild_pagination{
  margin:20px 0 4px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
}
.guild_pagination a{
  min-width:36px;
  height:36px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--gd-border);
  border-radius:9px;
  background:var(--gd-surface);
  color:#aeb7c4;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}
.guild_pagination a:hover{border-color:var(--gd-accent);color:#fff;}
.guild_pagination a.active{
  background:var(--gd-accent);
  border-color:var(--gd-accent);
  color:#fff;
}

.swal2-popup{
  width:min(92vw,520px)!important;
  padding:26px!important;
  background:#171c24!important;
  color:#f3f5f8!important;
  border:1px solid #303847!important;
  border-radius:18px!important;
  box-shadow:0 20px 60px rgba(0,0,0,.45)!important;
}
.swal2-title{color:#fff!important;font-weight:800!important;font-size:20px!important;}
.swal2-content,.swal2-html-container{color:#aeb7c5!important;line-height:1.65!important;}
.swal2-content strong,.swal2-html-container strong{color:var(--gd-accent)!important;}
.swal2-input,.swal2-textarea,.swal2-select{
  background:#10141b!important;
  color:#fff!important;
  border:1px solid #333d4c!important;
  border-radius:10px!important;
}
.swal2-input:focus,.swal2-textarea:focus,.swal2-select:focus{
  border-color:var(--gd-accent)!important;
  box-shadow:0 0 0 3px rgba(240,90,27,.12)!important;
}
.swal2-input::placeholder,.swal2-textarea::placeholder{color:#687383!important;}
.swal2-confirm{background:var(--gd-accent)!important;border-radius:9px!important;}
.swal2-cancel{background:#343b47!important;border-radius:9px!important;}
.swal2-confirm:hover{background:var(--gd-accent-2)!important;}
.swal2-cancel:hover{background:#424b59!important;}

@media (max-width:768px){
  .guild_container{padding-left:8px;padding-right:8px;}
  .guild_editor{margin:12px auto;padding:20px 15px;border-radius:16px;}
  .guild_editor .centralize{display:grid;grid-template-columns:1fr 1fr;}
  .guild_editor .centralize .gd_button{width:100%;min-width:0;margin:0!important;}
  .history_menu{grid-template-columns:repeat(3,1fr);gap:7px;}
  .history_menu a{min-height:55px;padding:9px 5px;font-size:12px;}
  .sub_photo{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;}
  .sub_photo .guild_item{padding:11px 7px;border-radius:13px;}
  .sub_photo .square.list_logo{width:78px;height:78px;border-radius:13px;margin-bottom:9px;}
  .sub_photo .guild_name_link{font-size:13px;}
  .sub_photo .tx_brief{font-size:11px;}
  .list_table .guild_logo{margin-left:0;width:30%;}
  .list_table .guild_name{margin-left:0;width:40%;}
  .list_table .guild_rank{width:30%;}
  .list_img{margin:1.66%!important;}
  .list_table th,.list_table td{padding:11px 8px;}
  #img_guild_logo{width:180px;height:180px;}
  .guild_editor #img_guild_logo{width:200px;height:200px;}
  .table_info{font-size:13px;}
  .table_info td{padding:11px 10px!important;}
  .table_info td:first-child{width:40%;}
  .card.material-table,.table_guild_list{border-radius:13px;}
  #datatable th,#datatable td{padding:11px 8px!important;font-size:12px;}
  #datatable .gd_button{padding:6px 8px!important;font-size:11px!important;}
  .table_guild_list{font-size:12px;}
  .table_guild_list th,.table_guild_list td{padding:9px 6px!important;}
  .gd_mini_logo{width:42px;height:42px;border-radius:10px;}
  .gd_button{min-height:40px;padding:9px 13px!important;font-size:13px!important;}
  .guild_pagination a{min-width:34px;height:34px;padding:0 9px;}
  .swal2-popup{padding:20px!important;}
  .swal2-title{font-size:17px!important;}
}
@media (max-width:380px){
  .history_menu a{font-size:11px;}
  .sub_photo{gap:7px;}
  .sub_photo .guild_item{padding:9px 5px;}
  .sub_photo .square.list_logo{width:68px;height:68px;}
}
