/* ==========================================================================
   NETPIX - TÀI NGUYÊN ĐỒ HỌA & Ý TƯỞNG SÁNG TẠO
   Design System & Styling
   ========================================================================== */

:root {
  /* Color Palette */
  --color-header-bg: #050505;
  --color-primary: #eb3b2d;
  --color-primary-hover: #d32f2f;
  --color-primary-gradient: linear-gradient(90deg, #ea3829 0%, #ff5722 100%);
  --color-btn-orange: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --color-btn-orange-glow: rgba(249, 115, 22, 0.4);
  --color-btn-yellow: #d6f937;
  --color-btn-yellow-hover: #c4e92a;
  
  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #f3f4f6;
  --text-white: #ffffff;
  
  /* Backgrounds & Cards */
  --bg-body: #ffffff;
  --bg-subtle-pastel: linear-gradient(180deg, #fff5f8 0%, #fdf2f8 30%, #faf5ff 70%, #ffffff 100%);
  --bg-card-placeholder: #d6d8dc;
  --bg-card-hover: #cbd5e1;
  --bg-red-banner: linear-gradient(145deg, #a90812 0%, #80050c 100%);
  
  /* Folder Colors */
  --folder-blue: #2563eb;
  --folder-pink: #ec4899;
  --folder-rose: #f43f5e;
  --folder-violet: #8b5cf6;
  --folder-purple: #a855f7;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-logo: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow-orange: 0 8px 24px rgba(234, 88, 12, 0.35);
  --shadow-glow-yellow: 0 0 20px rgba(214, 249, 55, 0.4);
  
  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  /* Layout */
  --max-width: 1680px;
  --container-padding: clamp(24px, 3.5vw, 56px);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  background-color: var(--color-header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-header {
  filter: brightness(0) invert(1);
}

.brand-logo:hover .logo-header {
  filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Kích Hoạt Gói button */
.btn-activate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-btn-yellow);
  color: #0d0d0d;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(214, 249, 55, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-activate::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-activate:hover {
  background-color: var(--color-btn-yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-yellow);
}

.btn-activate:hover::after {
  transform: translateX(100%);
}

.btn-activate svg {
  width: 15px;
  height: 15px;
}

/* Đăng kí link */
.btn-register-link {
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.btn-register-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Đăng nhập button */
.btn-login {
  background: var(--color-btn-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}

.btn-login:hover::before {
  opacity: 1;
}

/* ==========================================================================
   HERO SEARCH SECTION
   ========================================================================== */
.hero-search-section {
  padding: 48px 0 28px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(255, 112, 67, 0.06) 0%, transparent 60%);
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-subtitle {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.5;
  font-weight: 400;
}

/* Search Bar Component */
.search-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-pill);
  height: 52px;
  padding: 4px 8px 4px 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 20;
}

.search-box:focus-within,
.search-box.active {
  border-color: #ea3829;
  box-shadow: 0 0 0 4px rgba(234, 56, 41, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Category Dropdown Inside Search */
.search-category-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  user-select: none;
}

.category-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #f9fafb;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.category-select-btn:hover {
  background: #f3f4f6;
  color: var(--color-primary);
}

.category-select-btn svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.category-select-btn.open svg {
  transform: rotate(180deg);
}

.category-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 100;
  text-align: left;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-menu.show {
  display: flex;
}

.category-option {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.category-option:hover {
  background: #fef2f2;
  color: var(--color-primary);
}

.category-option.active {
  background: #fee2e2;
  color: var(--color-primary);
  font-weight: 700;
}

.search-divider {
  width: 1px;
  height: 24px;
  background-color: #e5e7eb;
  margin: 0 12px;
}

.search-input-field {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
}

.search-input-field::placeholder {
  color: #9ca3af;
}

.search-submit-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  transition: all 0.2s ease;
}

.search-submit-btn:hover {
  background-color: #f3f4f6;
  color: var(--color-primary);
  transform: scale(1.08);
}

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

/* Quick Search Suggestions Popover */
.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 16px;
  display: none;
  z-index: 50;
  text-align: left;
  animation: dropdownFade 0.25s ease;
}

.search-suggestions.show {
  display: block;
}

.suggestion-header {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-tag {
  background: #f3f4f6;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-tag:hover {
  background: #fee2e2;
  color: var(--color-primary);
}

/* ==========================================================================
   HERO BANNERS SECTION
   ========================================================================== */
.hero-banners-section {
  padding: 10px 0 36px;
}

.banners-grid {
  display: grid;
  grid-template-columns: 921fr 297fr;
  gap: 16px;
  align-items: stretch;
}

/* Banner Cards Base */
.banner-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  cursor: pointer;
  background: #116238;
}

.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

/* Left Main Banner (Green 3D Graphic - 921x263) */
.banner-left {
  background: #116238;
  aspect-ratio: 921 / 263;
}

/* Right Main Banner (Square Member Card - 297x263) */
.banner-right {
  background: #facc15;
  aspect-ratio: 297 / 263;
}

/* Banner Graphic Wrap */
.banner-graphic-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}

.banner-graphic-wrap img,
.banner-card img.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner-card:hover .banner-graphic-wrap img,
.banner-card:hover img.banner-img {
  transform: scale(1.025);
}

/* Dynamic Light Sweep / Sheen Effect on Hover */
.banner-sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 5;
}

.banner-card:hover .banner-sheen {
  animation: shineWave 1s ease forwards;
}

/* ==========================================================================
   5 QUICK-ACCESS CATEGORY FOLDERS
   ========================================================================== */
.category-folders-section {
  padding: 24px 0 48px;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.folder-item:hover {
  transform: translateY(-8px);
}

.folder-graphic-container {
  width: 90px;
  height: 75px;
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

/* SVG Folder Card Component */
.svg-folder {
  width: 100%;
  height: 100%;
  transition: all 0.35s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.folder-item:hover .svg-folder {
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
  transform: scale(1.06);
}

/* Floating "New" Badge */
.folder-badge-new {
  position: absolute;
  top: 4px;
  left: 12px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 5;
  pointer-events: none;
  animation: pulseNew 2.5s infinite;
}

.folder-item:nth-child(2) .folder-badge-new {
  background: #db2777;
}

.folder-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  max-width: 150px;
  transition: color 0.2s ease;
}

.folder-item:hover .folder-title {
  color: var(--color-primary);
}

.folder-count-tooltip {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.folder-item:hover .folder-count-tooltip {
  opacity: 1;
  color: #0f172a;
}

/* ==========================================================================
   SECTION: CHỦ ĐỀ NỔI BẬT (FEATURED THEMES)
   ========================================================================== */
.featured-themes-section {
  background: var(--bg-subtle-pastel);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Subtle background ambient lights */
.featured-themes-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 350px;
  background: radial-gradient(ellipse at top, rgba(244, 114, 182, 0.12) 0%, rgba(192, 132, 252, 0.08) 50%, transparent 80%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 1.95rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.section-subtitle {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 4 Themes Mosaic Grid */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.theme-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-card:hover {
  transform: translateY(-6px);
}

/* Featured Theme Thumbnail Box (anh-dai-dien-noi-bat.png) */
.theme-thumb-box {
  width: 100%;
  aspect-ratio: 296 / 263;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  background-color: #f1f5f9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.theme-card:hover .theme-thumb-box {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.theme-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-card:hover .theme-thumb-img {
  transform: scale(1.04);
}

.theme-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  line-height: 1.4;
  padding: 0 6px;
  transition: color 0.2s ease;
}

.theme-card:hover .theme-card-title {
  color: var(--color-primary);
}

/* Section CTA Button: XEM THÊM CÁC CHỦ ĐỀ KHÁC */
.section-cta-wrap {
  text-align: center;
  position: relative;
  z-index: 2;
}

.btn-pill-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-btn-orange);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 14px 42px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow-orange);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-pill-gradient::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-pill-gradient:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.45);
}

.btn-pill-gradient:hover::after {
  transform: translateX(100%);
}

.btn-pill-gradient svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn-pill-gradient:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   SECTION: CHUYỆN NHÀ DESIGNER
   ========================================================================== */
.designer-stories-section {
  background-color: #ffffff;
  padding: 64px 0 80px;
  position: relative;
}

.stories-layout-grid {
  display: grid;
  grid-template-columns: minmax(300px, 395px) 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

/* Left Featured Banner Card for NV3.png (Design hết mình, Deadline hết hồn!) */
.story-banner-card {
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  background: #ff5722;
  aspect-ratio: 395 / 600;
}

.story-banner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(255, 87, 34, 0.24);
}

.story-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-banner-card:hover .story-banner-img {
  transform: scale(1.025);
}

.story-banner-card .banner-sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 5;
}

.story-banner-card:hover .banner-sheen {
  animation: shineWave 1s ease forwards;
}

/* Right 3 Horizontal Articles */
.stories-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-article-card,
.news-item-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.story-article-card:hover,
.news-item-card:hover {
  transform: translateY(-5px);
}

/* 395x250px Thumbnail Box */
.article-thumb-box {
  width: 100%;
  aspect-ratio: 395 / 250;
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.story-article-card:hover .article-thumb-box,
.news-item-card:hover .article-thumb-box {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  display: block;
  transition: transform 0.5s ease;
  z-index: 1;
}

.story-article-card:hover .article-thumb-img,
.news-item-card:hover .article-thumb-img {
  transform: scale(1.05);
}

.article-info {
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.story-article-card:hover .article-title,
.news-item-card:hover .article-title {
  color: var(--color-primary);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-meta svg {
  width: 13px;
  height: 13px;
}

/* "XEM THÊM" Button at bottom right */
.stories-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.btn-story-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-btn-orange);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.25s ease;
}

.btn-story-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 56px 0 48px;
  color: #1f2937;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Column 1: NetPix Logo & Company Info */
.footer-col-info .footer-logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-col-info .footer-logo .logo-footer {
  height: 42px;
  width: auto;
  filter: none;
}

.footer-col-info .footer-logo:hover .logo-footer {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.company-name {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111827;
  margin-bottom: 8px;
}

.company-meta-list {
  list-style: none;
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.6;
}

.company-meta-list li {
  margin-bottom: 2px;
}

.company-meta-list a {
  color: inherit;
}

.company-meta-list a:hover {
  color: var(--color-primary);
}

/* Column 2: Legal & Policy Navigation Links */
.footer-col-nav {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #111827;
  letter-spacing: 0.03em;
  display: inline-block;
  position: relative;
  width: fit-content;
}

.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-primary);
  transition: width 0.25s ease;
}

.footer-nav-link:hover {
  color: var(--color-primary);
}

.footer-nav-link:hover::after {
  width: 100%;
}

/* Column 3: Social Media & Trust Badge */
.footer-col-trust {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.social-icon-facebook {
  background-color: #1877f2;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.social-icon-tiktok {
  background-color: #000000;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Official Vietnamese Ministry of Industry and Trade Badge */
.trust-badge-wrap {
  margin-top: 6px;
  transition: transform 0.25s ease;
}

.trust-badge-wrap:hover {
  transform: scale(1.04);
}

.trust-badge-svg,
.trust-badge-img {
  width: auto;
  height: 54px;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   INTERACTIVE CONTROLS & FLOATING FEATURES
   ========================================================================== */

/* Back To Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #f97316;
  color: #ffffff;
  border-color: #f97316;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   MODALS (AUTHENTICATION & ACTIVATION & PREVIEW)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  display: flex;
  opacity: 1;
}

.modal-window {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-backdrop.show .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.modal-header {
  padding: 28px 28px 16px;
  text-align: center;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-body {
  padding: 0 28px 28px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-btn-submit {
  width: 100%;
  height: 48px;
  background: var(--color-btn-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  margin-top: 10px;
}

.form-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  pointer-events: none;
}

.toast-message {
  background: #111827;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease 2.7s forwards;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shineWave {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

@keyframes pulseNew {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .banners-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .banner-right {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stories-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-banner-card {
    max-width: 395px;
    margin: 0 auto;
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .footer-col-trust {
    grid-column: span 2;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .folders-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .stories-cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .header-actions {
    gap: 10px;
  }

  .btn-activate span, .btn-register-link span {
    font-size: 0.8rem;
  }

  .btn-activate {
    padding: 6px 12px;
  }

  .btn-login {
    padding: 7px 16px;
  }
}

@media (max-width: 520px) {
  .folders-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .category-select-btn span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   GLOBAL COIN ICON (VECTOR 3D SVG)
   ========================================================================== */
.icon-coin {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.35));
}

.icon-coin-sm {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}

.icon-coin-md {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
}

.icon-coin-lg {
  width: 28px;
  height: 28px;
  vertical-align: -6px;
  filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.4));
}

.icon-coin-xl {
  width: 36px;
  height: 36px;
  vertical-align: -8px;
  filter: drop-shadow(0 3px 6px rgba(217, 119, 6, 0.45));
}

