/* ===================================================================
   HUTECH INNOVATION & DESIGN HUB - COMPREHENSIVE STYLESHEET
   Brand: HUTECH Navy Blue (#0054A6), HUTECH Gold/Yellow (#FDB913)
   Fully Responsive for Desktop, Tablet, and Mobile Viewports
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* HUTECH Core Brand Colors */
  --primary: #0054A6;
  --primary-dark: #003870;
  --primary-light: #1A73E8;
  --primary-subtle: #EBF3FC;
  
  --accent: #FDB913;
  --accent-hover: #E5A305;
  --accent-light: #FEF3D6;
  
  --secondary: #ED1C24;
  --secondary-subtle: #FDE8E9;
  
  /* Neutral Palette */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  
  /* Semantic Colors */
  --success: #10B981;
  --success-bg: #D1FAE5;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --info: #0284C7;
  --info-bg: #E0F2FE;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 84, 166, 0.12), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 35px -5px rgba(0, 84, 166, 0.18);
  
  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-status {
  position: sticky;
  z-index: 80;
  top: 0;
  padding: 9px 16px;
  text-align: center;
  font-size: 12px;
  color: #17324d;
  background: #eaf3ff;
  border-bottom: 1px solid #c8dcf5;
}
.api-status[data-state="loading"] { background: #fff8dd; }
.api-status[data-state="error"] { color: #842029; background: #f8d7da; border-color: #f1aeb5; }

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===================================================================
   FLOATING TOP BANNER: MODE & VIEW SWITCHER
   =================================================================== */
.demo-mode-switcher {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

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

.demo-badge {
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.demo-title {
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
}

.demo-nav-tabs {
  display: flex;
  background: rgba(255,255,255,0.08);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 3px;
}

.demo-tab-btn {
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.demo-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.08);
}

.demo-tab-btn.active {
  background: var(--primary-light);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
}

.demo-device-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #E2E8F0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.demo-device-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* ===================================================================
   MAIN HEADER (NAVBAR)
   =================================================================== */
.hub-header {
  position: sticky;
  top: 45px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hub-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.hub-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.hub-official-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

.hub-brand:hover .hub-official-logo {
  transform: scale(1.02);
}

.hub-brand-divider {
  width: 1.5px;
  height: 28px;
  background: #CBD5E1;
  margin: 0 2px;
}

.hub-drawer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.hub-admin-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  background: #FFFFFF;
  padding: 3px;
  border-radius: 8px;
}

.hub-logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 84, 166, 0.25);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hub-logo-mark::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(253, 185, 19, 0.35), transparent 70%);
}

.hub-logo-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  position: relative;
  z-index: 2;
}

.hub-brand-text {
  display: flex;
  flex-direction: column;
}

.hub-brand-main {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.hub-brand-main span {
  color: var(--accent);
}

.hub-brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.hub-nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.hub-nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.hub-nav-link:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.hub-nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.hub-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

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

.hub-icon-btn {
  background: var(--bg-main);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.hub-icon-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: #BFDBFE;
}

.hub-icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--secondary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.hub-icon-badge[hidden] {
  display: none;
}

.hub-mobile-menu-btn {
  display: none;
  background: var(--bg-main);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.hub-mobile-menu-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.hub-btn {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.hub-btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 84, 166, 0.25);
}

.hub-btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(0, 84, 166, 0.35);
  transform: translateY(-1px);
}

.hub-btn-accent {
  background: var(--accent);
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(253, 185, 19, 0.35);
}

.hub-btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(253, 185, 19, 0.45);
  transform: translateY(-1px);
}

.hub-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.hub-btn-outline:hover {
  background: var(--primary-subtle);
}

