/* ============================================
   Toby's Toolbox - Main Stylesheet
   Deep blue gradient theme inspired by Disney+/Big Hero 6
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --deep-blue-1: #0a1628;
  --deep-blue-2: #1a2a3a;
  --deep-blue-3: #2a3a4a;
  --bright-blue: #4a9eff;
  --bright-blue-hover: #5cb0ff;
  --teal: #00d4aa;
  --orange: #ff8c42;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --card-bg: rgba(26, 42, 58, 0.6);
  --card-shadow: rgba(0, 0, 0, 0.3);
  --glow: rgba(74, 158, 255, 0.3);
  --glow-strong: rgba(74, 158, 255, 0.5);
  --max-width: 1200px;
  --border-radius: 24px;
  --border-radius-small: 12px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Animation timings - Disney-like smooth easing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(26, 115, 232, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(66, 133, 244, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
  color: #202124;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 80px; /* Space for fixed nav */
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out-expo) forwards;
  cursor: default;
}

/* Smooth cursor for interactive elements */
a, button, .btn, .card, .filter-btn {
  cursor: pointer;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  color: #5f6368;
}

a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1557b0;
  text-decoration: underline;
}

/* ===== ChromeOS Flex Style Navigation ===== */
.flex-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.flex-nav-left {
  display: flex;
  align-items: center;
}

.flex-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #202124;
  font-size: 18px;
  font-weight: 400;
  transition: opacity 0.2s;
}

.flex-logo:hover {
  opacity: 0.8;
}

.flex-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-avatar {
  width: 100%;
  height: 100%;
  transition: transform 0.3s var(--ease-out-expo);
}


.flex-logo:hover .logo-avatar {
  transform: scale(1.05);
}

.flex-logo-text {
  font-weight: 400;
  letter-spacing: -0.3px;
}

.flex-nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.flex-nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.flex-nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #5f6368;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

.flex-nav-item svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.flex-nav-item:hover {
  color: #202124;
}

.flex-nav-item:hover svg {
  transform: translateY(2px);
}

.flex-nav-item.active {
  color: #1a73e8;
}

.flex-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1a73e8;
}

.flex-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flex-mobile-menu-toggle {
  display: none; /* Hidden on desktop */
}

/* Ensure mobile menu toggle is visible on mobile */
@media (max-width: 768px) {
  .flex-mobile-menu-toggle {
    display: flex !important;
  }
}

.flex-btn-outline {
  padding: 10px 20px;
  border: 1px solid #dadce0;
  border-radius: 24px;
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  background: transparent;
}

.flex-btn-outline:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
  text-decoration: none;
}

