/* ==========================================================================
   GG CREATOR - YOUTUBE CHANNEL & DIY / DYE PROJECTS PLATFORM
   Design Theme: Modern Light Red / Coral with Dark & Light Modes
   ========================================================================== */

:root {
  /* Color Palette - Vibrant Light Red / Coral Primary */
  --accent-red: #ff4d6d;
  --accent-red-hover: #e63956;
  --accent-red-light: #ff758f;
  --accent-red-subtle: rgba(255, 77, 109, 0.14);
  --accent-red-glow: rgba(255, 77, 109, 0.35);
  --accent-red-border: rgba(255, 77, 109, 0.28);
  
  --gradient-red: linear-gradient(135deg, #ff4d6d 0%, #ff758f 50%, #ff8fa3 100%);
  --gradient-sunset: linear-gradient(135deg, #ff4d6d 0%, #ff9e00 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  /* Dark Mode Default Tokens */
  --bg-primary: #0a0e17;
  --bg-secondary: #101726;
  --bg-card: #151e33;
  --bg-card-hover: #1b2640;
  --bg-input: #0d1322;
  --bg-modal: #111827;
  --bg-glass: rgba(16, 23, 38, 0.85);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 8px 25px rgba(255, 77, 109, 0.28);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #fdfafb;
  --bg-secondary: #f4f0f2;
  --bg-card: #ffffff;
  --bg-card-hover: #fff5f7;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(255, 77, 109, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(255, 77, 109, 0.06);
  --shadow-md: 0 8px 24px rgba(220, 38, 38, 0.08);
  --shadow-lg: 0 16px 36px rgba(220, 38, 38, 0.12);
  --shadow-red: 0 8px 25px rgba(255, 77, 109, 0.2);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Glowing Background Orbs */
.bg-ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}

.orb-red {
  top: -100px;
  right: -50px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-red) 0%, rgba(255, 117, 143, 0) 70%);
}

.orb-rose {
  bottom: 10%;
  left: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.35) 0%, rgba(255, 158, 0, 0) 70%);
}

/* ==========================================================================
   NAVIGATION BAR (Step 2 in Wireframe)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: hidden;
}

.brand-icon-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  color: var(--text-primary);
  font-size: 1.25rem;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link i {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-red);
  background: var(--accent-red-subtle);
}

.nav-link:hover i {
  color: var(--accent-red);
}

.nav-link.active {
  color: #ffffff;
  background: var(--gradient-red);
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.35);
  font-weight: 600;
}

.nav-link.active i {
  color: #ffffff;
}

/* Nav Actions (Theme, Search, Profile) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  color: var(--accent-red);
  border-color: var(--accent-red-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Profile Dropdown Container */
.profile-dropdown-wrapper {
  position: relative;
  z-index: 999;
}

.profile-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  padding-right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.profile-avatar-btn:hover {
  border-color: var(--accent-red);
}

.avatar-img-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-red);
}

.profile-name-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  animation: fadeInDown 0.2s ease;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-menu-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.profile-menu-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.profile-menu-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.profile-menu-item:hover {
  background: var(--accent-red-subtle);
  color: var(--accent-red);
}

.profile-menu-item.logout {
  color: #ef4444;
}

.profile-menu-item.logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

/* Mobile Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-red);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
  background: var(--accent-red-subtle);
}

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

.btn-outline-red:hover {
  background: var(--accent-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-spent-time {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
}

.badge-price {
  background: var(--accent-red-subtle);
  color: var(--accent-red);
  border: 1px solid var(--accent-red-border);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.badge-category {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-live {
  background: rgba(239, 68, 68, 0.18);
  color: #ff4d6d;
  border: 1px solid rgba(255, 77, 109, 0.35);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ==========================================================================
   PAGE HERO & SECTION HEADERS
   ========================================================================== */