/* ===================================================================
   MOBILE NAVIGATION DRAWER (OFF-CANVAS)
   =================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #FFFFFF;
  z-index: 1600;
  box-shadow: 10px 0 30px rgba(0,0,0,0.25);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-head {
  padding: 18px 20px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-menu {
  list-style: none;
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.mobile-drawer-actions {
  padding: 16px 20px;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
}

/* ===================================================================
   MOBILE FIXED BOTTOM APP BAR
   =================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  z-index: 950;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.bottom-nav-item svg {
  transition: var(--transition);
}

.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active svg {
  transform: translateY(-2px);
  color: var(--primary);
}

.bottom-nav-center-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
  color: #0F172A;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(253, 185, 19, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-12px);
  transition: var(--transition);
}

.bottom-nav-center-fab:hover {
  transform: translateY(-15px) scale(1.06);
}

/* ===================================================================
   HERO BANNER SECTION
   =================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #022B54 0%, #0054A6 60%, #0077D4 100%);
  color: #FFFFFF;
  overflow: hidden;
  padding: 56px 0 64px;
}

.hero-bg-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  opacity: 0.25;
  background-size: cover;
  background-position: center;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, transparent 100%);
  pointer-events: none;
}

.hero-pattern-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 185, 19, 0.2) 0%, transparent 70%);
  top: -100px;
  left: 10%;
  pointer-events: none;
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--accent);
  display: inline-block;
}

.hero-desc {
  font-size: 16px;
  color: #D6E4F0;
  font-weight: 400;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 26px;
}

/* Hero Search Component */
.hero-search-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: 0 15px 35px rgba(0, 30, 60, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  color: var(--text-main);
  background: transparent;
}

.hero-search-input::placeholder {
  color: var(--text-light);
}

.hero-search-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hero-search-btn:hover {
  background: var(--primary-dark);
}

.hero-cta-group {
  display: flex;
  gap: 12px;
}

.hero-preview-box {
  position: relative;
}

.hero-preview-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-slow);
}

.hero-floating-stat {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  animation: floatBounce 4s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.stat-icon-wrap {
  width: 42px;
  height: 42px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-text-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.stat-text-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===================================================================
   METRIC STATS BAR
   =================================================================== */
.stats-bar-wrapper {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.stat-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.stat-card-item:hover {
  background: var(--primary-subtle);
  border-color: #BFDBFE;
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  flex-shrink: 0;
}

.stat-card-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-card-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===================================================================
   SECTION COMMONS
   =================================================================== */
.hub-section,
.hero-section,
.stats-bar-wrapper {
  scroll-margin-top: 120px;
}

.hub-section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 5px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.section-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.section-link:hover {
  gap: 9px;
  color: var(--primary-dark);
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 84, 166, 0.25);
}

/* ===================================================================
   PROJECT CARDS GRID
   =================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.project-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #BFDBFE;
}

.project-img-wrap {
  position: relative;
  height: 180px;
  background: #E2E8F0;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-img-wrap.has-poster {
  height: clamp(320px, 30vw, 390px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
}
.project-img.is-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: none;
}
.project-card:hover .project-img.is-poster { transform: none; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-card-open { display: flex; flex: 1; flex-direction: column; padding: 0; border: 0; width: 100%; text-align: left; color: inherit; background: transparent; cursor: pointer; }
.project-summary { color: var(--text-muted); font-size: 13px; line-height: 1.55; min-height: 60px; }
.demo-project-label, .featured-project-label { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 9px; border-radius: 999px; background: #fff7d6; color: #785500; font-size: 11px; font-weight: 800; }
.demo-project-label.inline, .featured-project-label { position: static; display: inline-block; margin: 4px; }
.featured-project-label { background: #e8f0ff; color: #174ea6; }
.project-detail-link { display: block; margin-top: 14px; color: var(--primary); font-size: 13px; font-weight: 700; }
.catalog-state { grid-column: 1 / -1; padding: 32px; border: 1px dashed var(--border); border-radius: 12px; background: #fff; color: var(--text-muted); text-align: center; }
.catalog-state.is-error { color: #842029; }
.project-detail-image { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 10px; margin-bottom: 12px; }
.project-detail-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.project-poster-detail-image { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #F1F5F9; cursor: zoom-in; }
.project-poster-detail-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.project-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.poster-archive-note { margin: -8px 0 18px; color: var(--text-muted); font-size: 13px; }
.event-poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.event-poster-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.event-poster-image { display: flex; width: 100%; height: 260px; align-items: center; justify-content: center; padding: 10px; border: 0; background: #F1F5F9; cursor: zoom-in; }
.event-poster-image img { width: 100%; height: 100%; object-fit: contain; }
.event-poster-copy { padding: 16px; }
.event-poster-copy h3 { margin: 6px 0; font-size: 15px; color: var(--text-main); }
.event-poster-copy p { color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.event-poster-label { color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.poster-lightbox { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: max-content; max-width: 96vw; max-height: 96vh; padding: 48px 12px 12px; overflow: auto; border: 0; border-radius: 12px; background: #101827; box-shadow: 0 24px 80px rgba(0,0,0,.42); }
.poster-lightbox::backdrop { background: rgba(15, 23, 42, .82); }
.poster-lightbox > img { display: block; width: auto; height: auto; max-width: 94vw; max-height: 86vh; object-fit: contain; }
.poster-lightbox-controls { position: absolute; top: 8px; right: 8px; }
.poster-lightbox-controls .modal-close-btn { color: #fff; background: rgba(255,255,255,.12); }
.project-detail-progress { margin-top: 18px; }
.admin-project-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0; }
.admin-project-tools > .form-input { flex: 1 1 220px; }
.admin-project-actions { min-width: 210px; }
.admin-project-actions button { margin: 2px; }
.btn-delete-project { color: #a4262c; }

@media (max-width: 640px) {
  .admin-project-tools { align-items: stretch; }
  .admin-project-tools label { flex: 1 1 100%; }
  #admin-projects { overflow-x: auto; }
  #admin-projects .admin-table { min-width: 760px; }
  .project-img-wrap { height: 165px; }
}

.project-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94A3B8;
  transition: var(--transition);
}

.project-fav-btn:hover, .project-fav-btn.active {
  color: var(--secondary);
  background: #FFFFFF;
  transform: scale(1.1);
}

.project-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-main);
  color: var(--text-muted);
}

.tag-badge.tech { background: #E0F2FE; color: #0369A1; }
.tag-badge.student { background: #FEF3C7; color: #B45309; }
.tag-badge.agri { background: #DCFCE7; color: #15803D; }
.tag-badge.design { background: #F3E8FF; color: #7E22CE; }

.project-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.project-progress-wrap {
  margin-top: auto;
  margin-bottom: 12px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.progress-bar-track {
  height: 6px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.8s ease-out;
}

.project-meta-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 11.5px;
  color: var(--text-muted);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================================
   EVENTS & WORKSHOPS SECTION
   =================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #BFDBFE;
}

.event-date-box {
  width: 56px;
  height: 64px;
  background: var(--primary-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #BFDBFE;
  flex-shrink: 0;
}

.event-day {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.event-month {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
}

.event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.event-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.event-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.seats-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success);
}

/* ===================================================================
   EXPERTS & MENTORS NETWORK
   =================================================================== */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.expert-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.expert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #BFDBFE;
}

.expert-avatar-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary-subtle) 0%, #DBEAFE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 84, 166, 0.15);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.expert-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.35s ease;
}