.flex-btn-primary {
  padding: 10px 24px;
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.flex-btn-primary:hover {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
  text-decoration: none;
}

/* ===== Chrome Web Store Navigation (Legacy - keep for other pages) ===== */
.chrome-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chrome-nav-left {
  display: flex;
  align-items: center;
}

.chrome-logo {
  font-size: 20px;
  font-weight: 400;
  color: #5f6368;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}

.chrome-logo:hover {
  color: #202124;
}

.chrome-nav-center {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.chrome-search-container {
  display: flex;
  align-items: center;
  background: #f1f3f4;
  border-radius: 24px;
  padding: 8px 16px;
  width: 100%;
  max-width: 600px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.chrome-search-container:focus-within {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-color: #dadce0;
}

.chrome-search-icon {
  color: #5f6368;
  margin-right: 12px;
  flex-shrink: 0;
}

.chrome-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #202124;
  outline: none;
  font-family: inherit;
}

.chrome-search-input::placeholder {
  color: #5f6368;
}

.chrome-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chrome-menu-icon {
  background: none;
  border: none;
  color: #5f6368;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chrome-menu-icon:hover {
  background: #f1f3f4;
  color: #202124;
}

.chrome-menu-icon svg {
  width: 20px;
  height: 20px;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-md);
}

/* ===== ChromeOS Flex Style Main Content ===== */
.flex-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex-hero {
  text-align: center;
  padding: 80px 0 120px;
  max-width: 800px;
  margin: 0 auto;
}

.flex-hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.flex-logo-icon-large {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-avatar-large {
  width: 100%;
  height: 100%;
  transition: transform 0.3s var(--ease-out-expo);
}


.flex-hero-logo:hover .logo-avatar-large {
  transform: scale(1.05);
}

.flex-logo-text-large {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  letter-spacing: -0.5px;
}

.flex-hero-title {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.2;
  color: #202124;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.flex-highlight {
  background: linear-gradient(135deg, #fce8e6 0%, #fef7e0 100%);
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  color: #d93025;
  font-weight: 500;
}

.flex-hero-description {
  font-size: 18px;
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.flex-cta-button {
  display: inline-block;
  padding: 16px 32px;
  background: #1a73e8;
  color: #ffffff;
  border-radius: 28px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.flex-cta-button:hover {
  background: #1557b0;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== Chrome Web Store Main Content (Legacy) ===== */
.chrome-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.chrome-hero {
  background: linear-gradient(135deg, #e8f0fe 0%, #f1f3f4 100%);
  border-radius: 8px;
  padding: 48px 32px;
  margin-bottom: 32px;
  text-align: center;
}

.chrome-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.chrome-hero-title {
  font-size: 32px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 8px;
}

.chrome-hero-subtitle {
  font-size: 16px;
  color: #5f6368;
  margin: 0;
}

.flex-section {
  margin-bottom: 80px;
  padding: 0 24px;
}

.flex-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.flex-section-title {
  font-size: 36px;
  font-weight: 400;
  color: #202124;
  letter-spacing: -0.5px;
}

.flex-link {
  color: #1a73e8;
  font-size: 16px;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s;
}

.flex-link:hover {
  color: #1557b0;
  text-decoration: none;
}

.chrome-section {
  margin-bottom: 48px;
}

.chrome-section-title {
  font-size: 22px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 16px;
  text-transform: capitalize;
}

.chrome-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chrome-see-more {
  color: #1a73e8;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.chrome-see-more:hover {
  text-decoration: underline;
}

/* Chrome Categories */
.chrome-categories {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.chrome-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  text-decoration: none;
  color: #202124;
  transition: all 0.2s;
  min-width: 100px;
  cursor: pointer;
}

.chrome-category-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #1a73e8;
}

.chrome-category-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chrome-category-card:hover .chrome-category-icon {
  color: #1a73e8;
}

.chrome-category-name {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
}

/* ChromeOS Flex Cards */
.flex-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.flex-card {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flex-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #dadce0;
  transform: translateY(-2px);
}

.flex-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f1f3f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #1a73e8;
  position: relative;
  overflow: visible;
}

/* Work in Progress Banner */
.flex-card-icon-wip {
  position: relative;
}

.flex-card-icon-wip::after {
  content: 'Work in Progress';
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  transform: rotate(12deg);
  animation: pulse-wip 2s ease-in-out infinite;
}

@keyframes pulse-wip {
  0%, 100% {
    transform: rotate(12deg) scale(1);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
  }
  50% {
    transform: rotate(12deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.6);
  }
}

/* Mobile responsive for WIP banner */
@media (max-width: 768px) {
  .flex-card-icon-wip::after {
    font-size: 9px;
    padding: 3px 6px;
    top: -6px;
    right: -6px;
  }
}

@media (max-width: 480px) {
  .flex-card-icon-wip::after {
    font-size: 8px;
    padding: 2px 5px;
    top: -4px;
    right: -4px;
  }
}

.flex-card-icon svg {
  width: 32px;
  height: 32px;
}

.flex-card-content {
  flex: 1;
}

.flex-card-title {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
  line-height: 1.4;
}

.flex-card-description {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flex-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f3f4;
}

.flex-card-price {
  font-size: 18px;
  font-weight: 500;
  color: #1a73e8;
}

.flex-card-button {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.flex-card-button:hover:not(:disabled) {
  background: #1557b0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.flex-card-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #dadce0;
  color: #5f6368;
}

/* Chrome Cards (Legacy) */
.chrome-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.chrome-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.chrome-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #1a73e8;
}

.chrome-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a73e8, #34a853);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #ffffff;
  padding: 12px;
}

.chrome-card-icon svg {
  width: 100%;
  height: 100%;
}

.chrome-card-content {
  flex: 1;
}

.chrome-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 4px;
  line-height: 1.4;
}

.chrome-card-description {
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chrome-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.chrome-card-price {
  font-size: 16px;
  font-weight: 500;
  color: #1a73e8;
}

.chrome-card-button {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.chrome-card-button:hover {
  background: #1557b0;
}

.chrome-card-button:active {
  background: #0d47a1;
}

/* Prevent button clicks from triggering parent link */
a.chrome-card .chrome-card-button {
  pointer-events: auto;
}

a.chrome-card .chrome-card-button:active {
  pointer-events: auto;
}

/* Footer ChromeOS Flex Style */
.footer {
  background: #f8f9fa;
  border-top: 1px solid #e8eaed;
  padding: 48px 24px;
  text-align: center;
  color: #5f6368;
  margin-top: 80px;
}

.footer p {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #1557b0;
  text-decoration: none;
}

/* ===== Product Page ChromeOS Flex Style ===== */
.flex-breadcrumbs {
  color: #5f6368;
  font-size: 14px;
  margin-bottom: 32px;
  padding: 8px 0;
}

.flex-breadcrumbs a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s;
}

.flex-breadcrumbs a:hover {
  color: #1557b0;
  text-decoration: none;
}

.flex-breadcrumbs span {
  margin: 0 8px;
  color: #5f6368;
}

.flex-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

.flex-product-preview {
  position: relative;
}

.flex-product-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: all 0.3s ease;
}

.flex-product-image:hover {
  border-color: #dadce0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.flex-product-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flex-product-title {
  font-size: 36px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.flex-product-price {
  font-size: 28px;
  font-weight: 500;
  color: #1a73e8;
  margin-bottom: 16px;
}

.flex-product-description {
  font-size: 18px;
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 16px;
}

.flex-product-features {
  list-style: none;
  margin: 24px 0;
}

.flex-product-features li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: #5f6368;
  font-size: 16px;
  line-height: 1.6;
}

.flex-product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34a853;
  font-weight: bold;
  font-size: 18px;
}

.flex-product-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.flex-buy-btn {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 28px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.flex-buy-btn:hover {
  background: #1557b0;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
}

.flex-preview-btn {
  background: #ffffff;
  color: #1a73e8;
  border: 1px solid #dadce0;
  border-radius: 28px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.flex-preview-btn:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
  text-decoration: none;
}

.flex-card-detail {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===== Product Page Chrome Style (Legacy) ===== */
.chrome-breadcrumbs {
  color: #5f6368;
  font-size: 14px;
  margin-bottom: 24px;
  padding: 8px 0;
}

.chrome-breadcrumbs a {
  color: #1a73e8;
  text-decoration: none;
}

.chrome-breadcrumbs a:hover {
  text-decoration: underline;
}

.chrome-breadcrumbs span {
  margin: 0 8px;
  color: #5f6368;
}

.chrome-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.chrome-product-preview {
  position: relative;
}

.chrome-product-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: all 0.3s ease;
}

.chrome-product-image:hover {
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chrome-product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chrome-product-title {
  font-size: 28px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 8px;
}

.chrome-product-price {
  font-size: 24px;
  font-weight: 500;
  color: #1a73e8;
  margin-bottom: 16px;
}

.chrome-product-description {
  font-size: 16px;
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 16px;
}

.chrome-product-text {
  font-size: 16px;
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 12px;
}

.chrome-product-features {
  list-style: none;
  margin: 16px 0;
}

.chrome-product-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: #5f6368;
  font-size: 14px;
}

.chrome-product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34a853;
  font-weight: bold;
}

.chrome-product-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.chrome-buy-btn {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.chrome-buy-btn:hover {
  background: #1557b0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chrome-preview-btn {
  background: #ffffff;
  color: #1a73e8;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.chrome-preview-btn:hover {
  background: #f8f9fa;
  border-color: #1a73e8;
}

.chrome-card-detail {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

/* ===== Live Preview ChromeOS Flex Style ===== */
.flex-live-preview {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 16px;
  animation: fadeIn 0.3s ease;
}

.flex-preview-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e8eaed;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2001;
}

.flex-preview-header h3 {
  font-size: 18px;
  font-weight: 400;
  color: #202124;
  margin: 0;
}

.flex-preview-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #5f6368;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.flex-preview-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.flex-preview-content {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 120px);
  margin-top: 64px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.flex-preview-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8f9fa;
  border-top: 1px solid #e8eaed;
  padding: 12px 24px;
  text-align: center;
}

.flex-preview-note {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
}

/* ===== Live Preview (Legacy) ===== */
.chrome-live-preview {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 16px;
  animation: fadeIn 0.3s ease;
}

.chrome-preview-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #dadce0;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2001;
}

.chrome-preview-header h3 {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin: 0;
}

.chrome-preview-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #5f6368;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.chrome-preview-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.chrome-preview-content {
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 120px);
  margin-top: 64px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.chrome-preview-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f8f9fa;
  border-top: 1px solid #dadce0;
  padding: 12px 24px;
  text-align: center;
}

