:root {
  --bg: #262729;
  --bg-dark: #1e1e1e;
}

@font-face {
  font-family: 'Bold';
  src: url('GoogleSans-Bold.ttf') format('truetype');
  font-style: normal;
}

@font-face {
  font-family: 'Midium';
  src: url('GoogleSans-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'regular';
  src: url('GoogleSans-Regular.ttf') format('truetype');
}

body::-webkit-scrollbar {
  display: none;
}


body {
  margin: 0;
  font-family: 'Midium', sans-serif;
  background-color: var(--bg);
}

/* ========================
   HEADER
   ======================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px;
  /* background-color: #ffffff; */
  background-color: #262729;
  /* background-image: url(header.jpg); */
  background-size: cover;
  background-position: center;
 
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left img {
  height: 36px;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 20px;
  margin-left: -30px;
}

/* ========================
   TOOL BUTTONS (Icon Header)
   ======================== */
.tool-btn {
  background: none;
  border: none;
  cursor: pointer;
  height: 45px;
  padding: 0 25px;
  position: relative;
}

.tool-btn img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

/* មិនមាន hover - មានតែ active */
/* សម្រាប់រូបភាព Icon ឱ្យចេញពណ៌ #29AAF7 */
.tool-btn.active img {
filter: invert(93%) sepia(5%) saturate(198%) hue-rotate(192deg) brightness(200%) contrast(96%);
}

/* សម្រាប់បន្ទាត់ខាងក្រោម ឱ្យចេញពណ៌ #29AAF7 */
.tool-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #E3E4EB; /* កែពណ៌ឱ្យដូចគ្នា */
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tool-btn.active::after {
  width: 100%;
}

/* ========================
   PANEL CONTAINER & SWITCHING
   ======================== */
.panel-container {
  max-width: 100%;
  margin-top: 45px;
}

.panel {
  display: none;
  opacity: 0;
}

.panel.active {
  display: block;
  opacity: 1;
}

/* ========================
   STORE PANEL
   ======================== */
.box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ស្ទីលសម្រាប់ចំណងជើងក្នុង Store */
.store-header {
  max-width: 1100px; /* ឱ្យសមជាមួយទំហំ Box ទំនិញ */
  margin: 20px auto 0; /* កំណត់គម្លាតពីលើ និងឱ្យវាស្ថិតនៅកណ្តាលអេក្រង់ */
  padding: 0 16px; /* គម្លាតពីឆ្វេងបន្តិច */
  text-align: left; /* រុញអក្សរទៅឆ្វេង */
}

.store-header p {
  font-family: 'Midium', sans-serif;
  font-size: 20px;
  color: #ffffff; /* ពណ៌ស ឱ្យច្បាស់លើផ្ទៃងងឹត */
  margin: 0;
}

/* សម្រាប់ Mobile ឱ្យអក្សរតូចល្មម */
@media (max-width: 480px) {
  .store-header {
    margin: 50px 0 10px 10px; /* កែសម្រួលគម្លាតលើ Mobile */
    padding: 0;
  }
  .store-header p {
    font-size: 18px;
  }
}

.item {
  background-color: #333334;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
  padding: 5px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.info {
  padding-left: 10px;
  padding-top: 10px;
}

.info h3 {
  font-family: 'Midium', sans-serif !important;
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 5px;
  color: #E2E5E9;
}

.info p {
  font-size: 16px;
  font-family: 'Midium', sans-serif;
  color: #B0B3B8;
  margin: 0 0 5px;
}

.info span {
  color: #0099ff;
  font-size: 14px;
  font-family: 'bold';
}

/* ========================
   SERVICE PANEL
   ======================== */


.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #009dff;
}

.last-works {
  max-width: 1100px;
  margin: 0px auto;
  padding: 0 0px;
}

/* បង្កើតប្លង់ដែលរូបភាពរត់បំពេញចន្លោះទំនេរ (Masonry) */
.works-grid {
  /* កំណត់ចំនួនជួរ៖ ២ ជួរសម្រាប់ Mobile និង ៣ ជួរសម្រាប់ Desktop */
  column-count: 2; 
  column-gap: 0px; /* ចន្លោះរវាងជួរឈរ */
  width: 100%;
  padding: 0 0px;

}

.works-grid img {
  width: 100%;
  height: auto; /* រក្សាទំហំដើម */
  display: block;
  border-radius: 10px;
  margin-top: 10px;
  /* ការពារកុំឱ្យរូបភាពដាច់ពាក់កណ្តាលពេលឆ្លងជួរ */
  break-inside: avoid;
  page-break-inside: avoid;
}

/* សម្រាប់អេក្រង់ធំ (PC) បង្ហាញ ៣ ជួរ */
@media (min-width: 900px) {
  .works-grid {
    column-count: 3;
    column-gap: 12px;
  }
}

/* ========================
   PRODUCT MODAL
   ======================== */
:root {
  --header-h: 50px;
  --sheet-dur: 380ms;
}

header {
  z-index: 6000;
}

body.sheet-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  z-index: 5000;
  visibility: hidden;
  pointer-events: none;
}