.expert-online-badge {
  position: absolute;
  bottom: 2px;
  right: 3px;
  width: 14px;
  height: 14px;
  background-color: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  z-index: 2;
}

.expert-card:hover .expert-avatar-wrap {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 84, 166, 0.24);
  border-color: #BFDBFE;
}

.expert-card:hover .expert-avatar-img {
  transform: scale(1.06);
}

.expert-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.expert-specialty {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ===================================================================
   ENTERPRISE PARTNERS SECTION
   =================================================================== */
.partners-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 32px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.partner-logo-item {
  font-size: 20px;
  font-weight: 800;
  color: #64748B;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.partner-logo-item:hover {
  color: var(--primary);
  transform: scale(1.08);
}

/* ===================================================================
   ADMIN DASHBOARD VIEW
   =================================================================== */
.admin-view-container {
  display: none;
  background: #F1F5F9;
  min-height: calc(100vh - 45px);
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 45px);
}

.admin-sidebar {
  background: #0F172A;
  color: #FFFFFF;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 18px;
}

.admin-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: #94A3B8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.admin-menu-item:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.06);
}

.admin-menu-item.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 84, 166, 0.4);
}

.admin-main-content {
  padding: 24px 28px;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 5px 12px 5px 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.admin-account-menu { position: relative; }
.admin-account-trigger { font: inherit; color: inherit; cursor: pointer; text-align: left; }
.admin-account-trigger:hover, .admin-account-trigger:focus-visible { border-color: var(--primary); outline: 2px solid rgba(0, 84, 166, .15); }
.admin-account-labels { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-account-labels #demo-user-name { color: var(--text-main); font-size: 12.5px; font-weight: 700; }
.admin-account-labels #demo-user-role { color: var(--text-muted); font-size: 10px; }
.admin-account-chevron { width: 14px; height: 14px; margin-left: 3px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .15s ease; }
.admin-account-trigger[aria-expanded="true"] .admin-account-chevron { transform: rotate(180deg); }
.admin-account-dropdown { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; width: 220px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .16); }
.admin-account-dropdown[hidden] { display: none; }
.admin-account-dropdown button { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--text-main); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.admin-account-dropdown button:hover, .admin-account-dropdown button:focus-visible { background: var(--primary-subtle); color: var(--primary); outline: none; }
.account-info-list { display: grid; gap: 12px; }
.account-info-list p { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 13px; }
.account-info-list strong { color: var(--text-muted); font-size: 11px; }
.password-change-note { margin: 0 0 16px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.admin-account-trigger .admin-avatar { flex: 0 0 34px; display: grid; place-items: center; padding: 0; }

.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
}

.admin-welcome-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #FFFFFF;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.admin-welcome-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 5px;
}