.chrome-preview-note {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
}

/* ===== About Page ChromeOS Flex Style ===== */
.flex-about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: start;
}

.flex-about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.flex-about-text {
  max-width: 800px;
}

.flex-about-list {
  list-style: none;
  margin: 24px 0;
}

.flex-about-list li {
  padding: 16px 0;
  color: #5f6368;
  font-size: 16px;
  line-height: 1.6;
  border-bottom: 1px solid #f1f3f4;
}

.flex-about-list li:last-child {
  border-bottom: none;
}

.flex-about-list li strong {
  color: #202124;
  font-weight: 500;
}

/* ===== Success Page ChromeOS Flex Style ===== */
.flex-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  color: #34a853;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== About Page Chrome Style (Legacy) ===== */
.chrome-about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

.chrome-about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  flex-shrink: 0;
}

.chrome-about-text {
  max-width: 800px;
}

.chrome-about-list {
  list-style: none;
  margin: 16px 0;
}

.chrome-about-list li {
  padding: 12px 0;
  color: #5f6368;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid #f1f3f4;
}

.chrome-about-list li:last-child {
  border-bottom: none;
}

.chrome-about-list li strong {
  color: #202124;
  font-weight: 500;
}

/* ===== Success Page (Legacy) ===== */
.chrome-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  color: #34a853;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Consistent Animations ===== */
.chrome-card,
.chrome-category-card,
.chrome-card-detail {
  animation: fadeInUp 0.4s ease-out backwards;
}

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