.product-modal.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.pm-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.pm-dialog {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  overflow: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: transform var(--sheet-dur) cubic-bezier(.2,.9,.2,1),
              opacity var(--sheet-dur) ease;
}

.product-modal.is-open .pm-dialog {
  transform: translateX(0);
  opacity: 1;
}

.pm-close {
  position: sticky;
  top: 12px;
  left: 12px;
  margin: 12px 0 0 12px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgb(50, 51, 52);
  cursor: pointer;
}

.pm-content {
  padding: 0 16px 28px;
}

.content-store {
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Midium', sans-serif;
  color: #6e6e6e;
}

.content-store .cover {
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  display: block;
  margin: 8px auto 14px;
}

.content-store p {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.8;
  margin: 10px 0 12px;
  text-align: left;
}

body.dark .content-store p {
  color: #e6e6e6;
}

.fix-list {
  margin: 0;
  padding-left: 20px;
}

.fix-list li {
  margin: 8px 0;
  line-height: 1.3;
  color: #BDC1C6;
}

.btn-store-info {
  width: 170px;
  height: 46px;
  border-radius: 999px;
  background-color: #0099ff;
  font-size: 16px;
  color: #ffffff;
  border: none;
  margin: 18px 0 10px;
  font-family: 'Midium', sans-serif;
  cursor: pointer;
  transition: 0.3s;
}

.btn-store-info:hover {
  background-color: #0061d8;
}


/* ========================
   HOME SECTION
   ======================== */
.Home-content {
  margin-top: 55px;
}

.Home-content img {
  width: 35%;
  border-radius: 0px;
}

.Home-content p {
  font-family: 'Midium', sans-serif;
  color: #0c96dc;
}

.text-tab3 p {
  margin: 0px 0 10px;
  font-family: 'Midium', sans-serif;
  font-size: 24px;
  text-align: center;
  color: #afb0b3;
}

body.dark .text-tab3 p {
  color: #e0e0e0;
}

/* ========================
   SEARCH SECTION
   ======================== */
.search-container {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  background: #e6e6e6;
  padding: 8px 20px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'khala battambang', system-ui, sans-serif;
  font-size: 16px;
  padding: 4px 0;
  outline: none;
  color: #5b5b5b;
}

.search-input::placeholder {
  color: #919191;
}

.search-btn {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-btn img {
  width: 20px;
  height: 20px;
}

body.dark .search-container {
  background: rgba(30, 30, 30, 0.90);
}

body.dark .search-input {
  color: #e0e0e0;
}

body.dark .search-input::placeholder {
  color: #666;
}

/* ========================
   FEATURED APPS
   ======================== */
#featuredAppsGrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  background-color: transparent;
}

.featured-app-card {
  background: transparent;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.featured-app-card:hover {
  background-color: #e6e6e6;
  transform: scale(1.05);
}

.featured-app-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.featured-app-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-app-card h4 {
  margin: 0;
  font-family: 'Khala regular', system-ui, sans-serif;
  font-size: 13px;
  color: #000000;
  line-height: 1.4;
  font-weight: 100;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 20px;
  font-family: 'khala battambang', system-ui, sans-serif;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 10px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  padding: 10px;
}

.channel-box {
  height: 130px;
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.channel-box img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* square 1x1 */
  object-fit: cover;
  border-radius: 8px;
}

.channel-box p {
  font-family: 'Midium', sans-serif;
  font-size: 15px;
  margin-bottom: 20px;   /* ខិតទៅលើជិតរូបភាព */
  line-height: 1.1;
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .channel-grid {
    grid-template-columns: repeat(3, 1fr) !important; /* 3 ប្រអប់ក្នុងមួយជួរ */
  }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
  #featuredAppsGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  #featuredAppsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .featured-app-card {
    padding: 10px;
  }

  .featured-app-logo {
    width: 50px;
    height: 50px;
  }

  .featured-app-card h4 {
    font-size: 12px;
  }

  .works-grid {
    column-count: 2;
    column-gap: 5px;
  }

  .works-grid img {
    margin-bottom: 10px;
  }

  .text-tab3 p {
    font-size: 19px;
  }

  .Home-content img {
    width: 100%;
    padding: 0;
    margin: 0;
  }
}