.admin-welcome-desc {
  font-size: 13px;
  color: #D6E4F0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin: 4px 0;
}

.admin-kpi-growth {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-chart-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
}

.chart-container {
  position: relative;
  width: 100%;
  height: 220px;
}

.admin-table-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
}

.admin-table th {
  background: var(--bg-main);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #F8FAFC;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.status-pill.pending { background: var(--warning-bg); color: #B45309; }
.status-pill.reviewing { background: var(--info-bg); color: #0369A1; }
.status-pill.approved { background: var(--success-bg); color: #15803D; }
.status-pill.supplement { background: #F3E8FF; color: #7E22CE; }
.status-pill.rejected { background: #FEE2E2; color: #B91C1C; }

.action-btn-group {
  display: flex;
  gap: 5px;
}

.btn-table-action {
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-approve { background: var(--success-bg); color: #15803D; }
.btn-approve:hover { background: var(--success); color: #FFFFFF; }
.btn-supplement { background: var(--warning-bg); color: #B45309; }
.btn-supplement:hover { background: var(--warning); color: #FFFFFF; }
.btn-reject { background: #FEE2E2; color: #B91C1C; }
.btn-reject:hover { background: #B91C1C; color: #FFFFFF; }
.btn-detail { background: var(--primary-subtle); color: var(--primary); }
.btn-detail:hover { background: var(--primary); color: #FFFFFF; }

.review-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin: 8px 0 12px;
}

.review-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
  margin: 14px 0;
}

.my-ideas-section {
  background: #F8FAFC;
}

.my-ideas-list,
.notification-list {
  display: grid;
  gap: 12px;
}

.my-idea-card,
.notification-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.my-idea-heading,
.my-idea-actions,
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.my-idea-heading h3 {
  margin-top: 4px;
  color: var(--text-main);
  font-size: 15px;
}

.idea-id,
.notification-meta,
.read-label {
  color: var(--text-muted);
  font-size: 11px;
}

.my-idea-summary,
.review-feedback {
  margin-top: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.review-feedback {
  padding: 10px 12px;
  border-radius: 8px;
  background: #FEF3C7;
  color: #713F12;
}

.my-idea-actions {
  justify-content: flex-start;
  margin-top: 12px;
  flex-wrap: wrap;
}

.notification-item.is-unread {
  border-left: 4px solid var(--primary);
}

.notification-item.is-read {
  opacity: .75;
}

.notification-meta {
  margin-top: 5px;
}

.empty-state {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  background: #F8FAFC;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.dashboard-breakdown {
  display: grid;
  gap: 10px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-main);
  background: #F8FAFC;
  border-radius: 8px;
}

#review-action-buttons {
  flex-wrap: wrap;
}

#review-action-buttons .hub-btn {
  flex: 1 1 145px;
}

/* ===================================================================
   MOBILE MOCKUP SHELL PREVIEW VIEW
   =================================================================== */
.mobile-view-container {
  display: none;
  background: #0B1329;
  min-height: calc(100vh - 45px);
  padding: 30px 16px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.mobile-preview-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.08);
  padding: 5px;
  border-radius: var(--radius-full);
}

.mobile-prev-tab {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-prev-tab:hover {
  color: #FFFFFF;
}

.mobile-prev-tab.active {
  background: var(--primary-light);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4);
}

.phone-shell {
  width: 375px;
  height: 760px;
  background: #000000;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 2px #334155;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 120px;
  height: 22px;
  background: #000000;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  margin: 0 auto;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  flex: 1;
  background: #F8FAFC;
  border-radius: 36px;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* ===================================================================
   INTERACTIVE MODALS
   =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 20px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--border);
  color: var(--text-main);
}

.modal-body {
  padding: 20px;
  max-height: 72vh;
  overflow-y: auto;
}

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

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.15);
}

.password-input-wrap { position: relative; }
.password-input-wrap .form-input { padding-right: 48px; }
.password-visibility-btn {
  position: absolute; top: 50%; right: 6px; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 7px; transform: translateY(-50%);
  border: 0; border-radius: 7px; color: var(--text-muted); background: transparent; cursor: pointer;
}
.password-visibility-btn:hover { color: var(--primary); background: var(--primary-subtle); }
.password-visibility-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.password-visibility-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-login-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 18px; }
.demo-login-roles p { grid-column: 1 / -1; color: var(--text-muted); font-size: 12px; text-align: center; }
.demo-login-roles button { min-height: 42px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--primary); background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.demo-login-roles button:hover, .demo-login-roles button:focus-visible { border-color: var(--primary); background: var(--primary-subtle); outline: none; }
.login-feedback { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: #842029; background: #f8d7da; font-size: 12px; }

.form-textarea {
  resize: vertical;
  min-height: 85px;
}

.modal-footer {
  padding: 14px 20px;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 90vw;
}

.toast {
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--success);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATIONS)
   =================================================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .experts-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-preview-box { display: none; }
  .events-grid { grid-template-columns: 1fr; }
  .admin-charts-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

/* Dedicated Mobile Viewport (< 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 66px; /* Space for Mobile Bottom Nav Bar */
  }

  /* Top Demo Switcher Compact Header */
  .demo-mode-switcher {
    padding: 6px 12px;
  }
  .demo-mode-left {
    display: none;
  }
  .demo-device-btn {
    display: none;
  }
  .demo-nav-tabs {
    width: 100%;
    justify-content: space-around;
  }
  .demo-tab-btn {
    padding: 5px 8px;
    font-size: 11px;
    flex: 1;
    justify-content: center;
  }

  /* Main Hub Header */
  .hub-header {
    top: 38px;
  }
  .hub-nav-wrapper {
    height: 58px;
  }
  .hub-nav-menu {
    display: none;
  }
  .hub-official-logo {
    height: 36px;
  }
  .hub-brand-divider {
    height: 24px;
    margin: 0 2px;
  }
  .hub-brand-main {
    font-size: 13.5px;
  }
  .hub-brand-sub {
    font-size: 8.5px;
  }
  .hub-logo-mark {
    width: 36px;
    height: 36px;
  }
  .hub-logo-mark svg {
    width: 20px;
    height: 20px;
  }
  #btn-login-header {
    display: none;
  }
  .hub-mobile-menu-btn {
    display: flex;
  }

  /* Fixed Bottom Nav Bar */
  .mobile-bottom-nav {
    display: flex;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 26px 0 34px;
  }
  .hero-badge-tag {
    font-size: 10.5px;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: 26px;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
  }
  .hero-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .hero-search-card {
    margin-bottom: 16px;
    padding: 4px;
  }
  .hero-search-input {
    padding: 8px 10px;
    font-size: 13px;
  }
  .hero-search-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 8px;
  }
  .hero-cta-group .hub-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }
  .hero-preview-box {
    display: block !important;
    margin-top: 20px;
  }
  .hero-preview-img {
    height: 190px;
    border-radius: 12px;
    border-width: 2px;
  }
  .hero-floating-stat {
    display: none;
  }

  /* Metric Stats Bar Mobile */
  .stats-bar-wrapper {
    padding: 14px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stat-card-item {
    padding: 8px 10px;
    gap: 8px;
  }
  .stat-card-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .stat-card-num {
    font-size: 17px;
  }
  .stat-card-label {
    font-size: 10.5px;
  }

  /* Filter Pills Horizontal Scroll */
  .filter-pills {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 14px;
  }

  /* Project Grid Mobile */
  .hub-section {
    padding: 36px 0;
  }
  .section-head {
    margin-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .section-title {
    font-size: 21px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-img-wrap {
    height: 170px;
  }
  .project-img-wrap.has-poster { height: min(84vw, 360px); }
  .event-poster-grid { grid-template-columns: 1fr; gap: 16px; }
  .event-poster-image { height: min(78vw, 320px); }
  .project-title {
    font-size: 15px;
    height: auto;
  }

  /* Experts Grid Mobile */
  .experts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .expert-card {
    padding: 12px;
  }
  .expert-avatar-wrap {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }
  .expert-name {
    font-size: 12.5px;
  }

  /* Partners Mobile */
  .partners-row {
    padding: 16px;
    gap: 14px;
    justify-content: center;
  }
  .partner-logo-item {
    font-size: 16px;
  }

  /* Admin Dashboard Mobile */
  .admin-main-content {
    padding: 16px;
  }
  .admin-welcome-banner {
    padding: 16px;
  }
  .admin-welcome-title {
    font-size: 17px;
  }
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .admin-kpi-card {
    padding: 12px;
  }
  .admin-kpi-val {
    font-size: 20px;
  }
  .admin-charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .admin-chart-card {
    padding: 14px;
  }
  .my-idea-heading,
  .notification-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .notification-item > div {
    flex: 1 1 100%;
  }
  .notification-item .btn-table-action {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .hub-brand-divider,
  .hub-brand-sub {
    display: none;
  }
  .hub-brand-main {
    font-size: 12px;
  }
  .hub-official-logo {
    height: 28px;
  }
}

/* Admin project management */
[hidden] { display: none !important; }
.admin-project-note, .admin-project-login-hint { margin-top: 6px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.admin-project-login-hint { padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.admin-project-login-hint { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-project-login-hint[hidden] { display: none; }
.admin-login-button { white-space: nowrap; }
.admin-project-card-head { align-items: flex-start; gap: 16px; }
.admin-project-tools { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); align-items: center; }
.admin-project-table-wrap { width: 100%; overflow-x: auto; }
#admin-projects .admin-table { min-width: 900px; table-layout: auto; }
.project-code { white-space: nowrap; font-size: 11px; }
.admin-project-actions { min-width: 210px; white-space: nowrap; }
.admin-project-actions button { margin: 2px; }
.admin-project-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px 2px; color: var(--text-muted); font-size: 12px; }
.admin-project-modal-dialog { max-width: 760px; }
.admin-project-image-preview { display: block; width: min(100%, 420px); height: 190px; margin: 0 auto 14px; object-fit: cover; border-radius: 10px; background: #f1f5f9; }
.admin-project-image-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; max-height: 250px; overflow-y: auto; padding: 4px; margin-bottom: 16px; }
.image-library-option { min-width: 0; padding: 5px; border: 1px solid var(--border); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.image-library-option:hover, .image-library-option:focus-visible { border-color: var(--primary); outline: 2px solid #bfdbfe; }
.image-library-option img { display: block; width: 100%; height: 76px; object-fit: cover; border-radius: 5px; background: #f1f5f9; }
.image-library-option span { display: block; overflow: hidden; margin-top: 4px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.image-library-state { grid-column: 1 / -1; color: var(--text-muted); font-size: 12px; }
.image-library-state.is-error, .admin-project-form-feedback { color: #842029; }
.admin-project-form-options { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0; }
.admin-project-form-feedback { padding: 10px 12px; border-radius: 7px; background: #fff1f0; }
.admin-menu-item.active { background: rgba(255,255,255,.12); color: #fff; border-left: 3px solid #60a5fa; }
.admin-menu-item { transition: background .15s ease, color .15s ease; }
@media (max-width: 900px) { .admin-project-tools { grid-template-columns: repeat(2, minmax(140px, 1fr)); } }
@media (max-width: 640px) {
  .admin-account-dropdown { right: 0; width: min(220px, calc(100vw - 32px)); }
  .admin-project-login-hint { align-items: stretch; flex-direction: column; }
  .admin-project-login-hint .hub-btn { justify-content: center; }
  .admin-topbar .admin-login-button { padding: 8px 10px; font-size: 11px; }
  .admin-project-tools { display: grid; grid-template-columns: 1fr; }
  .admin-project-card-head { flex-direction: column; align-items: stretch; }
  #admin-projects .admin-table { min-width: 880px; }
  .admin-project-pagination { align-items: flex-start; flex-direction: column; }
  .admin-project-image-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-project-form-options { flex-direction: column; gap: 10px; }
}