.chrome-card:nth-child(1) { animation-delay: 0.1s; }
.chrome-card:nth-child(2) { animation-delay: 0.2s; }
.chrome-card:nth-child(3) { animation-delay: 0.3s; }
.chrome-card:nth-child(4) { animation-delay: 0.4s; }
.chrome-card:nth-child(5) { animation-delay: 0.5s; }
.chrome-card:nth-child(6) { animation-delay: 0.6s; }
.chrome-card:nth-child(n+7) { animation-delay: 0.7s; }

/* Responsive Product Page */
@media (max-width: 768px) {
  .chrome-product-detail {
    grid-template-columns: 1fr;
  }

  .chrome-product-actions {
    flex-direction: column;
  }

  .chrome-buy-btn,
  .chrome-preview-btn {
    width: 100%;
  }

  .chrome-about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .chrome-about-avatar {
    margin: 0 auto;
  }

  .chrome-preview-content {
    height: calc(100vh - 100px);
    margin-top: 56px;
  }
}

.section {
  margin-bottom: var(--spacing-xl);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(26, 42, 58, 0.4) 0%, rgba(42, 58, 74, 0.4) 100%);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 0.8s var(--ease-out-expo) 0.2s both;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.5;
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--bright-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(74, 158, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(74, 158, 255, 0.6));
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease-out-expo);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transform-origin: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bright-blue) 0%, var(--bright-blue-hover) 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3), 0 0 0 0 rgba(74, 158, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.5), 0 0 0 4px rgba(74, 158, 255, 0.2);
  background: linear-gradient(135deg, var(--bright-blue-hover) 0%, #6dc0ff 100%);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--teal) 0%, #00e6c4 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3), 0 0 0 0 rgba(0, 212, 170, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 212, 170, 0.5), 0 0 0 4px rgba(0, 212, 170, 0.2);
  background: linear-gradient(135deg, #00e6c4 0%, #00f8d4 100%);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--bright-blue);
  border: 2px solid var(--bright-blue);
  box-shadow: 0 0 0 0 rgba(74, 158, 255, 0);
}

.btn-outline:hover {
  background: rgba(74, 158, 255, 0.15);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.3), 0 0 0 2px rgba(74, 158, 255, 0.5);
  border-color: var(--bright-blue-hover);
}

.btn-outline:active {
  transform: translateY(-1px) scale(1);
}

.btn:focus {
  outline: 2px solid var(--bright-blue);
  outline-offset: 2px;
}

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  box-shadow: 0 8px 32px var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s var(--ease-out-expo);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeIn 0.6s var(--ease-out-expo) forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px var(--card-shadow), 0 0 30px var(--glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.3);
  background: rgba(26, 42, 58, 0.8);
}

.card:active {
  transform: translateY(-4px) scale(1.01);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bright-blue);
  margin: var(--spacing-sm) 0;
}

.card-tags {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-sm);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(74, 158, 255, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--bright-blue);
  transition: all 0.3s var(--ease-out-expo);
  border: 1px solid transparent;
}

.tag:hover {
  background: rgba(74, 158, 255, 0.3);
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(74, 158, 255, 0.5);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

/* ===== Grids ===== */
.grid {
  display: grid;
  gap: var(--spacing-md);
  grid-template-columns: 1fr;
}

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

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

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

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: rgba(26, 42, 58, 0.4);
  border-radius: var(--border-radius);
}

.filter-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  background: transparent;
  border: 2px solid rgba(74, 158, 255, 0.3);
  color: var(--text-secondary);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(74, 158, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.filter-btn:hover::before {
  width: 200%;
  height: 200%;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--bright-blue);
  border-color: var(--bright-blue);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.filter-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* ===== Product Detail Page ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  box-shadow: 0 8px 32px var(--card-shadow);
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.product-image:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 16px 48px var(--card-shadow), 0 0 40px var(--glow);
}