.page-header {
  padding: 60px 0 35px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-title span {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   HOME PAGE (Hero + Stats + Step 3: Recent Project + Details)
   ========================================================================== */
.hero-section {
  padding: 50px 0 70px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-full);
  color: var(--accent-red);
  font-size: 0.88rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-title .highlight-red {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

/* Hero Media Display */
.hero-media-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-floating-stat {
  position: absolute;
  bottom: -20px;
  left: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-text-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  line-height: 1;
}

.floating-text-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Stats Counter Grid */
.stats-counter-bar {
  margin: 40px 0 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* STEP 3: Recent Project & Details (Home Section) */
.recent-project-section {
  padding: 50px 0 80px;
  position: relative;
  z-index: 1;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.section-title span {
  color: var(--accent-red);
}

.recent-project-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transition: var(--transition);
}

.recent-project-feature-card:hover {
  border-color: var(--accent-red-border);
  box-shadow: 0 16px 40px rgba(255, 77, 109, 0.15);
}

.feature-media {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recent-project-feature-card:hover .feature-media img {
  transform: scale(1.04);
}

.feature-overlay-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.feature-time-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.feature-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
}

.feature-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--bg-secondary);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.feature-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.meta-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.meta-val.price {
  color: var(--accent-red);
  font-family: var(--font-mono);
}

.feature-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Build Progress Bar for In-Progress Builds */
.build-progress-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.build-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
}

.build-progress-label {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.build-progress-label i {
  color: #f59e0b;
}

.build-progress-pct {
  font-family: var(--font-mono);
  color: #f59e0b;
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.14);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.build-progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.build-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #eab308);
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
  position: relative;
  transition: width 1s ease-in-out;
}

.build-progress-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   PROJECTS PAGE (Step 4 in Wireframe)
   ========================================================================== */
.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 35px;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.category-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--accent-red);
  border-color: var(--accent-red-border);
}

.filter-btn.active {
  background: var(--gradient-red);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-red);
}

.search-box-wrapper {
  position: relative;
  min-width: 260px;
}

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

.search-input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-subtle);
}

/* Projects Grid -> Separated One-by-One List Layout */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 350px 1fr;
  align-items: stretch;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red-border);
  box-shadow: 0 16px 36px rgba(255, 77, 109, 0.18);
}

.project-card-media {
  position: relative;
  height: 100%;
  min-height: 250px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

/* Top Floating Badges in Project Card */
.card-badge-category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.card-badge-time {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
  justify-content: space-between;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex-grow: 1;
}

.project-materials-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0;
}

.project-mini-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-card-media {
    height: 240px;
    min-height: 240px;
  }
  .project-card-body {
    padding: 20px;
  }
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-red);
}

.card-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* "If Bill" Button - Prominently styled matching notebook wireframe */
.btn-bill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-bill:hover {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 77, 109, 0.4);
}

/* ==========================================================================
   PRODUCT LINKS PAGE (Step 5 in Wireframe: Image, Rs 1000, Name, Link)
   ========================================================================== */
.products-list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* PDF Catalog Highlight Banner */
.pdf-catalog-banner {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.12) 0%, rgba(40, 116, 240, 0.12) 100%);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.pdf-catalog-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.pdf-catalog-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pdf-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
  flex-shrink: 0;
}

.btn-flipkart {
  background: #2874f0;
  color: #ffffff !important;
  border: 1px solid #1a64dd;
  font-weight: 600;
  transition: var(--transition);
}

.btn-flipkart:hover {
  background: #155bc7;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(40, 116, 240, 0.4);
}

.product-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 160px 1fr 140px auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-row-card:hover {
  border-color: var(--accent-red-border);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.product-thumb {
  width: 160px;
  height: 160px;
  min-width: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-row-card:hover .product-thumb {
  border-color: var(--accent-red-border);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.product-row-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-info-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.product-specs {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-price-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  min-width: 120px;
}

.product-price-tag {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-red);
}

.product-price-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.product-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

/* ==========================================================================
   PRODUCT PAGE - PROJECT EXPLORER & PROJECT-BASED FILTERING
   ========================================================================== */
.project-showcase-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.project-showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.project-showcase-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-showcase-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.projects-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1200px) {
  .projects-mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.project-mini-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.project-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red);
}

.project-mini-card.active {
  border-color: var(--accent-red);
  background: rgba(255, 77, 109, 0.08);
  box-shadow: 0 0 0 2px var(--accent-red-glow);
}

.project-mini-card.active::after {
  content: 'SELECTED';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-red);
  color: #fff;
}

.project-mini-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
  background: #000;
}

