/* ==========================================================================
   CLASS-SANOOK MASTER PORTAL DESIGN SYSTEM
   Modern Glassmorphism + 9 Atmospheric Themes (FTP Production Ready)
   ========================================================================== */

/* 1. Theme Color Palettes & Root Variables */
:root {
  /* Default: Balloon Art Theme */
  --theme-name: 'balloon';
  --bg-primary: #0d0f1d;
  --bg-surface: rgba(22, 27, 46, 0.75);
  --bg-surface-hover: rgba(32, 40, 68, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(244, 114, 182, 0.5);

  --accent-primary: #f472b6;
  --accent-secondary: #38bdf8;
  --accent-tertiary: #fbbf24;
  --accent-glow: rgba(244, 114, 182, 0.35);

  --gradient-brand: linear-gradient(135deg, #f472b6 0%, #38bdf8 50%, #fbbf24 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--accent-glow);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-heading: 'Plus Jakarta Sans', 'Prompt', sans-serif;
  --font-body: 'Prompt', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Atmospheric Themes Overrides */

/* 🌿 Theme 2: ธรรมชาติ (Nature) */
[data-theme="nature"] {
  --bg-primary: #08140e;
  --bg-surface: rgba(14, 34, 25, 0.8);
  --bg-surface-hover: rgba(20, 48, 35, 0.92);
  --border-subtle: rgba(74, 222, 128, 0.15);
  --border-focus: rgba(74, 222, 128, 0.6);
  --accent-primary: #22c55e;
  --accent-secondary: #10b981;
  --accent-tertiary: #a3e635;
  --accent-glow: rgba(34, 197, 94, 0.35);
  --gradient-brand: linear-gradient(135deg, #4ade80 0%, #10b981 50%, #065f46 100%);
}

/* ☁️ Theme 3: สวรรค์ (Heaven / Celestial) */
[data-theme="heaven"] {
  --bg-primary: #0a1128;
  --bg-surface: rgba(20, 32, 68, 0.8);
  --bg-surface-hover: rgba(30, 48, 98, 0.92);
  --border-subtle: rgba(254, 240, 138, 0.2);
  --border-focus: rgba(250, 204, 21, 0.6);
  --accent-primary: #fef08a;
  --accent-secondary: #93c5fd;
  --accent-tertiary: #e0e7ff;
  --accent-glow: rgba(254, 240, 138, 0.4);
  --gradient-brand: linear-gradient(135deg, #fef08a 0%, #bae6fd 50%, #ffffff 100%);
}

/* 🌸 Theme 4: เชียงใหม่ (Chiang Mai / Lanna) */
[data-theme="chiangmai"] {
  --bg-primary: #19091f;
  --bg-surface: rgba(43, 16, 54, 0.8);
  --bg-surface-hover: rgba(62, 24, 78, 0.92);
  --border-subtle: rgba(244, 63, 94, 0.2);
  --border-focus: rgba(251, 146, 60, 0.6);
  --accent-primary: #fb923c;
  --accent-secondary: #f43f5e;
  --accent-tertiary: #fde047;
  --accent-glow: rgba(251, 146, 60, 0.35);
  --gradient-brand: linear-gradient(135deg, #fb923c 0%, #f43f5e 50%, #a855f7 100%);
}

/* 🇹🇭 Theme 5: ประเทศไทย (Thailand / Siam Gold) */
[data-theme="thailand"] {
  --bg-primary: #120d04;
  --bg-surface: rgba(38, 27, 8, 0.82);
  --bg-surface-hover: rgba(56, 40, 12, 0.95);
  --border-subtle: rgba(245, 158, 11, 0.25);
  --border-focus: rgba(251, 191, 36, 0.7);
  --accent-primary: #fbbf24;
  --accent-secondary: #f59e0b;
  --accent-tertiary: #ef4444;
  --accent-glow: rgba(251, 191, 36, 0.4);
  --gradient-brand: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b91c1c 100%);
}

/* ⛩️ Theme 6: ญี่ปุ่น (Japan / Sakura & Zen) */
[data-theme="japan"] {
  --bg-primary: #140810;
  --bg-surface: rgba(38, 15, 30, 0.8);
  --bg-surface-hover: rgba(56, 22, 45, 0.92);
  --border-subtle: rgba(244, 114, 182, 0.2);
  --border-focus: rgba(251, 113, 133, 0.6);
  --accent-primary: #f472b6;
  --accent-secondary: #fb7185;
  --accent-tertiary: #fecdd3;
  --accent-glow: rgba(244, 114, 182, 0.35);
  --gradient-brand: linear-gradient(135deg, #fbcfe8 0%, #f43f5e 50%, #e11d48 100%);
}

/* 🏔️ Theme 7: สวิสเซอร์แลนด์ (Switzerland / Alpine) */
[data-theme="switzerland"] {
  --bg-primary: #06111c;
  --bg-surface: rgba(12, 28, 48, 0.82);
  --bg-surface-hover: rgba(18, 42, 72, 0.94);
  --border-subtle: rgba(56, 189, 248, 0.2);
  --border-focus: rgba(14, 165, 233, 0.6);
  --accent-primary: #38bdf8;
  --accent-secondary: #0ea5e9;
  --accent-tertiary: #e0f2fe;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --gradient-brand: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 50%, #0284c7 100%);
}

/* 🌌 Theme 8: จักรวาล (Universe / Cosmos) */
[data-theme="universe"] {
  --bg-primary: #070312;
  --bg-surface: rgba(22, 10, 42, 0.82);
  --bg-surface-hover: rgba(34, 16, 64, 0.94);
  --border-subtle: rgba(168, 85, 247, 0.25);
  --border-focus: rgba(192, 132, 252, 0.6);
  --accent-primary: #a855f7;
  --accent-secondary: #06b6d4;
  --accent-tertiary: #f43f5e;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --gradient-brand: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
}

/* 🐾 Theme 9: สัตว์ (Animals & Safari) */
[data-theme="animal"] {
  --bg-primary: #120e09;
  --bg-surface: rgba(38, 28, 16, 0.82);
  --bg-surface-hover: rgba(56, 42, 24, 0.94);
  --border-subtle: rgba(245, 158, 11, 0.2);
  --border-focus: rgba(234, 88, 12, 0.6);
  --accent-primary: #f97316;
  --accent-secondary: #eab308;
  --accent-tertiary: #84cc16;
  --accent-glow: rgba(249, 115, 22, 0.35);
  --gradient-brand: linear-gradient(135deg, #fde047 0%, #f97316 50%, #b45309 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease;
}

/* Canvas Background */
#atmosphere-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ambient Radial Blurs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: all 0.8s ease;
}

.ambient-1 {
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-primary);
}

.ambient-2 {
  top: 40%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--accent-secondary);
}

.ambient-3 {
  bottom: -10%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: var(--accent-tertiary);
}

/* App Wrapper */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 20px 80px;
}

/* ==========================================================================
   Header & Atmosphere Theme Selector Bar
   ========================================================================== */
.master-header {
  margin-bottom: 36px;
}

.top-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform 0.3s ease;
}

.brand-section:hover .brand-icon-box {
  transform: scale(1.08) rotate(6deg);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.control-btn.active {
  background: var(--gradient-brand);
  color: #0d0f1d;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* 9 Atmospheric Themes Strip */
.theme-strip-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.theme-strip-container::-webkit-scrollbar {
  display: none;
}

.theme-strip-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-buttons-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.theme-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  transform: translateY(-1px);
}

.theme-btn.active {
  background: var(--gradient-brand);
  color: #0b0f19;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.03);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-portal {
  text-align: center;
  padding: 30px 10px 45px;
  position: relative;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title-main {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  max-width: 780px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Quick Metrics Bar */
.metrics-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.metric-icon {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.metric-number {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
}

.metric-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Toolbar: Search & Filter Section
   ========================================================================== */
.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 36px;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.portal-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.portal-search-input:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px var(--accent-glow);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--gradient-brand);
  color: #0b0f19;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   Project Cards Showcase Grid
   ========================================================================== */
.projects-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.portal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-card);
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-focus);
  background: var(--bg-surface-hover);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-glow);
}

/* Card Header Banner */
.card-hero-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-flappy { background: linear-gradient(135deg, #10b981 0%, #38bdf8 50%, #f472b6 100%); }
.banner-horoscope { background: linear-gradient(135deg, #3b0764 0%, #1e0b36 50%, #f59e0b 100%); }
.banner-slip { background: linear-gradient(135deg, #064e3b 0%, #0284c7 50%, #10b981 100%); }
.banner-digital { background: linear-gradient(135deg, #4338ca 0%, #db2777 50%, #f59e0b 100%); }
.banner-software { background: linear-gradient(135deg, #090d16 0%, #0369a1 50%, #7c3aed 100%); }

.hero-art-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card:hover .hero-art-icon {
  transform: scale(1.12) rotate(6deg);
}

.card-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.folder-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Card Body */
.card-content-area {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.theme-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.theme-tag-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-primary);
  font-weight: 600;
}

.card-project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.3;
}

.card-project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

/* Feature Highlights */
.feature-highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-item {
  font-size: 0.78rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlight-item i {
  color: #10b981;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Tech Stack */
.tech-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: #94a3b8;
}

/* Card Action Buttons */
.card-bottom-actions {
  display: flex;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-open-project {
  flex: 1;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #0b0f19;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: var(--transition-smooth);
}

.btn-open-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-quick-preview {
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-quick-preview:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-focus);
}

/* ==========================================================================
   FTP Hosting Status & Deployment Section
   ========================================================================== */
.ftp-hub-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.ftp-hub-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.ftp-title-box h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftp-title-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.ftp-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.ftp-check-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-info h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.check-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* FTP Upload Steps Banner */
.ftp-guide-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guide-step-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.master-footer {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-icon-link:hover {
  color: var(--accent-primary);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* ==========================================================================
   Interactive Live Preview Modal
   ========================================================================== */
.preview-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.preview-modal-backdrop.active {
  display: flex;
}

.preview-modal-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 1100px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow);
  animation: modalScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.preview-modal-topbar {
  padding: 16px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-title-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.modal-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-btn-open-tab {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  color: #0b0f19;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-btn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.preview-iframe-box {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title-main { font-size: 2.6rem; }
  .projects-showcase-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media (max-width: 768px) {
  .top-navbar { flex-direction: column; gap: 14px; align-items: stretch; }
  .header-controls { justify-content: space-between; }
  .hero-title-main { font-size: 2.1rem; }
  .hero-description { font-size: 0.98rem; }
  .portal-toolbar { flex-direction: column; align-items: stretch; }
  .category-filters { overflow-x: auto; padding-bottom: 4px; }
  .projects-showcase-grid { grid-template-columns: 1fr; }
  .preview-modal-container { height: 92vh; }
  .ftp-hub-header { flex-direction: column; align-items: flex-start; }
}