.product-image:hover::before {
  opacity: 1;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.breadcrumbs {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.breadcrumbs a {
  color: var(--bright-blue);
}

.breadcrumbs span {
  margin: 0 var(--spacing-xs);
}

.product-features {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.product-features li {
  padding: var(--spacing-xs) 0;
  color: var(--text-secondary);
  padding-left: var(--spacing-md);
  position: relative;
}

.product-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: bold;
}

/* ===== About Page ===== */
.about-hero {
  text-align: center;
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-xl);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--card-bg);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 4rem;
  box-shadow: 0 8px 32px var(--card-shadow);
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.about-list {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.about-list li {
  padding: var(--spacing-sm) 0;
  color: var(--text-secondary);
  padding-left: var(--spacing-md);
  position: relative;
}

.about-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--bright-blue);
  font-weight: bold;
}

/* ===== Footer ===== */
.footer {
  background: rgba(10, 22, 40, 0.95);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  color: var(--text-secondary);
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
  color: var(--bright-blue);
}

/* ===== Responsive Design ===== */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

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

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

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

  .product-detail {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 250px 1fr;
    align-items: start;
  }

  .about-avatar {
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: var(--spacing-lg);
  }

  .hero {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

@media (max-width: 767px) {
  .navbar {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  .navbar-links {
    gap: var(--spacing-sm);
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
    padding: 0 16px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 16px;
  }

  .hero-cta {
    flex-direction: column;
    padding: 0 16px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    padding: 14px 24px;
  }

  body {
    padding-top: 80px;
  }

  .container {
    padding: var(--spacing-sm);
  }

  h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

/* ===== Staggered Card Animations ===== */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }
.card:nth-child(10) { animation-delay: 1s; }
.card:nth-child(n+11) { animation-delay: 1.1s; }

/* ===== Smooth Scroll Indicator ===== */
html {
  scroll-padding-top: 80px;
}

/* ===== Loading State ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== Focus Visible (Accessibility) ===== */
*:focus-visible {
  outline: 2px solid var(--bright-blue);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline 0.2s ease;
}

/* ===== App Store Styles ===== */
.app-store-header {
  margin-bottom: var(--spacing-lg);
}

.app-store-header h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-xs);
}

.app-store-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* Search Container */
.search-container {
  margin: var(--spacing-md) 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  max-width: 600px;
  transition: all 0.3s var(--ease-out-expo);
  backdrop-filter: blur(10px);
}

.search-box:focus-within {
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2), 0 8px 32px var(--card-shadow);
  transform: translateY(-2px);
}

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

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

/* Categories Navigation */
.categories-nav {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-sm) 0;
}

.categories-scroll {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--ease-out-expo);
  font-size: 0.95rem;
}

.category-btn:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.category-btn.active {
  background: var(--bright-blue);
  border-color: var(--bright-blue);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.see-all-link {
  color: var(--bright-blue);
  font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
  font-size: 0.95rem;
}

.see-all-link:hover {
  color: var(--bright-blue-hover);
  transform: translateX(3px);
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

/* App Card */
.app-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bright-blue), var(--teal));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--card-shadow), 0 0 30px var(--glow-strong);
  border-color: rgba(74, 158, 255, 0.3);
}

.app-card:hover::before {
  transform: scaleX(1);
}

.app-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
}

.app-card.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.05) 0%, rgba(0, 212, 170, 0.05) 100%);
  border: 2px dashed rgba(74, 158, 255, 0.3);
}

.app-card.empty-state:hover {
  border-color: rgba(74, 158, 255, 0.5);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bright-blue), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
  transition: all 0.3s var(--ease-out-expo);
}

.app-card:hover .app-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.5);
}

.app-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--bright-blue), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto var(--spacing-md);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.4);
}

.app-info {
  flex: 1;
}

.app-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.app-category {
  font-size: 0.85rem;
  color: var(--bright-blue);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.app-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
  flex: 1;
}

.app-meta {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.app-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--teal);
  color: var(--text-primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-get {
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--bright-blue);
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius-small);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  font-size: 0.95rem;
}

.btn-get:hover:not(:disabled) {
  background: var(--bright-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.btn-get:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.app-features {
  text-align: left;
  max-width: 600px;
  margin: var(--spacing-md) auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--teal);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--ease-out-expo);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--card-shadow), 0 0 30px var(--glow);
  border-color: rgba(74, 158, 255, 0.3);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  filter: drop-shadow(0 4px 8px rgba(74, 158, 255, 0.3));
  transition: all 0.3s var(--ease-out-expo);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

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