.project-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.project-mini-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.project-mini-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-mini-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* Project Filter Tabs */
.project-filter-tabs-wrapper {
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.project-filter-tabs {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.project-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.project-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.project-tab-btn.active {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

/* Active Filter Banner */
.project-active-filter-banner {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  animation: fadeIn 0.25s ease;
}

.project-active-filter-banner strong {
  color: var(--accent-red-light);
}

.project-clear-filter-btn {
  background: none;
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.project-clear-filter-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Tags on Product Card */
.product-project-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.proj-tags-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-proj-tag {
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.22);
  color: var(--accent-red-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-proj-tag:hover {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  transform: translateY(-1px);
}

.badge-proj-tag.active {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

/* ==========================================================================
   ABOUT PAGE (Step 6 in Wireframe: Channel Owner, Purpose, Social Links)
   ========================================================================== */
.about-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.owner-profile-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.owner-avatar-lg {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-red);
  box-shadow: var(--shadow-red);
  margin-bottom: 18px;
}

.owner-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.owner-role {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.owner-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.about-story-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-heading i {
  color: var(--accent-red);
}

.about-paragraph {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.purpose-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.purpose-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}

.purpose-card:hover {
  border-color: var(--accent-red-border);
  transform: translateY(-3px);
}

.purpose-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-red-subtle);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.purpose-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.purpose-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Social Media Channels Section */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red-border);
  box-shadow: var(--shadow-md);
}

.social-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.social-yt { background: #ff0000; }
.social-insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-wa { background: #25d366; }
.social-mail { background: var(--accent-red); }
.social-gh { background: #333333; }

/* ==========================================================================
   CONTACT PAGE (Step 7: 1. WhatsApp, 2. Instagram, 3. Gmail)
   ========================================================================== */
.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.contact-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-channel-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-red-border);
  box-shadow: var(--shadow-lg);
}

.channel-step-number {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-red);
  background: var(--accent-red-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.channel-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.channel-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.channel-detail-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Contact Message Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-subtle);
}

/* ==========================================================================
   AUTH PAGES (Step 1: Login & Sign Up)
   ========================================================================== */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-red);
  font-weight: 600;
}

/* Auth Demo Box / 1-Click Fast Login */
.auth-demo-box {
  background: var(--accent-red-subtle);
  border: 1px dashed var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-demo-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-demo-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-demo-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.btn-demo-quick {
  background: var(--gradient-red);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}

.btn-demo-quick:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 77, 109, 0.45);
}

/* Password Input with Toggle Button */
.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap .form-input {
  padding-right: 46px;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.toggle-password-btn:hover {
  color: var(--accent-red);
}

/* Password Strength Indicator */
.password-strength-container {
  margin-top: 8px;
}

.password-strength-bar {
  height: 4px;
  width: 100%;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: var(--radius-full);
}

.strength-fill.weak {
  width: 33%;
  background-color: #ef4444;
}

.strength-fill.medium {
  width: 66%;
  background-color: #f59e0b;
}

.strength-fill.strong {
  width: 100%;
  background-color: #10b981;
}

.strength-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 14px;
}

/* Google Sign-in Button */
.btn-google-login {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-google-login:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

/* Already Logged In Card Banner */
.already-logged-in-box {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  margin-bottom: 24px;
}

.already-logged-in-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-red);
  margin: 0 auto 12px;
}

/* Guest Banner on Profile / Dashboard */
.guest-profile-banner {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.12) 0%, rgba(255, 158, 0, 0.08) 100%);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.guest-banner-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.guest-banner-text i {
  color: var(--accent-red);
  font-size: 1.25rem;
}

/* Input Error Message */
.form-error-msg {
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-input {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

.form-group.has-error .form-error-msg {
  display: block;
}

/* OTP Digits Row */
.otp-input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.otp-box-digit {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.otp-box-digit:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-subtle);
}

/* Bottom Back Link */
.bottom-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.bottom-back-btn:hover {
  color: var(--accent-red);
  transform: translateX(-3px);
}

/* ==========================================================================
   PROFILE DASHBOARD (Step 8 in Wireframe)
   ========================================================================== */
.profile-dashboard {
  padding: 40px 0 80px;
  position: relative;
  z-index: 1;
}

.profile-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 35px;
}

.profile-user-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar-giant {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-red);
  box-shadow: var(--shadow-red);
}

/* ==========================================================================
   YOUTUBE CHANNEL PROFILE & SHOWCASE (GG Creation @GGCreative-x9o)
   ========================================================================== */
.yt-profile-banner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 35px;
  position: relative;
}

.yt-channel-banner-bg {
  height: 180px;
  background: linear-gradient(135deg, #120306 0%, #2b0811 35%, #5a0f1d 70%, #991b1b 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
}

.yt-channel-banner-bg::after {
  content: 'GG CREATION';
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 4.2rem;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: 8px;
  position: absolute;
  left: 210px;
  bottom: 16px;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.yt-channel-banner-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(255, 77, 109, 0.28), transparent 70%);
}