@media (max-width: 480px) {
  header {
    height: 50px;
    padding: 0 10px;
  }

  .header-left img {
    height: 34px;
  }

  .header-center {
    gap: 0;
  }

  .tool-btn {
    padding: 0 25px;
    margin-top: 5px;
  }

  .tool-btn img {
    width: 28px;
    height: 28px;
  }

  .panel-container {
    margin-top: 55px;
    padding: 0 0px;
  }

  .box {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .item {
    border-radius: 8px;
    min-height: 200px;
  }

  .item img {
    width: 100%;
    height: auto;
  }

  .info h3 {
    font-size: 16px;
  }

  .info p {
    font-size: 14px;
  }

  .info span {
    font-size: 13px;
    font-weight: 500;
  }

  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

a {
  text-decoration: none;
}













/* Container របស់ Tabs */
.store-tabs-container {
  padding: 15px 10px;
  background-color: var(--bg);
  display: flex;
  justify-content: center;
}

.store-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 12px;
}

/* ប៊ូតុង Tab នីមួយៗ */
.tab-item {
  background: none;
  border: none;
  color: #888;
  padding: 8px 16px;
  font-family: 'Midium', sans-serif;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-item.active {
  background-color: #0099ff;
  color: #fff;
}

/* ការគ្រប់គ្រងការបង្ហាញមាតិកា */
.store-tab-content {
  display: none; /* លាក់មាតិកាទាំងអស់ជាមុន */
}

.store-tab-content.active {
  display: block; /* បង្ហាញតែមាតិកាដែល Active */
}

/* កែសម្រួល store-header បន្តិច */
.store-header {
  max-width: 1100px;
  margin: 10px auto;
  padding: 0 16px;
}











/* Container សម្រាប់ផ្ទាំងឌីហ្សាញ */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card ឌីហ្សាញ */
.design-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.design-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* Icon ឌីហ្សាញ */
.design-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 153, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.design-icon img {
  width: 50px;
  height: 50px;
}

/* អត្ថបទក្នុង Card */
.design-info h3 {
  font-size: 20px;
  color: #fff;
  margin: 10px 0;
  font-family: 'Midium', sans-serif;
}

.design-info p {
  font-size: 14px;
  color: #bdc1c6;
  line-height: 1.5;
  margin-bottom: 15px;
}

.design-info .price {
  display: block;
  font-size: 18px;
  color: #0099ff;
  margin-bottom: 20px;
}

/* ប៊ូតុងកុម្ម៉ង់ */
.btn-order {
  width: 100%;
  padding: 12px;
  background: #0099ff;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Midium', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-order:hover {
  background: #007acc;
}

/* Responsive */
@media (max-width: 600px) {
  .design-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }
}




















/* Header Section */
.service-global-header {
  text-align: center;
  padding: 0px 20px;
}

.service-tag {
  background: rgba(0, 153, 255, 0.1);
  color: #0099ff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-family: 'bold', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-global-header b {
  font-size: 32px;
  color: #fff;
  margin: 15px 0;
  font-family: 'bold', sans-serif;
}

.service-global-header p {
  color: #aaa;
  font-family: 'Midium', sans-serif;
  margin: 0 auto;
  font-size: 18px;
}

/* Grid System */
.design-global-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Global Card Styling */
.global-card {
  background: #1e1e20; /* ពណ៌ខ្មៅរលោងបែប Apple */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

/* .global-card:hover {
  background-color: #2b2c2d;
} */

.global-card.featured {
  border: 1.5px solid #0099ff;
}

.card-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: #0099ff;
  color: #fff;
  padding: 5px 45px;
  transform: rotate(45deg);
  font-size: 10px;
  font-family: 'bold', sans-serif;
}

/* Card Content */
.card-icon-wrap {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.card-icon-wrap img {
  width: 100%;
}

.card-body p {
  font-family: 'bold', sans-serif;
  color: #fff;
  font-size: 22px;
  margin-bottom: 15px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  color: #ccc;
  font-size: 18px;
  margin-bottom: 10px;
  gap: 10px;
}

.feature-list li img {
  width: 16px;
  height: 16px;
}

/* Footer & Button */
.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.price-text {
  color: #888;
  font-size: 18px;
}

.price-text b {
  color: #fff;
  font-size: 18px;
  margin-left: 5px;
  font-family: 'bold', sans-serif;
}

.global-btn-order {
  background: #fff;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-family: 'bold', sans-serif;
  cursor: pointer;
  transition: 0.3s;
  font-size: 18px;
  background: #0099ff;
  color: #fff;
}

@media (max-width: 600px) {
  .service-global-header p {
    font-size: 18px;
    line-height: 1.6;
  }
}


















/* --- Century Masterpiece Grid --- */
.god-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px 20px;
  max-width: 1100px; /* ទទឹងស្មើផ្ទាំង Design របស់អ្នក */
  margin: 0 auto;
  perspective: 2500px;
}

.god-card {
  position: relative;
  background: #1a1a1c;
  border-radius: 30px;
  padding: 2px; /* កម្រាស់ Border ដែលនឹងត្រូវបញ្ចេញពន្លឺ */
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* ពន្លឺរត់តាម Mouse ដែលចំណាយពេលច្នៃ ១០០ ឆ្នាំ */
.god-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--gx) var(--gy), 
    rgba(0, 153, 255, 0.6), 
    transparent 40%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}
