/* ============================================================
   ROHAN ITEM MALL - V2 FULL LAYOUT OVERHAUL (IE11 Compatible)
   ============================================================
   - Horizontal category pill buttons (no sidebar)
   - 3-column vertical card grid (icon on top via flex order)
   - Pagination in top bar next to search
   - 9 items per page
   All IE11 flex prefixes included.
   ============================================================ */

/* @font-face
---------- ---------- ---------- ---------- ---------- */
@font-face {
  font-family: 'barlow_regular';
  font-weight: 400;
  src: url(../font/barlow_regular.eot);
  src: url(../font/barlow_regular.eot?#iefix) format('embedded-opentype'), url(../font/barlow_regular.woff) format('woff'), url(../font/barlow_regular.ttf) format('truetype');
}
@font-face {
  font-family: 'barlow_medium';
  font-weight: 500;
  src: url(../font/barlow_medium.eot);
  src: url(../font/barlow_medium.eot?#iefix) format('embedded-opentype'), url(../font/barlow_medium.woff) format('woff'), url(../font/barlow_medium.ttf) format('truetype');
}
@font-face {
  font-family: 'barlow_semibold';
  font-weight: 600;
  src: url(../font/barlow_semibold.eot);
  src: url(../font/barlow_semibold.eot?#iefix) format('embedded-opentype'), url(../font/barlow_semibold.woff) format('woff'), url(../font/barlow_semibold.ttf) format('truetype');
}
@font-face {
  font-family: 'barlow_bold';
  font-weight: 700;
  src: url(../font/barlow_bold.eot);
  src: url(../font/barlow_bold.eot?#iefix) format('embedded-opentype'), url(../font/barlow_bold.woff) format('woff'), url(../font/barlow_bold.ttf) format('truetype');
}

/* ============================================================
   1. BASE / SHELL
   ============================================================ */
body,
input,
select,
textarea,
button {
  font-family: 'barlow_regular', 'Roboto', 'notosans', sans-serif;
}

body {
  position: relative;
  width: 820px;
  height: 660px;
  overflow: hidden;
}

.wrap {
  width: 820px;
  height: 660px;
  box-sizing: border-box;
}

.content {
  height: 100%;
  padding: 0;
  background: #0e1017;
  font-size: 13px;
  box-sizing: border-box;
}

.content.bg_light {
  background: #0e1017;
}

.inner {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
}

/* ============================================================
   2. HEADER BAR - Tabs + Balance
   ============================================================ */
.menu {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  position: relative;
  height: 38px;
  margin-bottom: 10px;
  padding: 0 6px;
  background: #161822;
  border-radius: 8px;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.menu .tab_lst {
  display: -ms-flexbox;
  display: flex;
  font-size: 0;
}

.menu .tab_lst li {
  display: block;
  width: auto;
  min-width: 80px;
  border-left: none;
  background-color: transparent;
  border-radius: 5px;
  margin: 4px 3px;
  transition: background-color 0.2s ease;
}

.menu .tab_lst li:first-child {
  border-left: none;
}

.menu .tab_lst li:hover {
  background-color: rgba(99, 102, 241, 0.15);
}

.menu .tab_lst li.on {
  background-color: #252a45;
}

.menu .tab_lst a {
  display: block;
  font-size: 12px;
  color: #5c6280;
  line-height: 30px;
  text-align: center;
  padding: 0 14px;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
}

.menu .tab_lst li.on a {
  font-family: 'barlow_semibold';
  font-weight: 600;
  color: #e2e8f0;
}

.menu .tab_lst a:hover {
  color: #a5adc8;
}

/* Balance */
.menu .cash_bx {
  position: static;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  margin-left: auto;
  font-size: 11px;
  line-height: 25px;
  padding-right: 2px;
}

.menu .cash_bx strong {
  display: inline-block;
  font-weight: 400;
  color: #5c6280;
  vertical-align: top;
  font-size: 11px;
}

.menu .cash_bx .txt_yellow {
  display: inline-block;
  font-family: 'Roboto';
  font-weight: 700;
  font-size: 14px;
  color: #fbbf24;
  vertical-align: top;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.menu .cash_bx .txt_unit {
  display: inline-block;
  font-family: 'barlow_regular';
  color: #fbbf24;
  vertical-align: top;
}

.menu .cash_bx .btn {
  width: auto;
  margin-left: 8px;
  padding: 0 10px;
  height: 24px;
  line-height: 22px;
  border-radius: 4px;
  background: #6366f1;
  border: none;
  color: #fff;
  font-size: 10px;
  font-family: 'barlow_semibold';
  letter-spacing: 0.8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.3);
}

.menu .cash_bx .btn:hover {
  background: #818cf8;
  color: #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.5);
}

/* ============================================================
   3. MAIN CONTENT - COLUMN layout (no sidebar)
   ============================================================ */
#divItem {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex: 1 1 0px;
  flex: 1;
  min-height: 0;
  height: 0; /* IE11 nested flex overflow fix */
}

/* ============================================================
   4. CATEGORIES - Horizontal pill buttons (bigger, readable)
   ============================================================ */
.lnb {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-line-pack: start;
  align-content: flex-start;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: auto;
  max-height: 76px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-right: 0;
  margin-bottom: 8px;
  padding: 2px 0;
  background: transparent;
  border-radius: 0;
  vertical-align: top;
}

.lnb::-webkit-scrollbar { width: 3px; }
.lnb::-webkit-scrollbar-track { background: transparent; }
.lnb::-webkit-scrollbar-thumb { background: #252a45; border-radius: 3px; }

.lnb_itm {
  width: auto;
  border-top: none;
  border-left: none;
  background-color: #161822;
  border-radius: 14px;
  margin: 0 6px 6px 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
  border: 1px solid #1e2130;
}

.lnb_itm:first-child {
  border-top: none;
  margin-top: 0;
}

.lnb_itm:last-child {
  margin-bottom: 6px;
}

.lnb_itm:hover {
  background-color: #1c1f30;
  border-color: #2a2f4d;
}

.lnb_itm.on {
  background-color: #252a45;
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.lnb_itm a {
  display: block;
  padding: 0 16px;
  font-size: 13px;
  font-family: 'barlow_medium';
  color: #7c829a;
  line-height: 28px;
  white-space: nowrap;
  transition: color 0.15s ease;
  letter-spacing: 0.3px;
}

.lnb_itm.on a {
  font-family: 'barlow_semibold';
  font-weight: 600;
  color: #fff;
}

.lnb_itm a:hover {
  color: #b0b8d0;
}

/* ============================================================
   5. SHOP AREA - Full width
   ============================================================ */
.shop_wrap {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex: 1 1 0px;
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: 0; /* IE11 nested flex fix */
  margin-left: 0;
  vertical-align: top;
}

/* Shop Header - Search + Pagination in one row */
.shop_header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.shop_header .search_bx {
  display: block;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 230px;
}

.search_inp {
  display: block;
  width: 100%;
  height: 30px;
  background-color: #161822;
  border: 1px solid #1e2130;
  border-radius: 15px;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search_inp:hover {
  border-color: #2a2f4d;
}

.search_inp input {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: none;
  background-color: transparent;
  outline: none;
  font-size: 12px;
  color: #e2e8f0;
  box-sizing: border-box;
  letter-spacing: 0.2px;
}

.search_inp input:-ms-input-placeholder {
  color: #3a3f58;
}

/* Pagination in header */
.shop_header .pagination {
  -ms-flex: 1 1 0px;
  flex: 1;
  position: static;
  width: auto;
  padding: 0;
  text-align: center;
}

/* Product Area */
.product_area {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex: 1 1 0px;
  flex: 1;
  min-height: 0;
  height: 0; /* IE11 nested flex overflow fix */
  position: relative;
}

.product_area .menu_depth3 {
  margin-top: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

/* ============================================================
   6. ITEM GRID - 3 columns
   ============================================================ */
.product_lst {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex: 1 1 0px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0;
  -ms-flex-line-pack: start;
  align-content: flex-start;
  padding: 2px;
}

.product_lst:first-child {
  margin-top: 0;
}

.product_lst::-webkit-scrollbar { width: 4px; }
.product_lst::-webkit-scrollbar-track { background: transparent; }
.product_lst::-webkit-scrollbar-thumb { background: #252a45; border-radius: 4px; }

.product_lst li {
  display: block;
  width: 32%;
  margin: 0 2% 6px 0;
  box-sizing: border-box;
}

.product_lst li:nth-child(3n) {
  margin-right: 0;
}

.product_lst li:nth-child(even) {
  margin-left: 0;
}

.product_lst li:nth-child(n+3) {
  margin-top: 0;
}

/* ============================================================
   7. ITEM CARDS - Compact vertical, icon on top
   ============================================================ */
.product_itm {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 24px 10px 10px;
  background-color: #161822;
  border: 1px solid #1e2130;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
  text-align: center;
}

.product_itm:hover {
  background-color: #1c1f30;
  border-color: #2e3350;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* Badge - base */
.product_itm .lbl {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px 0 8px 0;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 18px;
  height: 18px;
  min-width: 0;
  padding: 0 8px;
  z-index: 1;
  font-family: 'barlow_semibold';
  font-weight: 600;
}

.lbl.darkblue {
  background-color: #1e2238;
  color: #5c6280;
}

/* Normal badge - subtle */
.lbl.lbl_normal {
  background-color: #1a1d2e;
  color: #4a5068;
}

/* Discount/SALE badge - eye-catching */
.lbl.lbl_discount {
  background: linear-gradient(to right, #b45309, #d97706);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* Thumbnail - Flex ordered to TOP */
.product_itm .product_thumb {
  -ms-flex-order: -1;
  order: -1;
  position: static;
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border: 2px solid #252a45;
  border-radius: 12px;
  background-color: #0e1017;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  top: auto;
  right: auto;
}

.product_itm:hover .product_thumb {
  border-color: #6366f1;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

.product_itm .product_thumb img {
  width: 100%;
  height: 100%;
}

/* Title */
.product_itm .product_tit {
  display: block;
  -ms-flex-order: 1;
  order: 1;
  margin-top: 0;
  font-size: 12px;
  font-family: 'barlow_medium';
  color: #c8cee0;
  line-height: 16px;
  height: auto;
  max-height: 30px;
  overflow: hidden;
  width: 100%;
}

/* Price */
.product_itm .product_price {
  display: block;
  -ms-flex-order: 2;
  order: 2;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  color: #fbbf24;
  vertical-align: top;
}

.product_itm .product_price:before {
  display: none;
}

.product_itm .product_price .txt_price,
.product_itm .product_price .txt_calc {
  display: inline-block;
  font-family: 'Roboto';
  font-weight: normal;
  font-size: 10px;
  color: #3a3f58;
  vertical-align: middle;
  text-decoration: line-through;
}

.product_itm .product_price .txt_calc {
  text-decoration: none;
  margin: 0 2px;
}

.product_itm .product_price .emph_price {
  display: inline-block;
  font-family: 'Roboto';
  font-weight: 700;
  font-size: 15px;
  color: #fbbf24;
  vertical-align: middle;
}

.product_itm .product_price .txt_unit {
  display: inline-block;
  font-family: 'barlow_semibold';
  font-weight: 600;
  font-size: 11px;
  color: #fbbf24;
  vertical-align: middle;
  opacity: 0.6;
}

/* ============================================================
   8. PAGINATION
   ============================================================ */
.pagination {
  position: static;
  bottom: auto;
  right: auto;
  width: auto;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  text-align: center;
  padding: 8px 0 2px;
}

.pagination .btn_pagination {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: top;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.pagination .btn_pagination:hover {
  background-color: #1c1f30;
}

.pagination .pagination_lst {
  display: inline-block;
  margin: 0 4px;
  vertical-align: top;
}

.pagination .pagination_lst .lst_itm {
  display: inline-block;
  width: 22px;
  vertical-align: top;
}

.pagination .pagination_lst .lst_itm a {
  display: block;
  font-family: 'Roboto';
  font-size: 11px;
  font-weight: normal;
  color: #3a3f58;
  line-height: 22px;
  height: 22px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.pagination .pagination_lst .lst_itm a:hover {
  background-color: #1c1f30;
  color: #8890a8;
}

.pagination .pagination_lst .lst_itm a.on {
  background: #252a45;
  color: #fbbf24;
  font-weight: 700;
}

/* Page jump input */
.pagination .pagination_lst .page_jump {
  display: inline-block;
  width: auto;
  vertical-align: top;
  margin: 0 2px;
}

.pagination .pagination_lst .page_jump input {
  width: 36px;
  height: 22px;
  text-align: center;
  background: #0e1017;
  border: 1px solid #2e3350;
  border-radius: 4px;
  color: #fbbf24;
  font-size: 11px;
  font-family: 'Roboto';
  font-weight: 700;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

.pagination .pagination_lst .page_jump input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.3);
}

/* ============================================================
   9. HISTORY VIEW
   ============================================================ */
#divHistory {
  -ms-flex: 1 1 0px;
  flex: 1;
  min-height: 0;
  padding: 2px 0;
}

/* General table base */
.tbl_lst {
  border-radius: 10px;
  overflow: hidden;
}

/* General table fallbacks (popup tables, etc) */
.tbl_lst thead th {
  background-color: #161822;
  color: #5c6280;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.tbl_lst td .itm_name {
  width: auto;
}

.tbl_lst tbody tr {
  transition: background-color 0.15s ease;
}

.tbl_lst tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.06);
}

/* ---- History table - colors only, keep base spacing ---- */
#divHistory .tbl_lst {
  width: 100%;
  background-color: #161822;
  border: 1px solid #1e2130;
}

#divHistory .tbl_lst thead th {
  background-color: #1c1f2e;
  color: #6b7190;
  font-size: 10px;
  font-family: 'barlow_semibold';
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid #252a45;
}

#divHistory .tbl_lst tbody td {
  color: #8890a8;
  border-bottom: 1px solid #1a1d2a;
}

/* Date column */
#divHistory .tbl_lst tbody td:first-child {
  color: #4a5068;
  font-family: 'Roboto';
}

/* Quantity column */
#divHistory .tbl_lst tbody td:nth-child(3) {
  color: #c8cee0;
  font-family: 'Roboto';
  font-weight: 500;
}

/* Alternating rows */
#divHistory .tbl_lst tbody tr {
  background-color: #161822;
  transition: background-color 0.2s ease;
}

#divHistory .tbl_lst tbody tr:nth-child(even) {
  background-color: #13151f;
}

#divHistory .tbl_lst tbody tr:hover {
  background-color: #1e2236;
}

#divHistory .tbl_lst tbody tr:last-child td {
  border-bottom: none;
}

/* Item name - white, medium weight */
#divHistory .tbl_lst td .itm_name {
  color: #e2e8f0;
  font-family: 'barlow_medium';
  font-weight: 500;
}

/* Price column - gold */
#divHistory .tbl_lst tbody .lst .txt_indnt {
  color: #fbbf24;
  font-family: 'Roboto';
  font-weight: 700;
}