/* ===== App Store Large Cards (Apple Style) ===== */
.app-store-hero {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

/* Masonry Grid Layout */
.app-grid-large {
  column-count: 3;
  column-gap: var(--spacing-lg);
  column-fill: balance;
}

@media (max-width: 1024px) {
  .app-grid-large {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .app-grid-large {
    column-count: 1;
  }
}

.app-card-large {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s var(--ease-out-expo);
  backdrop-filter: blur(10px);
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: var(--spacing-lg);
  page-break-inside: avoid;
  position: relative;
  overflow: hidden;
  vertical-align: top;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

a.app-card-large {
  cursor: pointer;
}

.app-card-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bright-blue), var(--teal), var(--orange));
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out-expo);
}

.app-card-large:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px var(--card-shadow), 0 0 40px var(--glow-strong);
  border-color: rgba(74, 158, 255, 0.4);
  background: rgba(26, 42, 58, 0.8);
}

.app-card-large:hover::before {
  transform: scaleX(1);
}

.app-icon-large {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--bright-blue), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.4);
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.app-icon-large::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.app-card-large:hover .app-icon-large {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 40px rgba(74, 158, 255, 0.6);
}

.app-card-large:hover .app-icon-large::before {
  opacity: 1;
}

.app-info-large {
  width: 100%;
}

.app-name-large {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.app-category-large {
  font-size: 0.9rem;
  color: var(--bright-blue);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-description-large {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  min-height: 3rem;
}

.app-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bright-blue);
  margin-bottom: var(--spacing-sm);
}

.btn-get-large {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, var(--bright-blue), var(--bright-blue-hover));
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius-small);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.btn-get-large:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--bright-blue-hover), #6dc0ff);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.5);
}

.btn-get-large:active:not(:disabled) {
  transform: translateY(0);
}

.btn-get-large:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(74, 158, 255, 0.3);
}

/* Prevent button clicks from triggering parent link */
a.app-card-large .btn-get-large {
  pointer-events: none;
}

/* ===== Category Card Large (3D Models) ===== */
.category-card-large {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(0, 212, 170, 0.15) 100%);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  border: 2px solid rgba(74, 158, 255, 0.3);
  transition: all 0.5s var(--ease-out-expo);
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.category-card-large::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.category-card-large:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px var(--card-shadow), 0 0 50px var(--glow-strong);
  border-color: rgba(74, 158, 255, 0.6);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.25) 0%, rgba(0, 212, 170, 0.25) 100%);
}

.category-card-large:hover::before {
  opacity: 1;
}

.category-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 1;
}

.category-icon-large {
  font-size: 5rem;
  filter: drop-shadow(0 8px 16px rgba(74, 158, 255, 0.4));
  transition: all 0.5s var(--ease-out-expo);
}

.category-card-large:hover .category-icon-large {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 12px 24px rgba(74, 158, 255, 0.6));
}

.category-text {
  flex: 1;
}