.god-card:hover .god-glow { opacity: 1; }

.god-inner {
  position: relative;
  background: #1a1a1c;
  border-radius: 28px;
  padding: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  transform: translateZ(40px); /* ឱ្យ Content អណ្តែតខ្ពស់បំផុត */
}

/* Icons & Labels */
.god-icon {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 153, 255, 0.1);
}
.god-icon img { width: 55px; }

.god-card-title { font-size: 24px; color: #fff; margin-bottom: 15px; }
.gf-item { display: flex; align-items: center; gap: 10px; color: #999; font-size: 14px; margin-bottom: 12px; }
.gf-item img { width: 16px; }

.god-price { font-size: 16px; color: #fff; margin: 20px 0; }

/* ស្ទីលប៊ូតុងកម្រិត Google/Apple */
.god-btn {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #000;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.god-btn:hover {
  background: #0099ff;
  color: #fff;
  transform: scale(1.05) translateZ(30px);
}

.god-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 153, 255, 0.2);
  color: #0099ff;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 10px;
  border: 1px solid rgba(0, 153, 255, 0.3);
}

/* Mobile: Optimization */
@media (max-width: 768px) {
  .god-card { transform: none !important; }
  .god-glow { display: none; }
  .god-card:active { transform: scale(0.96) !important; }
}

/* --- Stats Bar --- */
.v-stats-bar {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 40px;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
}
.v-stat-item { text-align: center; }
.v-stat-num { font-size: 28px; color: #0099ff; }
.v-stat-label { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 1px; }

/* --- Workflow Section --- */
.v-workflow {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}
.workflow-title { font-size: 26px; color: #fff; margin-bottom: 30px; }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.w-step {
  background: rgba(255, 255, 255, 0.02);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}
.w-step:hover { background: rgba(0, 153, 255, 0.05); border-color: #0099ff; }
.w-num { font-size: 35px; color: rgba(0, 153, 255, 0.2); margin-bottom: 10px; font-family: sans-serif; font-weight: bold; }
.w-name { font-size: 18px; color: #fff; margin-bottom: 8px; }
.w-desc { font-size: 13px; color: #777; }

@media (max-width: 768px) {
  .v-stats-bar { gap: 20px; flex-wrap: wrap; }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
}












/* --- New Website Service Ecosystem --- */
.ws-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ws-mobile-header { text-align: center; margin: 20px 0; }
.ws-main-title { font-size: 26px; color: #fff; }
.ws-sub-title { font-size: 13px; color: #777; }

.ws-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: 0.3s;
}

.ws-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--wx) var(--wy), rgba(0, 153, 255, 0.15), transparent 60%);
  opacity: 0;
  pointer-events: none;
}
.ws-item:hover .ws-glow { opacity: 1; }

.ws-icon-side img { width: 60px; height: 60px; }

.ws-info { flex: 1; }
.ws-name { font-size: 18px; color: #fff; margin-bottom: 5px; }
.ws-features { font-size: 12px; color: #888; margin-bottom: 12px; }

.ws-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ws-price { color: #0099ff; font-size: 16px; }

.ws-btn-small {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}
.ws-btn-small:hover { background: #0099ff; color: #fff; }

.ws-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.ws-badge-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 11px;
  color: #666;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Desktop Version: ឱ្យវាចេញជា ២ ជួរវិញ */
@media (min-width: 992px) {
  .ws-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

/* Mobile: បិទចលនាដែលធ្វើឱ្យទាក់ */
@media (max-width: 768px) {
  .ws-item { padding: 15px; gap: 15px; }
  .ws-icon-side img { width: 50px; height: 50px; }
  .ws-name { font-size: 16px; }
}














.store-tab-content {
  display: none; /* លាក់មាតិកាទាំងអស់ជាមុន */
}

.store-tab-content.active {
  display: block; /* បង្ហាញតែមាតិកាណាដែលមាន Class active */
}










/* --- Website Service Tab Styling --- */
.ws-header {
  text-align: center;
  margin: 25px 0;
}
.ws-main-title { font-size: 26px; color: #fff; margin-bottom: 5px; }
.ws-sub-title { font-size: 13px; color: #777; }

.ws-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ws-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: 0.3s ease;
}

.ws-card.featured {
  border-color: rgba(0, 153, 255, 0.3);
  background: rgba(0, 153, 255, 0.02);
}

.ws-glow-box {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--wx) var(--wy), rgba(0, 153, 255, 0.1), transparent 60%);
  opacity: 0;
  pointer-events: none;
}
.ws-card:hover .ws-glow-box { opacity: 1; }

.ws-left-icon img { width: 55px; height: 55px; }

.ws-mid-info { flex: 1; }
.ws-item-title { font-size: 18px; color: #fff; margin-bottom: 4px; }
.ws-item-desc { font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 10px; }

.ws-item-tags { display: flex; gap: 8px; }
.ws-item-tags span {
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  color: #666;
}

.ws-right-price { text-align: right; min-width: 100px; }
.ws-price-val { font-size: 18px; color: #0099ff; margin-bottom: 10px; }

.ws-buy-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}
.ws-buy-btn:hover { background: #0099ff; color: #fff; }

/* Mobile Adjustment */
@media (max-width: 768px) {
  .ws-card { flex-direction: column; text-align: center; padding: 25px; }
  .ws-right-price { text-align: center; width: 100%; margin-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 15px; }
  .ws-item-tags { justify-content: center; }
  .ws-buy-btn { width: 100%; }
}




.btm-store{
  color: white;
  font-family: 'Midium', 'sans-serif';
  padding: 10px 5px;
}





















/* កែសម្រួល Post Card */
.post-card {
  background: var(--bg-dark);
  margin: 0 auto 20px auto; /* ដាក់ឱ្យនៅកណ្តាល */
  padding-bottom: 0px;
  position: relative;
  max-width: 550px; /* កំណត់ទំហំថេរសម្រាប់ Desktop */
}

/* បន្ថែមបន្ទាត់ខណ្ឌ (Divider) រវាង Post */
.post-card:not(:last-child)::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.332); /* ពណ៌បន្ទាត់ខណ្ឌ */
  margin:0px auto 0 auto;
}

.post-header {
  display: flex;
  align-items: center;
  padding: 15px;
}

.post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.post-meta {
  display: flex;
  flex-direction: column;
}


.post-date {
  color: #888;
  font-size: 14px;
}

.post-caption {
  padding: 0 15px 12px 15px;
  color: #eee;
  font-size: 16px;
  font-family: 'regular';
  line-height: 1.5;
}

.post-main-img {
  width: 100%;
  display: block;
  /* សម្រាប់ Desktop វានឹងរត់តាម max-width របស់ post-card */
}

/* បើលើ Mobile ឱ្យវាបង្ហាញពេញទទឹងវិញ */
@media (max-width: 768px) {
  .post-card {
    max-width: 100%; 
    border-radius: 0;
  }
}

/* រៀបចំឱ្យឈ្មោះ និង Tick នៅជួរជាមួយគ្នា និងចំកណ្តាលកម្ពស់អក្សរ */
.post-author-wrapper {
  display: flex;
  align-items: center; /* នេះជាចំណុចសំខាន់ដែលធ្វើឱ្យវាចំកណ្តាលលើក្រោម */
  gap: 5px; /* ចន្លោះរវាងឈ្មោះ និងរូប Tick */
  line-height: 1; /* កំណត់កម្ពស់បន្ទាត់ឱ្យនៅថេរ */
}

.post-author {
  color: #fff;
  font-family: 'Bold', sans-serif;
  font-size: 15px;
  display: inline-block;
}

.blue-tick {
  width: 14px;  /* ទំហំនេះអាចសារ៉េតាមចិត្ត bro */
  height: 14px;
  object-fit: contain;
  display: block; /* ប្តូរពី inline-block មក block ដើម្បីឱ្យ flex center ដើរស្រួល */
}




















/* Slider Cover ខាងលើ */
.infinite-slider {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
}
.infinite-slider::-webkit-scrollbar { display: none; }
.slider-track { display: flex; width: max-content; }
.slider-track img {
  width: 100vw;
  height: 200px;
  object-fit: cover;
  scroll-snap-align: start;
}

/* រៀបចំប្រអប់ ៣ លើទូរស័ព្ទ និង ៤ លើកុំព្យូទ័រ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Mobile: 4 boxes */
  gap: 10px;
  padding: 15px;
}


.box-item {
  background: #333334;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
}
.box-item img { width: 40px; height: 40px; margin-bottom: 5px; }
.box-item p { color: #fff; font-family: 'regular'; font-size: 13px; margin: 0; }

/* ផ្ទាំង Detail ថ្មី */
.category-detail-panel {
  position: fixed;
  inset: 0;
  background: #262729;
  z-index: 7000;
  display: none; /* លាក់ជាមុន */
  overflow-y: auto;
}
.back-btn-detail {
  background: #323334;
  border: none;
  padding: 10px;
  border-radius: 12px;
  margin: 10px;
  cursor: pointer;
}
.back-btn-detail img { width: 20px; }

.detail-cover-container { position: relative; width: 100%; margin-bottom: 50px; }
.main-cover-img { width: 100%; height: 180px; object-fit: cover; }

/* លើកុំព្យូទ័រ កំណត់ទទឹង Cover */


.profile-circle {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #262729;
  overflow: hidden;
  background: #444;
}
.profile-circle img { width: 100%; height: 100%; object-fit: cover; }

.detail-actions { display: flex; justify-content: center; gap: 10px; padding: 20px; }
.btn-action {
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Bold';
}
.msg { background: #0099ff; color: #fff; }
.join { background: #333; color: #fff; }













/* ស្ទីលគ្រោងរួមសម្រាប់រាល់មុខងារ Tools ទាំងអស់ */
.channel-box-link { text-decoration: none; display: block; }

.tool-shared-panel {
  position: fixed;
  top: 0;
  right: -100%; 
  width: 100%; /* លើទូរស័ព្ទយកទំហំពេញជា % */
  height: 100%;
  background: #262729;
  z-index: 8500;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
}
.tool-shared-panel.active { transform: translateX(-100%); }

.tool-shared-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}
.back-btn-tool {
  background: #323334;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 15px;
  display: flex;
  align-items: center;
}
.back-btn-tool img { width: 20px; height: 20px; }
.tool-shared-header h2 { color: #fff; font-size: 18px; margin: 0; font-family: 'Bold'; }
.tool-shared-content { padding: 16px; }

/* ទម្រង់លើកុំព្យូទ័រ (Desktop) កំណត់ដែនទទឹងជា Pixel */
















/* ========================================================
   ស្ទីលគ្រោងរួមសម្រាប់រាល់មុខងារ Tools ទាំងអស់ (ទម្រង់ទូរស័ព្ទ %)
   ======================================================== */
.tool-shared-panel {
  position: fixed;
  top: 0;
  right: -100%; 
  width: 100%; /* លើទូរស័ព្ទយកទំហំពេញជា % */
  height: 100%;
  background: #262729;
  z-index: 8500;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
}
.tool-shared-panel.active { transform: translateX(-100%); }

.tool-shared-header {
  display: flex;
  align-items: center;
  padding: 10px 5%; /* ប្រើ % លើទូរស័ព្ទ */
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}
.back-btn-tool {
  background: #323334;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 15px;
  display: flex;
  align-items: center;
}
.back-btn-tool img { width: 20px; height: 20px; }
.tool-shared-header h2 { color: #fff; font-size: 18px; margin: 0; font-family: 'Bold'; }
.tool-shared-content { padding: 16px 5%; } /* ប្រើ % លើទូរស័ព្ទ */












/* ========================================================
   កូដកែសម្រួលសកលសម្រាប់ Banner ផ្ទាំងទី៣ (ទម្រង់ទូរស័ព្ទ %)
   ======================================================== */

/* ធានាថា Slider លើទូរស័ព្ទរត់ទទឹងពេញ % និងកម្ពស់ធ្លាក់មក auto តាមរូបភាពពិត */
#service .infinite-slider {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;          /* ធ្លាក់មកអូតូសម្របតាមទូរស័ព្ទ */
  min-height: auto !important;
  margin: -14% auto -10% auto !important;
  padding: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

#service .slider-track {
  display: flex;
  width: 100% !important;
  height: auto !important;          /* ឱ្យដុំ Track រត់កម្ពស់តាមរូបភាព */
}

/* បង្ខំឱ្យរូបភាព Banner លើទូរស័ព្ទបង្ហាញសមាមាត្រត្រឹមត្រូវ ១០០% មិនខូចរាង */
#service .slider-track img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;          /* កម្ពស់អូតូដាច់ខាត */
  object-fit: contain !important;
  display: block;
}

/* កំណត់ Grid ផ្ទាំងទី៣ និងផ្ទាំងទី៤ លើទូរស័ព្ទឱ្យមាន ៣ ប្រអប់ក្នុងមួយជួរ */
#service .category-grid,
#channel .category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important; /* មួយជួរមាន ៣ ប្រអប់ */
  gap: 8px;
  width: 100% !important;
  box-sizing: border-box;
  padding: 0 5px;
}

/* ផ្ទាំង Shared Tool Panel ពេលបង្ហាញលើទូរស័ព្ទ (ពេញ ១០០%) */
.tool-shared-panel {
  position: fixed;
  top: 0;
  right: -100%; 
  width: 100%;
  height: 100%;
  background: #262729;
  z-index: 8500;
  transition: transform 0.4s ease;
  overflow-y: auto;
}
.tool-shared-panel.active { transform: translateX(-100%); }

.tool-shared-container-inner {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.tool-shared-header {
  display: flex;
  align-items: center;
  padding: 10px 5%;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}

.back-btn-tool {
  background: #323334;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 15px;
  display: flex;
  align-items: center;
}
.back-btn-tool img { width: 20px; height: 20px; }

/* ប្រើតែ font-family និង font-size ដាច់ខាតមិនប្រើ font-weight */
.tool-panel-title {
  color: #ffffff;
  font-size: 18px;
  font-family: 'Bold'; 
}

.tool-shared-content { 
  padding: 16px 5%; 
}

/* Hover Vibe: គ្រាន់តែដូរពណ៌ ឬបន្ថែមពន្លឺព្រិលៗបន្តិច មិនឱ្យមានការរំកិល ឬរីកធំឡើយ */
.box-item:hover, .channel-box-link:hover {
  background-color: #3e3f40;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}


/* ========================================================
   ទម្រង់សម្រាប់អេក្រង់ធំ (កុំព្យូទ័រ PC / Desktop) កំណត់ត្រឹម 1100px
   ======================================================== */
@media (min-width: 1024px) {
  
  /* កែសម្រួលបិទគម្លាតដែលនៅសល់លើក្រោមឱ្យអស់ និងទុកខាងក្រោមបន្តិច */
  #service .infinite-slider {
    max-width: 1100px !important;
    width: 1100px !important;
    height: auto !important;      
    min-height: auto !important;  
    margin: -108px auto -100px auto !important; /* ខាងលើ 0px (បិទជិត) និងខាងក្រោមទុក 12px មិនឱ្យជាប់ប្រអប់ */
    border-radius: 12px;
    padding: 0 !important;
    line-height: 0 !important;           /* លុបគម្លាតសល់ខាងក្រោមរូបភាពដែលបង្កើតដោយប្រព័ន្ធ Browser */
  }
  
  #service .slider-track {
    height: auto !important;
    line-height: 0 !important;
  }
  
  #service .slider-track img {
    width: 1100px !important;
    max-width: 1100px !important;
    height: auto !important;      
    display: block !important;          /* ប្តូរទៅជា Block ដើម្បីកម្ចាត់គម្លាតអាកាសខាងក្រោមរូបភាព */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* កំណត់ជួរប្រអប់ Tools (Grid) ឱ្យរត់ទទឹង 1100px ថេរស្មើគ្នា និងមាន ៥ ប្រអប់ក្នុងមួយជួរ */
  #service .category-grid,
  #channel .category-grid {
    grid-template-columns: repeat(5, 1fr) !important; 
    max-width: 1100px !important;
    width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* ផ្ទាំង Shared Tool Panel បើកបង្ហាញត្រឹមត្រូវលើកុំព្យូទ័រ */
  .tool-shared-panel {
    width: 100%;
    height: 100%; 
    right: 0;
    top: 100%; 
    left: 0;
    transition: transform 0.4s ease;
  }
  
  .tool-shared-panel.active {
    transform: translateY(-100%);
  }

  /* ដែនគ្រប់គ្រង Content ខាងក្នុង Tool ឱ្យស្មើនឹង 1100px ចំកណ្តាលស្អាត */
  .tool-shared-container-inner {
    max-width: 1100px !important;
    width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .tool-shared-header {
    padding: 15px 0 !important;
    background: transparent; 
  }

  .tool-shared-content {
    padding: 20px 0 !important;
  }
}



















/* Styling for titles above tool and resource grids */
.section-title-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 10px auto;
  padding: 0 5px;
  box-sizing: border-box;
}
.section-title-text {
  color: #ffffff;
  font-size: 16px;
  font-family: 'Bold';
  text-align: left;
}

/* Reset anchor tags for resource blocks */
.resource-box-link {
  text-decoration: none;
  display: block;
  outline: none;
}

/* ========================================================
   Global Adjustments for Service Slide Banner
   ======================================================== */
#service .infinite-slider {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;          
  min-height: auto !important;
  margin: 0 auto 10px auto !important;
  padding: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  line-height: 0 !important;
}
#service .slider-track {
  display: flex;
  width: 100% !important;
  height: auto !important;
  line-height: 0 !important;
}
#service .slider-track img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;          
  object-fit: contain !important;
  display: block !important;
}

/* Base style for grids on phone layout (3 columns) */
#service .category-grid,
#channel .category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px;
  width: 100% !important;
  box-sizing: border-box;
  padding: 0 5px;
  margin-bottom: 10px;
}

/* Mobile slide transition defaults */
.tool-shared-panel {
  position: fixed;
  top: 0;
  right: -100%; 
  width: 100%;
  height: 100%;
  background: #262729;
  z-index: 8500;
  transition: transform 0.4s ease;
  overflow-y: auto;
}
.tool-shared-panel.active { transform: translateX(-100%); }

/* ========================================================
   Desktop Setup (PC / Screen size min 1024px)
   ======================================================== */
@media (min-width: 1024px) {
  
  .section-title-container {
    max-width: 1100px !important;
    width: 1100px !important;
    padding: 0 !important;
  }

  #service .infinite-slider {
    max-width: 1100px !important;
    width: 1100px !important;
    margin: 0 auto 15px auto !important;
    border-radius: 12px;
  }
  
  #service .slider-track img {
    width: 1100px !important;
    max-width: 1100px !important;
  }

  /* 5 Column layout matching tool boxes & resource links exactly */
  #service .category-grid,
  #channel .category-grid {
    grid-template-columns: repeat(5, 1fr) !important; 
    max-width: 1100px !important;
    width: 1100px !important;
    margin: 0 auto 15px auto !important;
    padding: 0 !important;
  }

  /* 🛠️ SMOOTH FADE ANIMATION WITH NO DIRECTIONAL SCROLL SLIDE */
  .tool-shared-panel {
    position: fixed !important;
    top: 45px !important; /* Positions right below the top sticky header */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100% - 45px) !important;
    background: #262729 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important; /* Simple opacity cross-fade */
  }
  
  /* Trigger layout opacity visibility */
  .tool-shared-panel.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) !important;
  }

  .tool-shared-container-inner {
    max-width: 1100px !important;
    width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .tool-shared-header {
    padding: 15px 0 !important;
    background: transparent;
    border-bottom: 1px solid #333;
  }

  .tool-shared-content {
    padding: 20px 0 !important;
  }
}