.yt-channel-content {
  padding: 0 35px 35px;
  position: relative;
}

.yt-channel-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.yt-avatar-info-group {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  flex: 1;
}

.yt-avatar-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  margin-top: -68px; /* Avatar cleanly overlaps the banner */
  z-index: 10;
}

.yt-channel-avatar-img {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 2.5px var(--accent-red);
  background: #000;
  display: block;
}

.yt-avatar-live-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #ff0000;
  color: #fff;
  border-radius: var(--radius-full);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 2px solid var(--bg-card);
  box-shadow: 0 3px 10px rgba(255, 0, 0, 0.4);
}

.yt-channel-info-main {
  flex: 1;
  min-width: 280px;
  padding-top: 14px; /* Title sits cleanly below the banner edge with zero clipping */
}

.yt-channel-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.yt-channel-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.5px;
}

.yt-handle-badge {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.yt-sub-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-red-subtle);
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-red-border);
}

.yt-channel-bio-box {
  margin: 16px 0 20px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-red);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.yt-channel-bio-box strong {
  color: var(--text-primary);
}

.yt-channel-actions-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 16px;
}

/* YouTube Video Cards Grid */
.yt-videos-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.yt-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.yt-video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.yt-video-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red-border);
  box-shadow: var(--shadow-md);
}

.yt-video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.yt-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yt-video-card:hover .yt-video-thumb-img {
  transform: scale(1.05);
}

.yt-video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.yt-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 52px;
  height: 52px;
  background: rgba(255, 0, 0, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 3px;
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.yt-video-card:hover .yt-video-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.yt-video-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yt-video-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.yt-video-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.yt-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

/* ==========================================================================
   MODALS: "IF BILL", "PROJECT DETAILS", "ADD PROJECT"
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-modal);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUp 0.25s ease;
}

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

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title i {
  color: var(--accent-red);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--accent-red);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* "If Bill" Itemized Invoice Table */
.bill-invoice-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.invoice-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
}

.bill-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}

.bill-table td {
  padding: 12px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.bill-table .cost-col {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}

.bill-total-row {
  background: var(--accent-red-subtle);
}

.bill-total-row td {
  border-bottom: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-red);
  padding: 14px 12px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent-red-border);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  min-width: 280px;
}

.toast i {
  color: var(--accent-red);
  font-size: 1.2rem;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

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

.footer-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-red);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .recent-project-feature-card {
    grid-template-columns: 1fr;
  }
  .about-hero-card {
    grid-template-columns: 1fr;
  }
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: var(--bg-card);
    flex-direction: column;
    padding: 30px 20px;
    gap: 12px;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  .nav-menu.open {
    left: 0;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .product-row-card {
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 16px;
  }
  .product-thumb {
    width: 130px;
    height: 130px;
    min-width: 130px;
  }
  .product-info-cell {
    grid-column: 2;
  }
  .product-price-cell {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    min-width: auto;
  }
  .product-actions-cell {
    grid-column: 1 / -1;
    width: 100%;
  }
  .product-actions-cell .btn {
    width: 100%;
    justify-content: center;
  }
  .purpose-highlights-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero-card {
    flex-direction: column;
    text-align: center;
  }
  .profile-user-left {
    flex-direction: column;
  }
  .yt-channel-content {
    padding: 0 20px 25px;
  }
  .yt-channel-banner-bg::after {
    display: none;
  }
  .yt-channel-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .yt-avatar-info-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: 100%;
  }
  .yt-avatar-wrapper {
    margin-top: -65px;
  }
  .yt-channel-info-main {
    padding-top: 0;
    width: 100%;
    text-align: center;
  }
  .yt-channel-title-row {
    justify-content: center;
  }
  .yt-channel-title {
    font-size: 1.85rem;
  }
  .yt-channel-actions-bar {
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }
}

/* ==========================================================================
   MEET THE CREATORS SECTION
   ========================================================================== */
.creators-section {
  margin: 60px 0;
  position: relative;
}

.creators-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   MEET THE TEAM GRID & CARDS (Matches Hand-Drawn Reference Sketch)
   ========================================================================== */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-red-border);
  box-shadow: var(--shadow-lg), 0 12px 30px rgba(255, 77, 109, 0.16);
}