.category-title-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--bright-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-description-large {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.category-arrow {
  font-size: 2.5rem;
  color: var(--bright-blue);
  transition: all 0.4s var(--ease-out-expo);
  margin-left: var(--spacing-md);
}

.category-card-large:hover .category-arrow {
  transform: translateX(10px);
  color: var(--bright-blue-hover);
}

/* Responsive Chrome Web Store */
@media (max-width: 768px) {
  .chrome-navbar {
    padding: 8px 12px;
    gap: 8px;
  }

  .chrome-logo {
    font-size: 16px;
  }

  .chrome-search-container {
    padding: 6px 12px;
  }

  .chrome-search-input {
    font-size: 13px;
  }

  .chrome-search-input::placeholder {
    font-size: 13px;
  }

  .chrome-hero {
    padding: 32px 16px;
  }

  .chrome-hero-title {
    font-size: 24px;
  }

  .chrome-hero-subtitle {
    font-size: 14px;
  }

  .chrome-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .chrome-card {
    padding: 12px;
  }

  .chrome-card-icon {
    width: 48px;
    height: 48px;
    padding: 8px;
  }
  
  .chrome-card-icon svg {
    width: 100%;
    height: 100%;
  }

  .chrome-card-title {
    font-size: 14px;
  }

  .chrome-card-description {
    font-size: 12px;
  }

  .chrome-categories {
    gap: 12px;
  }

  .chrome-category-card {
    min-width: 80px;
    padding: 12px;
  }

  .chrome-category-icon {
    width: 24px;
    height: 24px;
  }
  
  .chrome-category-icon svg {
    width: 100%;
    height: 100%;
  }

  .chrome-category-name {
    font-size: 12px;
  }

  .chrome-main {
    padding: 16px 12px;
  }
}

/* Responsive ChromeOS Flex */
@media (max-width: 768px) {
  .flex-navbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    position: relative;
    min-height: 60px;
    align-items: center;
  }

  .flex-nav-left {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
  }

  .flex-logo-text {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  .flex-logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .flex-nav-center {
    order: 3;
    width: 100%;
    margin-top: 12px;
    display: none !important; /* Hidden by default on mobile */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
  }

  .flex-nav-center.mobile-open {
    display: block !important;
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
    padding-top: 0;
  }

  .flex-nav-menu {
    gap: 0;
    justify-content: flex-start;
    flex-direction: column;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0;
  }

  .flex-nav-item {
    font-size: 15px;
    padding: 14px 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px; /* Better touch target */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
  }

  .flex-nav-item:last-child {
    border-bottom: none;
  }

  .flex-nav-item:active {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Mobile menu action buttons */
  .flex-nav-center.mobile-open .flex-nav-menu::after {
    content: '';
    display: block;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 0;
  }

  .flex-nav-center.mobile-open .flex-nav-menu .flex-mobile-action-btn {
    display: flex;
    width: 100%;
    margin-top: 8px;
    gap: 12px;
  }

  .flex-mobile-action-btn {
    display: none;
  }

  .flex-mobile-action-btn .flex-btn-outline,
  .flex-mobile-action-btn .flex-btn-primary {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }

  .flex-nav-right {
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    display: flex;
  }

  /* Hide nav buttons on very small screens, show only menu toggle */
  @media (max-width: 480px) {
    .flex-nav-right .flex-btn-outline,
    .flex-nav-right .flex-btn-primary {
      display: none !important;
    }
  }

  .flex-btn-outline,
  .flex-btn-primary {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px; /* Better touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* Mobile menu toggle button - show on mobile */
  .flex-mobile-menu-toggle {
    display: flex !important; /* Force display on mobile */
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }

  .flex-mobile-menu-toggle:hover,
  .flex-mobile-menu-toggle:focus {
    background: #f1f3f4;
    color: #202124;
    outline: none;
  }

  .flex-mobile-menu-toggle:active {
    background: #e8eaed;
  }

  .flex-mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
  }

  .flex-nav-center.mobile-open {
    animation: slideDown 0.3s ease-out;
  }

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

  .flex-hero {
    padding: 32px 0 48px;
  }

  .flex-hero-title {
    font-size: 28px;
    line-height: 1.3;
    padding: 0 8px;
  }

  .flex-hero-description {
    font-size: 15px;
    padding: 0 8px;
    line-height: 1.5;
  }

  .flex-logo-text-large {
    font-size: 24px;
  }

  .flex-logo-icon-large {
    width: 64px;
    height: 64px;
  }

  .flex-section {
    padding: 0 16px;
    margin-bottom: 48px;
  }

  .flex-section-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .flex-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .flex-link {
    font-size: 15px;
  }

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

  .flex-card {
    padding: 20px;
  }

  .flex-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  .flex-card-title {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .flex-card-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .flex-card-button {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 44px;
  }

  .flex-product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flex-product-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .flex-product-price {
    font-size: 24px;
  }

  .flex-product-description {
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .flex-product-actions {
    flex-direction: column;
    gap: 12px;
  }

  .flex-buy-btn,
  .flex-preview-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    min-height: 48px;
  }

  .flex-about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .flex-about-avatar {
    margin: 0 auto;
    width: 160px;
    height: 160px;
  }

  .flex-about-text {
    text-align: left;
  }

  .flex-card-detail {
    padding: 24px 20px;
  }

  .flex-about-list li {
    font-size: 15px;
    padding: 14px 0;
  }

  .flex-main {
    padding: 0 16px;
  }

  .flex-cta-button {
    padding: 14px 28px;
    font-size: 16px;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
  }

  body {
    padding-top: 80px;
  }

  .footer {
    padding: 32px 16px;
    font-size: 13px;
  }

  .footer p {
    margin-bottom: 12px;
  }

  .flex-breadcrumbs {
    font-size: 13px;
    margin-bottom: 24px;
    padding: 8px 0;
    word-break: break-word;
  }

  /* Very small screens */
  @media (max-width: 480px) {
    .flex-navbar {
      padding: 10px 12px;
    }

    .flex-logo-text {
      font-size: 14px;
      max-width: 120px;
    }

    .flex-logo-icon {
      width: 24px;
      height: 24px;
    }

    .flex-hero-title {
      font-size: 24px;
    }

    .flex-hero-description {
      font-size: 14px;
    }

    .flex-section-title {
      font-size: 22px;
    }

    .flex-card {
      padding: 16px;
    }

    .flex-product-title {
      font-size: 24px;
    }

    .flex-product-price {
      font-size: 22px;
    }

    .flex-main {
      padding: 0 12px;
    }

    .flex-section {
      padding: 0 12px;
    }

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

    .flex-mobile-menu-toggle {
      min-width: 40px;
      min-height: 40px;
      padding: 6px;
    }

    .flex-mobile-menu-toggle svg {
      width: 20px;
      height: 20px;
    }
  }

  /* Landscape orientation on mobile */
  @media (max-width: 768px) and (orientation: landscape) {
    .flex-hero {
      padding: 24px 0 32px;
    }

    .flex-hero-title {
      font-size: 26px;
    }
  }
}

/* ===== Smooth Page Transitions ===== */
a[href^="/"],
a[href^="./"],
a[href^="../"] {
  transition: all 0.3s var(--ease-out-expo);
}

/* ===== Enhanced Product Features ===== */
.product-features li {
  transition: all 0.3s var(--ease-out-expo);
  transform: translateX(0);
}

.product-features li:hover {
  transform: translateX(5px);
  color: var(--text-primary);
}

/* ===== Breadcrumb Hover ===== */
.breadcrumbs a {
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.breadcrumbs a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bright-blue);
  transition: width 0.3s var(--ease-out-expo);
}

.breadcrumbs a:hover::after {
  width: 100%;
}

/* ===== Section Title Animations ===== */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--bright-blue), transparent);
  transition: width 0.6s var(--ease-out-expo);
}

