/* ================= FIX BY BYTEDEE.COM ================= */
/* FIX : 09/01/2569 */

@charset "UTF-8";
@import url('https://fonts.googleapis.com/css?family=Prompt:300,400,600,700&subset=thai');

/* ================= FIX ICONS  ================= */
.fa, .fas, .far, .fab {
  font-family: FontAwesome !important;
}

/* ================= FORCE DESKTOP MODE ================= */
body {
  min-width: 1250px !important;
  overflow-x: auto !important;
}

.inv-topbar-inner,
.inv-hero-center,
.inv-wrap {
  width: 1200px !important;
  max-width: 1200px !important;
  min-width: 1200px !important;
  margin: 0 auto;
  padding: 0 15px;
}

/* =================  MODAL & Z-INDEX ================= */
.modal { z-index: 99999 !important; }
.modal-backdrop { z-index: 99990 !important; }
.inv-topbar { z-index: 1000; }
.modal-body { color: #333 !important; background: #fff; }

.list-group-item {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #333;
  display: block;
  padding: 10px 15px;
  margin-bottom: -1px;
}
.list-group-item i {
  margin-right: 10px;
  color: #0b2a3d;
  width: 20px;
  text-align: center;
}
.badge-cash {
  background: #2daaff;
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
}
label-modal {
  font-weight: 700;
  color: #0b2a3d;
  display: block;
  margin-bottom: 5px;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0; z-index: 1;
}

/* ================= GLOBAL STYLES ================= */
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: 'Prompt', sans-serif;
  background: #eef3f8;
  color: #333;
  font-size: 14px;
}
a { text-decoration: none; color: inherit; transition: .3s; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* ================= TOPBAR ================= */
.inv-topbar {
  height: 60px;
  background: #0b2a3d;
  color: #fff;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.inv-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inv-brand { display: flex; align-items: center; gap: 10px; }
.inv-brand img { height: 40px; }
.inv-brand-text .inv-title { font-weight: 700; font-size: 18px; line-height: 1; }
.inv-brand-text .inv-sub { font-size: 11px; opacity: 0.7; letter-spacing: 1px; }

.inv-mid { display: flex; gap: 15px; }
.inv-chip {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
  min-width: 80px;
}
.inv-chip .k { font-size: 9px; opacity: 0.7; letter-spacing: 0.5px; margin-bottom: 2px; }
.inv-chip .v { font-weight: 700; font-size: 12px; color: #4fc3f7; }

.inv-login { display: flex; align-items: center; }
.inv-loginform { display: flex; gap: 5px; }
.inv-loginform input {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 4px;
  padding: 0 8px;
  height: 30px;
  font-size: 12px;
  width: 120px;
}
.inv-loginform button {
  background: #2daaff;
  color: #fff;
  border: none;
  border-radius: 4px;
  height: 30px;
  padding: 0 15px;
  font-weight: 700;
  cursor: pointer;
}
.inv-loginform button:hover { background: #1a94e6; }

.inv-userbox { display: flex; align-items: center; gap: 10px; }
.inv-userbox .u { font-weight: 600; color: #ffd700; }
.inv-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
}
.inv-btn:hover { background: #fff; color: #0b2a3d; }
.inv-btn-danger { background: #e74c3c; }
.inv-btn-danger:hover { background: #c0392b; color: #fff; }

/* ================= HERO ================= */
.inv-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  margin-bottom: -60px;
}
.inv-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}
.inv-hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(11,42,61,0) 0%, rgba(238,243,248,1) 100%);
  z-index: 2;
}
.inv-hero-center {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
}
.inv-hero-logo {
  max-height: 200px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translatey(0px); }
  50% { transform: translatey(-10px); }
  100% { transform: translatey(0px); }
}

/* ================= GRID SYSTEM ================= */
.inv-wrap {
  padding: 0 15px 40px;
  position: relative;
  z-index: 10;
}
.inv-grid {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Left Sidebar */
.inv-left { width: 240px; flex-shrink: 0; }
.left-card { display: block; margin-bottom: 10px; transition: transform .2s; }
.left-card:hover { transform: translateX(5px); }
.left-card-img { width: 100%; border-radius: 8px; }

.inv-sidecard {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 15px;
}
.inv-sidecard-title {
  font-weight: 700;
  color: #0b2a3d;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.inv-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-social-btn img { width: 100%; border-radius: 6px; transition: .2s; }
.inv-social-btn:hover img { filter: brightness(1.1); }

.inv-left-footer { text-align: center; font-size: 11px; color: #8898aa; margin-top: 20px; }
.inv-left-footbrand .h { font-weight: 900; color: #0b2a3d; font-size: 14px; }
.inv-left-footlinks { margin: 10px 0; }
.inv-left-footlinks a { font-weight: 600; color: #555; }
.inv-left-footlinks .dot { margin: 0 4px; opacity: 0.4; }

/* Center Content */
.inv-center { flex: 1; min-width: 0; }
.inv-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  overflow: hidden;
}
.inv-card-head {
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}
.inv-card-title {
  font-weight: 800;
  color: #0b2a3d;
  font-size: 16px;
  border-left: 4px solid #2daaff;
  padding-left: 10px;
}
.inv-banner-image img { width: 100%; display: block; }
.inv-banner-inner {
  padding: 20px;
  background: linear-gradient(90deg, #2daaff 0%, #0b2a3d 100%);
  color: #fff;
  border-radius: 10px;
}
.inv-banner-title { font-size: 24px; font-weight: 800; }
.inv-banner-sub { font-size: 14px; opacity: 0.9; }

.inv-sample-grid {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.inv-sample-btn img { width: 100%; border-radius: 6px; transition: transform .2s; }
.inv-sample-btn:hover img { transform: translateY(-3px); }


.event6-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 0;       
  padding: 0;   
}

.event6-item {
  display: block;
  overflow: hidden; 
  position: relative;
}

.event6-item img {
  width: 100%;
  height: 100%;       
  display: block;    
  object-fit: cover;  
  border-radius: 0;   
  border: none;      
  transition: transform .3s ease;
}

.event6-item:hover img {
  transform: scale(1.05);
  z-index: 2;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.inv-news-list { padding: 10px 0; }
.inv-news-row {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid #f7f9fb;
  font-size: 13px;
}
.inv-news-row:last-child { border-bottom: none; }
.inv-news-row:hover { background: #f9fbfd; }
.inv-news-row .tag {
  background: #0b2a3d; color: #fff;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  margin-right: 10px;
}
.inv-news-row .txt { flex: 1; font-weight: 500; color: #333; }
.inv-news-row .date { font-size: 11px; color: #999; }

.inv-gc-list { padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.inv-gc-row { display: flex; align-items: center; gap: 10px; background: #f8faff; padding: 10px; border-radius: 8px; }
.inv-gc-em { width: 40px; height: 40px; background: #ddd; }
.inv-gc-meta { font-size: 11px; line-height: 1.4; }
.inv-gc-meta b { color: #0b2a3d; }
.inv-empty { text-align: center; padding: 20px; color: #999; font-size: 12px; }

/* Right Sidebar */
.inv-right { width: 280px; flex-shrink: 0; }
.inv-right-top { display: block; margin-bottom: 10px; }
.inv-right-top img { width: 100%; border-radius: 8px; transition: .2s; }
.inv-right-top:hover img { filter: brightness(1.1); }

.inv-rank-list { padding: 10px; }
.inv-rank-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 12px;
}
.inv-rank-row:last-child { border-bottom: none; }
.inv-rank-row .no {
  width: 24px; height: 24px;
  background: #eee; border-radius: 50%;
  text-align: center; line-height: 24px;
  font-weight: 700; color: #777;
  margin-right: 8px;
}
.inv-rank-row:nth-child(1) .no { background: #f1c40f; color: #fff; }
.inv-rank-row:nth-child(2) .no { background: #95a5a6; color: #fff; }
.inv-rank-row:nth-child(3) .no { background: #d35400; color: #fff; }
.inv-rank-row .nm { flex: 1; font-weight: 600; color: #0b2a3d; }
.inv-rank-row .pt { font-family: monospace; font-weight: 700; color: #2daaff; }

.sidebar-calendar {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
}
.calendar-header { font-weight: 800; color: #0b2a3d; margin-bottom: 10px; }
.calendar-week { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 5px; color: #888; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-days span { font-size: 12px; padding: 6px 0; border-radius: 4px; }
.calendar-days span.today { background: #2daaff; color: #fff; font-weight: bold; }

.inv-flash { padding: 15px; border-radius: 6px; margin: 10px 0; text-align: center; font-weight: 700; font-size: 14px; }
.inv-flash.ok { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.inv-flash.no { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Dashboard Grid Styles */
.dashboard-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.dash-col { flex: 1; min-width: 250px; }
.dash-item {
  display: flex; align-items: center;
  background: #f8f9fa; border: 1px solid #e9ecef;
  padding: 15px; margin-bottom: 10px; border-radius: 8px;
}
.dash-item .icon {
  width: 40px; height: 40px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #0b2a3d;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-right: 15px;
}
.dash-item .info .l { font-size: 11px; color: #888; margin-bottom: 2px; }
.dash-item .info .v { font-size: 16px; font-weight: 700; color: #333; }
.dash-footer {
  border-top: 1px solid #eee; padding-top: 15px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.ip-info { font-size: 12px; color: #666; }
.dash-actions { display: flex; gap: 10px; }
.dash-actions .btn { font-weight: 600; border-radius: 6px; }