/* History pagination */
#divHistory .pagination {
  margin-top: 8px;
}

/* ============================================================
   10. POPUP / MODAL
   ============================================================ */
.layer {
  display: none;
}

.dimmed {
  background-color: rgba(0, 0, 0, 0.75);
}

.popup {
  background-color: #161822;
  border-radius: 10px;
  border: 1px solid #1e2130;
  box-shadow: 0 16px 56px rgba(0,0,0,0.7);
  overflow: hidden;
}

.popup .popup_tit_box {
  background: #1c1f2e;
  border-bottom: 1px solid #252838;
}

.popup .popup_tit_box .pop_tit {
  font-family: 'barlow_semibold';
  font-weight: 600;
  letter-spacing: 0;
  color: #e2e8f0;
}

.popup .dot_lst { margin-top: 0; }
.popup .dot_lst li { padding-left: 13px; color: #5c6280; }
.popup .dot_lst li:before { width: 3px; height: 3px; border-radius: 50%; }

.popup .tit { font-family: 'barlow_bold'; font-weight: 700; }
.popup .tit + .txt { letter-spacing: 0; }
.popup .pop_btn_grp { font-size: 0; }

.popup .popup_ct .tbl_lst:first-child { margin-top: 0; }
.popup .grp_grdtn + .pop_btn_grp { margin-top: 25px; }
.popup .dot_lst + .pop_btn_grp { margin-top: 24px; }

/* Product Popup */
.popup.product_popup .product_name {
  margin: -1px 0 0 -1px;
  font-family: 'barlow_medium';
  font-weight: 500;
}

.popup.product_popup .product_detail {
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 4px;
}

.popup.product_popup .product_info .product_thumb {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  border-color: #252a45;
}

.popup.product_popup .tbl_lst .btn { width: auto; padding: 0 6px; }
.popup.product_popup .tbl_lst .inp_pass { color: #fff; }

.popup.product_popup .product_price { display: block; margin-top: 3px; }
.popup.product_popup .product_price .txt_price,
.popup.product_popup .product_price .txt_calc {
  display: inline-block; font-family: 'Roboto'; font-weight: normal;
  font-size: 12px; color: #4a5068; vertical-align: middle;
}
.popup.product_popup .product_price .txt_calc { margin: 0 7px; }
.popup.product_popup .product_price .emph_price {
  display: inline-block; font-family: 'Roboto'; font-weight: 700;
  font-size: 16px; color: #fbbf24; vertical-align: middle;
}

.popup.product_popup .product_name + .list_package { margin-top: 34px; }
.popup.product_popup .product_desc + .list_package { margin-top: 14px; }
.popup.product_popup .product_price + .list_package { margin-top: 12px; }

.popup.product_popup .tbl_lst .emph_cash { vertical-align: middle; }
.popup.product_popup .tbl_lst .txt_yellow { font-family: 'Roboto'; font-weight: normal; vertical-align: middle; }
.popup.product_popup .tbl_lst .emph_cash + .txt_yellow { margin-left: 15px; }
.popup.product_popup .tbl_lst .txt_unit { color: #fbbf24; vertical-align: middle; }
.popup.product_popup .tbl_lst .grp_tf { display: block; padding: 0 0 16px; }
.popup.product_popup .tbl_lst .box_tf { min-width: 50%; }
.popup.product_popup .tbl_lst .txt_note {
  display: inline-block; width: auto; height: 23px; margin-left: 33px;
  padding: 0 9px; border-radius: 4px; background-color: #252a45;
  font-size: 12px; color: #fff; line-height: 23px; text-align: center;
  vertical-align: top; box-sizing: border-box; letter-spacing: 0;
}
.popup.product_popup .tbl_lst .align_top { padding-top: 11px; }
.popup.product_popup .tbl_lst + .tit { margin-top: 27px; }
.popup.product_popup .sub_tit { margin-top: 20px; }
.popup.product_popup .sub_tit + .dot_lst { margin-top: 7px; }

/* Package Icons */
.list_package { display: inline-block; font-size: 0; vertical-align: top; }
.list_package li { display: inline-block; vertical-align: top; }
.list_package li + li { margin-left: 2px; }
.list_package .thumb_package { max-width: 32px; border-radius: 6px; }

/* ============================================================
   11. BUTTONS
   ============================================================ */
.btn {
  border-radius: 5px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn:hover {
  opacity: 0.9;
}

.btn_outline {
  line-height: 32px;
}

.btn_lg {
  font-family: 'barlow_medium';
  font-weight: 500;
  font-size: 14px;
}

/* Quick Quantity */
.quick_qty_btn {
  margin-left: 5px;
  width: 38px;
  padding: 0;
  line-height: 23px;
  font-size: 11px;
  border-radius: 4px;
  background: #1e2238;
  border: 1px solid #2e3350;
  color: #8890a8;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.quick_qty_btn:hover {
  background: #2e3350;
  border-color: #6366f1;
  color: #fff;
}

/* +/- Buttons */
.btn_minus,
.btn_plus {
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.btn_minus:hover,
.btn_plus:hover {
  opacity: 0.8;
}

/* Popup Buttons */
.pop_btn_grp .btn_lg {
  width: 120px;
  height: 34px;
  font-size: 14px;
  line-height: 32px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.pop_btn_grp .btn_outline {
  border: 1px solid #252a45;
  background-color: transparent;
  color: #5c6280;
}

.pop_btn_grp .btn_outline:hover {
  background-color: #1c1f30;
  border-color: #6366f1;
  color: #fff;
}

.pop_btn_grp .btn:not(.btn_outline) {
  background: #6366f1;
  border: 1px solid #6366f1;
  color: #fff;
}

.pop_btn_grp .btn:not(.btn_outline):hover {
  background: #818cf8;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* Button Alignment */
.popup.product_popup .tbl_lst tbody tr td button,
.popup.product_popup .tbl_lst tbody tr td .num,
.popup.product_popup .tbl_lst tbody tr td .quick_qty_btn {
  vertical-align: middle;
}

/* ============================================================
   12. ERROR MODAL
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #161822;
  margin: auto;
  padding: 24px;
  border: 1px solid #252a45;
  border-radius: 10px;
  width: 70%;
  box-shadow: 0 16px 56px rgba(0,0,0,0.6);
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
}

.close {
  color: #4a5068;
  float: right;
  font-size: 22px;
  font-weight: bold;
  transition: color 0.15s ease;
}

.close:hover,
.close:focus {
  color: #fbbf24;
  text-decoration: none;
  cursor: pointer;
}

/* ============================================================
   13. MISC OVERRIDES
   ============================================================ */

/* Description table */
.tbl_desc { float: none; text-align: right; }
.tbl_desc .tab_lst li { margin-left: 16px; padding-left: 21px; }
.tbl_desc .datepicker_area { margin-left: 22px; }

/* Pagination flexible */
.pagination.flexible { right: auto; left: auto; width: auto; position: static; }

/* Select */
.select .btn_open_select { font-family: 'barlow_medium'; font-weight: 500; }
.select .select_lst li .btn_option { font-family: 'barlow_medium'; font-weight: 500; }

/* Flexible button */
.btn.flexible { width: auto !important; padding: 0 11px !important; }

/* Emphasis / Warning */
.grp_tf .emph_warning { display: inline-block; font-size: 13px; color: #fbbf24; vertical-align: top; }
.grp_tf .emph_warning + .grp_inp { margin-left: 15px; }
.grp_tf .grp_inp { display: inline-block; vertical-align: top; }

/* Text Fields */
.box_tf { box-sizing: border-box; }
.box_tf .tf_comm {
  width: 100%; padding: 15px 16px 16px; border: 0 none;
  box-sizing: border-box; font-size: 13px; color: #fff; background-color: transparent;
}
.box_tf .tf_comm:-ms-input-placeholder { color: #3a3f58; letter-spacing: 0.15px; }
.box_tf.clean { border-color: transparent; }
.box_tf.clean .tf_comm { padding: 14px 0 12px; outline: none; }

/* Input Groups */
.grp_inp { font-size: 0; }
.grp_inp .box_inp { display: inline-block; vertical-align: middle; }
.grp_inp .lab_inp {
  display: inline-block; margin-left: 8px; font-size: 14px;
  color: #a4a4a4; vertical-align: top; letter-spacing: -0.25px; cursor: pointer;
}
.box_inp .inp_comm {
  width: 20px; height: 20px; border: 1px solid #9e9e9e;
  box-sizing: border-box; background-color: transparent;
  -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; vertical-align: top;
}

/* Gradient Group */
.grp_grdtn { overflow: hidden; position: relative; margin: 14px 0; }
.inner_grdtn { overflow-x: hidden; overflow-y: auto; height: 54px; }
.grp_grdtn .dot_lst li { color: #6b7190; }
.grp_grdtn .dot_lst li:before { top: 9px; width: 2px; height: 2px; }

/* Loading Overlay */
#loading-overlay {
  background-color: rgba(0, 0, 0, 0.97);
  font-size: 13px;
  color: #4a5068;
  letter-spacing: 4px;
}

/* Yellow text */
.txt_yellow {
  color: #fbbf24;
}

/* Datepicker (keep functional) */
.datepicker_area .ico_calendar_gamemall { display: none; }
.ui-widget.ui-widget-content { background-color: #0e1017; }
