/* Zeroback shared page chrome — deposit / withdraw / mypage / board
   Keeps existing markup; restyles blue legacy panels to dark-red skin. */

body.zb-shell .content_box {
  background: rgba(0, 0, 0, 0.72) !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 0 0 20px !important;
  overflow: hidden;
}

body.zb-shell .content_box_in,
body.zb-shell .content_box_in2 {
  float: none !important;
  width: 100% !important;
  padding: 16px 14px 10px !important;
  box-sizing: border-box;
}

body.zb-shell .con_box00,
body.zb-shell .con_box10,
body.zb-shell .con_box20 {
  float: none !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  clear: both;
}

/* Section labels / notice panels */
body.zb-shell .s_title1 {
  float: none !important;
  width: 100% !important;
  box-sizing: border-box;
  background: #222 !important;
  border: 1px solid #444 !important;
  border-bottom: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 12px 15px !important;
}

body.zb-shell .info_wrap {
  float: none !important;
  clear: both !important;
  display: block !important;
  overflow: hidden !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box;
  background: #111 !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  margin: 0 0 12px !important;
  padding: 14px 0 16px !important;
}

body.zb-shell .info_wrap .info1,
body.zb-shell .info_wrap .info2,
body.zb-shell .info_wrap .info3 {
  float: none !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  color: #ddd !important;
  -webkit-text-fill-color: #ddd !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

body.zb-shell .info_wrap .font05 {
  color: #ffcc00 !important;
  -webkit-text-fill-color: #ffcc00 !important;
}

body.zb-shell .font05 {
  color: #ffcc00 !important;
  -webkit-text-fill-color: #ffcc00 !important;
  font-weight: 700 !important;
}

/* Form rows (deposit / mypage) */
body.zb-shell .write_box {
  border: 1px solid #444 !important;
  background: #111 !important;
  overflow: hidden;
}

body.zb-shell .write_title_top {
  border-top: 2px solid #ffcc00 !important;
}

body.zb-shell .write_tr {
  border: none !important;
}

body.zb-shell .write_title {
  background: #222 !important;
  border-bottom: 1px solid #444 !important;
  border-right: 1px solid #444 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important;
}

body.zb-shell .write_basic {
  background: #111 !important;
  border-bottom: 1px solid #444 !important;
  color: #eee !important;
}

body.zb-shell .write_basic a {
  color: #fff !important;
}

body.zb-shell .write_basic input.input1,
body.zb-shell .write_basic input[type="text"],
body.zb-shell .write_basic input[type="password"],
body.zb-shell .write_basic input[type="number"],
body.zb-shell .write_basic textarea,
body.zb-shell .write_basic select,
body.zb-shell .content_box input.input1,
body.zb-shell .content_box textarea,
body.zb-shell .content_box select {
  background: #000 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  border-radius: 5px !important;
}

body.zb-shell .write_basic input:focus,
body.zb-shell .write_basic textarea:focus,
body.zb-shell .write_basic select:focus,
body.zb-shell .content_box input:focus,
body.zb-shell .content_box textarea:focus,
body.zb-shell .content_box select:focus {
  border-color: #ff0000 !important;
  outline: none !important;
}

/* Board / message / notice list panels */
body.zb-shell .list_box {
  border: 1px solid #444 !important;
  background: #111 !important;
  overflow: hidden;
}

body.zb-shell [class*="list_title"] {
  background: #222 !important;
  border-top: 2px solid #ffcc00 !important;
  border-bottom: 1px solid #444 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important;
}

body.zb-shell [class*="list_notice"],
body.zb-shell .list1,
body.zb-shell .list2,
body.zb-shell .list3,
body.zb-shell .list4,
body.zb-shell .list5,
body.zb-shell .list6,
body.zb-shell .listview {
  background: #111 !important;
  border-bottom: 1px solid #444 !important;
  color: #ddd !important;
  -webkit-text-fill-color: #ddd !important;
}

body.zb-shell .list_tr2:not(.trfirst) > *:nth-child(2),
body.zb-shell .list_tr4:not(.trfirst) > *:nth-child(2),
body.zb-shell .list_tr5 > div:nth-child(3) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.zb-shell .list_box a,
body.zb-shell .content_box table a,
body.zb-shell .list_notice4 a,
body.zb-shell .list2 a,
body.zb-shell .list_notice1 a {
  color: #fff !important;
}
body.zb-shell .list_box a:hover,
body.zb-shell .content_box table a:hover {
  color: #ffcc00 !important;
}

/* Table boards (customer center / betting) */
body.zb-shell .content_box table {
  border-collapse: collapse;
  background: #111;
}

body.zb-shell .content_box table th.list_title1,
body.zb-shell .content_box table th {
  background: #222 !important;
  border: 1px solid #444 !important;
  border-top: 2px solid #ffcc00 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important;
}

body.zb-shell .content_box table td.list_notice1,
body.zb-shell .content_box table td.list1,
body.zb-shell .content_box table td {
  background: #111 !important;
  border: 1px solid #333 !important;
  color: #ddd !important;
  -webkit-text-fill-color: #ddd !important;
}

body.zb-shell .content_box table tr:nth-child(even) td {
  background: #151515 !important;
}

/* View / detail panels */
body.zb-shell .view_box,
body.zb-shell .view1,
body.zb-shell .view1_title,
body.zb-shell .view2 {
  background: #111 !important;
  border-color: #444 !important;
  color: #eee !important;
  -webkit-text-fill-color: #eee !important;
}

body.zb-shell .view1_title {
  background: #222 !important;
  border-bottom: 1px solid #444 !important;
}

/* Status chips */
body.zb-shell .division1,
body.zb-shell .division2,
body.zb-shell .division3 {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
body.zb-shell .division1 {
  background: #222;
  color: #aaa !important;
  border: 1px solid #555;
}
body.zb-shell .division2 {
  background: rgba(204, 0, 27, 0.25);
  color: #ff6b6b !important;
  border: 1px solid #cc001b;
}
body.zb-shell .division3 {
  color: #ffcc00 !important;
}

/* Buttons — red zeroback */
body.zb-shell .btn1_1,
body.zb-shell .btn1_2,
body.zb-shell .btn2_1,
body.zb-shell .btn2_2,
body.zb-shell .btn3_1,
body.zb-shell .btn3_2,
body.zb-shell .pop_login_btn1 {
  background: linear-gradient(180deg, #ff0f0f 0%, #b00000 100%) !important;
  border: 1px solid #fa0000 !important;
  color: #fff !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.7) !important;
  box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
}

body.zb-shell .btn1_2,
body.zb-shell .btn2_2,
body.zb-shell .btn3_2 {
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%) !important;
  border-color: #555 !important;
}

body.zb-shell .btn1_1:hover,
body.zb-shell .btn3_1:hover,
body.zb-shell .btn2_1:hover {
  filter: brightness(1.2);
}

body.zb-shell .write_basic_btn a,
body.zb-shell .write_basic_btn .btn1_1,
body.zb-shell .write_basic_btn .btn1_2 {
  margin: 2px 2px 2px 0;
}

body.zb-shell .btn_wrap_center,
body.zb-shell .btn_wrap_right,
body.zb-shell .btn_wrap_left {
  text-align: center;
}

body.zb-shell .btn_wrap_right {
  text-align: right;
}

body.zb-shell .btn_wrap_center ul,
body.zb-shell .btn_wrap_right ul,
body.zb-shell .btn_wrap_left ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Pagination */
body.zb-shell .page_wrap .page,
body.zb-shell .pagination li a,
body.zb-shell .pagination li span,
body.zb-shell .tf_pagination ul li a {
  background: #151515 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
}

body.zb-shell .page_wrap .pageon,
body.zb-shell .pagination li.active span,
body.zb-shell .pagination li.active a,
body.zb-shell .tf_pagination ul li a.active {
  background: linear-gradient(180deg, #ff0f0f 0%, #b00000 100%) !important;
  border-color: #fa0000 !important;
  color: #fff !important;
}

/* Betting extras */
body.zb-shell .result_title_wrap {
  background: transparent !important;
  border: none !important;
}

body.zb-shell .betting-sports-detail,
body.zb-shell .betting-sports-detail__table,
body.zb-shell .betting-sports-detail__head {
  background: #111 !important;
  border-color: #444 !important;
  color: #ddd !important;
}

/* Attendance already styled; keep page shell consistent */
body.zb-shell .zb-attendance-page.content_box {
  padding-bottom: 24px !important;
}

@media screen and (max-width: 1023px) {
  body.zb-shell .content_box_in,
  body.zb-shell .content_box_in2 {
    padding: 10px 8px !important;
  }

  body.zb-shell .write_title {
    width: 32% !important;
  }

  body.zb-shell .write_basic {
    width: 68% !important;
    padding: 10px !important;
  }

  body.zb-shell .btn3_1,
  body.zb-shell .btn3_2 {
    min-width: 0 !important;
    width: 100%;
  }
}