.section:hover .section-title::after {
  width: 80%;
}

/* ===== Smooth Image Loading ===== */
img {
  transition: opacity 0.4s var(--ease-out-expo);
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ===== Enhanced Footer ===== */
.footer {
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bright-blue), transparent);
  opacity: 0.5;
}

.footer:hover {
  background: rgba(10, 22, 40, 0.98);
}

.footer a {
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.footer a:hover {
  text-shadow: 0 0 10px rgba(74, 158, 255, 0.8);
  transform: translateY(-1px);
}

/* ===== Scroll Progress Indicator (Optional) ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--bright-blue), var(--teal));
  z-index: 1001;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

/* ===== EMAIL COLLECTION MODAL ===== */
.flex-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.flex-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.flex-modal-header {
  padding: 24px;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-modal-header h2 {
  font-size: 24px;
  font-weight: 500;
  color: #202124;
  margin: 0;
}

.flex-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #5f6368;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.flex-modal-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.flex-modal-body {
  padding: 24px;
}

.flex-modal-text {
  color: #5f6368;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.flex-email-form {
  display: block;
}

.flex-form-group {
  margin-bottom: 20px;
}

.flex-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
}

.flex-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.flex-form-group input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.flex-input-readonly {
  background: #f8f9fa;
  color: #5f6368;
  cursor: not-allowed;
}

.flex-form-hint {
  display: block;
  font-size: 12px;
  color: #5f6368;
  margin-top: 6px;
}

.flex-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.flex-form-success {
  text-align: center;
  padding: 32px 24px;
}

.flex-form-success svg {
  color: #34a853;
  margin-bottom: 16px;
}

.flex-form-success h3 {
  font-size: 20px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px;
}

.flex-form-success p {
  color: #5f6368;
  font-size: 16px;
  line-height: 1.5;
}

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

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

/* ===== DONATION POPUP ===== */
.donation-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid #e8eaed;
}

.donation-popup-visible {
  transform: translateY(0);
  opacity: 1;
}

.donation-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #5f6368;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.donation-popup-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.donation-popup-content {
  padding: 24px;
}

.donation-title {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.donation-text {
  font-size: 14px;
  color: #5f6368;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.donation-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1a73e8, #0a1628);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.donation-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.donation-button svg {
  width: 16px;
  height: 16px;
}

.donation-footer {
  font-size: 12px;
  color: #5f6368;
  margin: 16px 0 0 0;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .donation-popup {
    width: calc(100% - 32px);
    right: 16px;
    left: 16px;
    max-width: none;
    bottom: 16px;
  }
  
  .donation-popup-content {
    padding: 20px;
  }

  .donation-title {
    font-size: 16px;
  }

  .donation-text {
    font-size: 13px;
  }

  .donation-button {
    padding: 14px 20px;
    font-size: 15px;
    min-height: 48px;
  }
  
  .flex-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .flex-modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
  }

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

  .flex-modal-header h2 {
    font-size: 20px;
  }

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

  .flex-modal-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .flex-form-group input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
    min-height: 48px;
  }

  .flex-form-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .flex-form-actions button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    min-height: 48px;
  }

  .flex-preview-content {
    height: calc(100vh - 80px);
    margin-top: 56px;
    border-radius: 0;
  }

  .flex-preview-header {
    padding: 12px 16px;
  }

  .flex-preview-header h3 {
    font-size: 16px;
  }

  .flex-preview-close {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .flex-live-preview {
    padding: 56px 0 0 0;
  }
}