.team-card-image-wrap {
  width: 100%;
  aspect-ratio: 3 / 3.8;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.team-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

.team-card-info {
  padding: 24px 20px 26px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.team-card-designation {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-red);
  margin-bottom: 14px;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.team-card-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.team-social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.team-social-circle:hover {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 77, 109, 0.4);
}

@media (max-width: 992px) {
  .creators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .creators-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 24px;
  }
}

/* ==========================================================================
   FULL PROJECT DETAIL PAGE (Dedicated Step 3 / Project Showcase Page)
   ========================================================================== */
.project-detail-wrapper {
  padding-top: 36px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* Breadcrumb Bar */
.detail-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.detail-breadcrumbs a {
  color: var(--text-secondary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-breadcrumbs a:hover {
  color: var(--accent-red);
}

.detail-breadcrumbs .crumb-sep {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.detail-breadcrumbs .crumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

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

/* Detail Hero Header */
.project-detail-hero {
  margin-bottom: 36px;
}

.detail-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.project-detail-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 900px;
  margin-bottom: 24px;
}

/* Meta Bar with Pills */
.detail-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.detail-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-meta-pill i {
  color: var(--accent-red);
  font-size: 1rem;
}

.detail-meta-pill.pill-price {
  background: rgba(255, 77, 109, 0.08);
  border-color: var(--accent-red-border);
  color: var(--accent-red-light);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.detail-meta-pill.pill-time {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #10b981;
}

/* Full-Width Layout */
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 992px) {
  .project-detail-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

/* Left Column / Main Content */
.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Image Showcase Banner */
.detail-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

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

.detail-image-card:hover .detail-featured-img {
  transform: scale(1.03);
}

.detail-image-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.detail-image-overlay .badge {
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Section Box */
.detail-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.detail-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.detail-card-title i {
  color: var(--accent-red);
}

.detail-card-desc {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Materials Cloud / List */
.detail-materials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.detail-material-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition);
}

.detail-material-pill:hover {
  border-color: var(--accent-red-border);
  background: rgba(255, 77, 109, 0.05);
  transform: translateX(4px);
}

.detail-material-pill i {
  color: var(--accent-red);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Step By Step Timeline Cards */
.detail-steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.detail-step-card {
  display: flex;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  position: relative;
}

.detail-step-card:hover {
  border-color: var(--accent-red-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.detail-step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-step-content {
  flex-grow: 1;
}

.detail-step-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.detail-step-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Workshop Tools Used Grid */
.detail-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.detail-tool-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: var(--transition);
}

.detail-tool-item:hover {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-sm);
}

.detail-tool-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.detail-tool-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-tool-info {
  flex-grow: 1;
  min-width: 0;
}

.detail-tool-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-tool-link {
  font-size: 0.78rem;
  color: var(--accent-red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-tool-link:hover {
  text-decoration: underline;
}

/* YouTube Video Tutorial Box */
.detail-youtube-box {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.08) 0%, rgba(255, 77, 109, 0.06) 100%);
  border: 1px solid rgba(255, 77, 109, 0.25);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.youtube-box-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.youtube-box-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.35);
}

.youtube-box-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.youtube-box-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Right Sidebar Sticky Cards */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.sidebar-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-card-title i {
  color: var(--accent-red);
}

/* Sidebar Itemized Bill Table */
.sidebar-bill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.sidebar-bill-table th {
  text-align: left;
  padding: 8px 6px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-bill-table td {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: top;
}

[data-theme="light"] .sidebar-bill-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-bill-table .cost-col {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-red-light);
}

.sidebar-bill-total {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sidebar-bill-total .total-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.sidebar-bill-total .total-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-red);
}

/* Quick Actions in Sidebar */
.sidebar-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-actions-group .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
}

/* Prev / Next Project Switcher */
.project-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.pager-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
  color: var(--text-primary);
  text-decoration: none;
}

.pager-btn:hover {
  border-color: var(--accent-red);
  background: rgba(255, 77, 109, 0.06);
  transform: translateY(-2px);
}

.pager-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pager-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Related / Other Projects Carousel / Grid at bottom */
.detail-related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.detail-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.related-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.related-project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: var(--shadow-red);
}

.related-thumb-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #000;
}

.related-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.related-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.related-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.related-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
}

/* Print Styles */
@media print {
  .navbar, .footer, .bg-ambient-orb, .detail-breadcrumb-bar, .sidebar-actions-group, .project-pager, .detail-related-section, #themeToggleBtn {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .project-detail-grid, .maker-pricing-dual-grid {
    display: block !important;
  }
  .sidebar-card, .detail-card-box {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  .detail-image-card {
    max-height: 300px;
  }
}

/* ==========================================================================
   MAKER PROCESS & DETAILED COMPONENT PRICING DUAL GRID (From PDF Catalog)
   ========================================================================== */
.maker-pricing-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: start;
  margin-top: 36px;
  margin-bottom: 36px;
}

@media (max-width: 1100px) {
  .maker-pricing-dual-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.pricing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

/* Detailed PDF Components Table */
.pdf-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.pdf-components-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.pdf-components-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

[data-theme="light"] .pdf-components-table th {
  background: rgba(0, 0, 0, 0.04);
}

.pdf-components-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}

[data-theme="light"] .pdf-components-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pdf-components-table tr:hover td {
  background: rgba(255, 77, 109, 0.04);
}

.pdf-components-table .sno-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-red);
  text-align: center;
  width: 45px;
}

.pdf-components-table .comp-name-cell {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.pdf-components-table .qty-cell {
  text-align: center;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 600;
}

.pdf-components-table .price-cell {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-red-light);
  white-space: nowrap;
}

.pdf-components-table .link-cell {
  text-align: center;
  white-space: nowrap;
}

.pdf-table-total-row td {
  background: rgba(255, 77, 109, 0.08);
  padding: 14px 16px;
  border-top: 1px solid var(--accent-red-border);
  border-bottom: none;
  font-weight: 700;
}

.pdf-table-total-row .total-price-cell {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--accent-red);
}

/* Store Link Badges */
.store-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.store-badge-link.store-flipkart {
  background: rgba(40, 116, 240, 0.12);
  color: #2874f0;
  border: 1px solid rgba(40, 116, 240, 0.35);
}

.store-badge-link.store-flipkart:hover {
  background: #2874f0;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(40, 116, 240, 0.35);
  transform: translateY(-1px);
}

.store-badge-link.store-amazon {
  background: rgba(255, 153, 0, 0.12);
  color: #ff9900;
  border: 1px solid rgba(255, 153, 0, 0.35);
}

.store-badge-link.store-amazon:hover {
  background: #ff9900;
  color: #111111;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.35);
  transform: translateY(-1px);
}

.store-badge-link.store-robu {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.store-badge-link.store-robu:hover {
  background: #a855f7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.store-badge-dummy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  white-space: nowrap;
}

/* ==========================================================================
   BOTTOM NAVIGATION BACK BAR
   ========================================================================== */
.bottom-back-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.bottom-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.bottom-back-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-subtle);
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.25);
}

.bottom-back-btn i {
  transition: transform 0.2s ease;
}

.bottom-back-btn:hover i {
  transform: translateX(-3px);
}

/* ==========================================================================
   AFFILIATE GEAR & LINK PRODUCTS CARD (MATCHING FLIPKART TOOL SPEC)
   ========================================================================== */
.products-list-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.product-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  transition: all 0.25s ease;
  position: relative;
}

.product-link-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.card-left-col {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.product-thumb-box {
  width: 92px;
  height: 92px;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.product-price-block {
  min-width: 110px;
}

.product-price-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f43f5e;
  line-height: 1.2;
}

.product-price-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.card-info-col {
  flex: 1;
  min-width: 0;
}

.product-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.badge-pdf-tag {
  background: #1e293b;
  color: #cbd5e1;
  border-radius: 9999px;
  padding: 3px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid #334155;
  display: inline-flex;
  align-items: center;
}

.badge-spec-tag {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  padding: 3px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.product-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 10px;
}

.product-used-in-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.used-in-label {
  color: var(--text-muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-used-proj {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-used-proj:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  border-color: var(--accent-red);
}

.product-shortlink-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.product-shortlink-row a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.product-shortlink-row a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.card-action-col {
  flex-shrink: 0;
  align-self: center;
}

.btn-buy-flipkart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2874f0;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(40, 116, 240, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-buy-flipkart:hover {
  background: #125cdb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 116, 240, 0.5);
  color: #ffffff !important;
}

.btn-buy-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff9900, #f59e0b);
  color: #111827 !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-buy-amazon:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  color: #111827 !important;
}

@media (max-width: 900px) {
  .product-link-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }
  .card-left-col {
    width: 100%;
    justify-content: flex-start;
  }
  .card-action-col {
    width: 100%;
  }
  .btn-buy-flipkart, .btn-buy-amazon {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN — ALL BREAKPOINTS
   ========================================================================== */

/* ── Extra Large → Large (max 1200px) ── */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 3rem;
  }

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

  .about-hero-card {
    grid-template-columns: 260px 1fr;
    gap: 30px;
  }

  .yt-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .product-row-card {
    grid-template-columns: 140px 1fr 120px auto;
    gap: 18px;
  }

  .product-thumb {
    width: 140px;
    height: 140px;
    min-width: 140px;
  }
}

/* ── Large → Tablet (max 1024px) ── */
@media (max-width: 1024px) {
  /* Navbar: hide brand tag on tablets */
  .brand-tag {
    display: none;
  }

  .navbar-container {
    height: 68px;
  }

  /* Hero section stack */
  .hero-section {
    padding: 40px 0 55px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-image-card img {
    height: 300px;
  }

  .hero-floating-stat {
    left: 50%;
    transform: translateX(-50%);
    bottom: -18px;
    white-space: nowrap;
  }

  /* Stats bar: 2 columns */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stats-counter-bar {
    padding: 24px 28px;
  }

  /* Recent project card stack */
  .recent-project-feature-card {
    grid-template-columns: 1fr;
  }

  .feature-media {
    min-height: 300px;
  }

  .feature-body {
    padding: 28px;
  }

  /* About hero */
  .about-hero-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .owner-profile-card {
    max-width: 340px;
    margin: 0 auto;
  }

  /* Contact grid: 1 column */
  .contact-channels-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

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

  /* Footer: 2 columns */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Pager grid on project detail */
  .project-pager {
    grid-template-columns: 1fr;
  }
}

/* ── Tablet → Mobile (max 768px) ── */
@media (max-width: 768px) {
  /* ── Container ── */
  .container {
    padding: 0 16px;
  }

  /* ── Navbar ── */
  .navbar-container {
    height: 64px;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--bg-card);
    flex-direction: column;
    padding: 24px 16px;
    gap: 8px;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .profile-name-text {
    display: none;
  }

  /* ── Hero ── */
  .hero-section {
    padding: 30px 0 50px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-image-card img {
    height: 240px;
  }

  .hero-floating-stat {
    position: static;
    transform: none;
    margin-top: 12px;
    justify-content: center;
  }

  .hero-media-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ── Stats ── */
  .stats-counter-bar {
    padding: 20px 16px;
    margin: 24px 0 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  /* ── Section Titles ── */
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* ── Recent Project Feature Card ── */
  .feature-body {
    padding: 20px 16px;
    gap: 16px;
  }

  .feature-title {
    font-size: 1.45rem;
  }

  .feature-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-media {
    min-height: 220px;
  }

  /* ── Projects page ── */
  .projects-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .search-box-wrapper {
    min-width: 100%;
  }

  .category-filter-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-filter-group::-webkit-scrollbar {
    display: none;
  }

  /* ── Product Row Cards ── */
  .product-row-card {
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 14px;
    flex-wrap: wrap;
  }

  .product-thumb {
    width: 110px;
    height: 110px;
    min-width: 110px;
  }

  .product-price-cell {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    min-width: auto;
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  .product-actions-cell {
    grid-column: 1 / -1;
    width: 100%;
  }

  .product-actions-cell .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── PDF Catalog Banner ── */
  .pdf-catalog-banner {
    flex-direction: column;
    padding: 20px 18px;
  }

  .pdf-catalog-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* ── About page ── */
  .about-hero-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
  }

  .purpose-highlights-grid {
    grid-template-columns: 1fr;
  }

  .about-heading {
    font-size: 1.45rem;
  }

  .about-paragraph {
    font-size: 0.96rem;
  }

  /* ── Contact page ── */
  .contact-channels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-card {
    padding: 24px 16px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* ── Auth pages ── */
  .auth-card {
    padding: 28px 20px;
  }

  .auth-title {
    font-size: 1.65rem;
  }

  /* ── Profile dashboard ── */
  .profile-hero-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
    gap: 20px;
  }

  .profile-user-left {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .profile-avatar-giant {
    width: 90px;
    height: 90px;
  }

  /* ── YouTube channel section ── */
  .yt-channel-content {
    padding: 0 16px 24px;
  }

  .yt-channel-banner-bg {
    height: 140px;
  }

  .yt-channel-banner-bg::after {
    display: none;
  }

  .yt-channel-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .yt-avatar-info-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
  }

  .yt-avatar-wrapper {
    margin-top: -60px;
  }

  .yt-channel-avatar-img {
    width: 110px;
    height: 110px;
  }

  .yt-channel-info-main {
    padding-top: 0;
    width: 100%;
    text-align: center;
    min-width: 0;
  }

  .yt-channel-title-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .yt-channel-title {
    font-size: 1.65rem;
  }

  .yt-channel-actions-bar {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .yt-videos-grid {
    grid-template-columns: 1fr;
  }

  /* ── Modals ── */
  .modal-dialog {
    margin: 0;
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 18px 20px;
  }

  .modal-footer {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .site-footer {
    padding: 40px 0 24px;
  }

  /* ── Bottom nav bar ── */
  .bottom-back-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bottom-back-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
  }

  /* ── Project detail page ── */
  .detail-breadcrumb-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .detail-card-box {
    padding: 20px 16px;
  }

  .detail-youtube-box {
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
  }

  /* ── Creators / Team grid ── */
  .creators-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  /* ── Bill table on small screens ── */
  .bill-table {
    font-size: 0.82rem;
  }

  .bill-table th,
  .bill-table td {
    padding: 8px;
  }

  /* ── Toast ── */
  .toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }
}

/* ── Mobile (max 480px) ── */
@media (max-width: 480px) {
  /* ── Container ── */
  .container {
    padding: 0 12px;
  }

  /* ── Navbar ── */
  .brand-title {
    font-size: 1.05rem;
  }

  .brand-icon-box {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* ── Hero ── */
  .hero-title {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .hero-badge-pill {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image-card img {
    height: 200px;
  }

  /* ── Stats ── */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  /* ── Section titles ── */
  .page-title {
    font-size: 1.65rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  /* ── Recent project card ── */
  .feature-title {
    font-size: 1.25rem;
  }

  .feature-meta-grid {
    grid-template-columns: 1fr;
  }

  .meta-val {
    font-size: 1rem;
  }

  /* ── Project cards ── */
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card-media {
    height: 200px;
    min-height: 200px;
  }

  .project-card-body {
    padding: 16px;
  }

  .project-card-title {
    font-size: 1.2rem;
  }

  .card-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .card-btn-group .btn,
  .card-btn-group .btn-bill {
    width: 100%;
    justify-content: center;
  }

  /* ── Product cards ── */
  .product-row-card {
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .product-thumb {
    width: 90px;
    height: 90px;
    min-width: 90px;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price-tag {
    font-size: 1.1rem;
  }

  /* ── Auth pages ── */
  .auth-card {
    padding: 22px 14px;
  }

  .auth-title {
    font-size: 1.4rem;
  }

  .auth-demo-box {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .btn-demo-quick {
    width: 100%;
    justify-content: center;
  }

  /* ── Profile ── */
  .yt-channel-avatar-img {
    width: 90px;
    height: 90px;
  }

  .yt-channel-title {
    font-size: 1.4rem;
  }

  /* ── Modals ── */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  /* ── Detail page ── */
  .project-detail-title {
    font-size: 1.75rem;
  }

  .project-detail-tagline {
    font-size: 0.95rem;
  }

  /* ── About page ── */
  .about-heading {
    font-size: 1.3rem;
  }

  .owner-avatar-lg {
    width: 110px;
    height: 110px;
  }

  /* ── Contact card ── */
  .contact-form-card {
    padding: 18px 14px;
  }

  /* ── Footer ── */
  .footer-bottom > div:last-child {
    flex-direction: column;
    gap: 10px;
  }
}

/* ── Extra small phones (max 360px) ── */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .brand-title {
    font-size: 0.95rem;
  }

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

  .feature-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group .btn {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .profile-avatar-btn .profile-name-text {
    display: none;
  }
}

/* ── Landscape phone mode ── */
@media (max-height: 500px) and (orientation: landscape) {
  .nav-menu {
    padding: 16px;
    gap: 6px;
  }

  .nav-link {
    padding: 8px 14px;
  }

  .hero-section {
    padding: 20px 0 30px;
  }
}

/* ── Touch device / pointer improvements ── */
@media (hover: none) and (pointer: coarse) {
  .nav-link:hover,
  .btn:hover,
  .filter-btn:hover {
    transform: none;
  }

  .project-card:hover,
  .product-row-card:hover,
  .social-card:hover {
    transform: none;
  }

  .bottom-back-btn:hover {
    transform: none;
  }
}

