/* ============================================================
   SMART PACKAGING PLATFORM — DESIGN SYSTEM
   Premium dark theme with amber/orange accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  /* Primary palette — Warm amber/orange */
  --primary: #f59e0b;
  --primary-light: #fbbf24;
  --primary-dark: #d97706;
  --primary-glow: rgba(245, 158, 11, 0.25);
  --primary-subtle: rgba(245, 158, 11, 0.08);

  /* Accent */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.2);

  /* Success/Error */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Dark backgrounds */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a40;
  --bg-input: #0f1724;
  --bg-elevated: #1e2a3d;

  /* Glass */
  --glass-bg: rgba(26, 34, 53, 0.7);
  --glass-border: rgba(245, 158, 11, 0.12);
  --glass-border-hover: rgba(245, 158, 11, 0.3);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #fbbf24;

  /* Borders */
  --border: rgba(148, 163, 184, 0.1);
  --border-light: rgba(148, 163, 184, 0.06);

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--primary-glow);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Utility Classes ── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.section-padding {
  padding: 100px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

/* ── Background Patterns ── */
.bg-grid {
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-radial {
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-subtle);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease);
}

.card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s var(--ease);
}

.card-glass:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow);
}

/* ── Input Fields ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
}

.nav.scrolled {
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s var(--ease);
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
}

/* Legacy logo-icon (kept for compatibility) */
.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-logo span {
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--primary-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.2s var(--ease);
}

.cart-btn:hover {
  border-color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge:empty {
  display: none;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite reverse;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s var(--ease);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s var(--ease) 0.1s both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  animation: fadeInUp 0.6s var(--ease) 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s var(--ease) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.6s var(--ease) 0.4s both;
}

.hero-stat h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s var(--ease) 0.5s both;
}

.hero-box-3d {
  width: 360px;
  height: 360px;
  position: relative;
  perspective: 1000px;
}

.box-cube {
  width: 200px;
  height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  animation: rotateCube 15s linear infinite;
  transform: translate(-50%, -50%) rotateX(-20deg) rotateY(30deg);
}

.box-face {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid var(--primary);
  background: rgba(245, 158, 11, 0.05);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.box-face.front {
  transform: translateZ(100px);
}

.box-face.back {
  transform: rotateY(180deg) translateZ(100px);
}

.box-face.right {
  transform: rotateY(90deg) translateZ(100px);
}

.box-face.left {
  transform: rotateY(-90deg) translateZ(100px);
}

.box-face.top {
  transform: rotateX(90deg) translateZ(100px);
}

.box-face.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

.hero-floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  padding: 12px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-secondary);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.floating-card .fc-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-light);
}

.floating-card:nth-child(1) {
  top: 10%;
  right: 0;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  bottom: 25%;
  left: 0;
  animation-delay: 1s;
}

.floating-card:nth-child(3) {
  top: 40%;
  right: -30px;
  animation-delay: 2s;
}

/* ── Tool Widget (Homepage) ── */
.tool-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.tool-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.tool-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.tool-widget-header .tw-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.tool-widget-header h3 {
  font-size: 1.2rem;
}

.tool-widget-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.tool-result {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: none;
}

.tool-result.active {
  display: block;
  animation: slideUp 0.4s var(--ease);
}

.tool-result h4 {
  font-size: 1rem;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--text-secondary);
}

.result-value {
  font-weight: 600;
  color: var(--text-primary);
}

.result-highlight {
  color: var(--primary-light);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ── Categories Grid ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.category-card {
  cursor: pointer;
  text-align: center;
  padding: 32px 20px;
}

.category-card .cat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.3s var(--ease-spring);
}

.category-card:hover .cat-icon {
  transform: scale(1.15);
}

.category-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Tools Section ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tool-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.tool-card .tool-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(245, 158, 11, 0.06);
  font-family: var(--font-heading);
}

.tool-card .tool-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.tool-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ── Testimonials ── */
.testimonials-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0 20px;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 360px;
  scroll-snap-align: start;
  padding: 28px;
  flex-shrink: 0;
}

.testimonial-card .tc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.testimonial-card .tc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.testimonial-card .tc-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card .tc-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-card .tc-stars {
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.testimonial-card .tc-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Articles ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  overflow: hidden;
  padding: 0;
}

.article-card .ac-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.article-card .ac-body {
  padding: 20px;
}

.article-card .ac-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.article-card .ac-title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.article-card .ac-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.article-card .ac-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(59, 130, 246, 0.05));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow), transparent 60%);
  animation: rotate 20s linear infinite;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-section .cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── Footer ── */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .fb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-brand .fb-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Page Layout ── */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.page.active {
  display: block;
  animation: fadeIn 0.4s var(--ease);
}

.page-header {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Catalog Page ── */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.filter-chip {
  padding: 8px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.product-card .pc-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.product-card .pc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
}

.product-card .pc-body {
  padding: 20px;
}

.product-card .pc-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card .pc-size {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card .pc-material {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-card .pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card .pc-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-light);
}

.product-card .pc-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Product Detail ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.pd-image {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
}

.pd-info h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.pd-info .pd-sku {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pd-info .pd-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.pd-specs {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.pd-specs .spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.pd-specs .spec-row:last-child {
  border-bottom: none;
}

.pd-specs .spec-label {
  color: var(--text-secondary);
}

.pd-specs .spec-value {
  font-weight: 600;
}

.pd-quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control button {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-control button:hover {
  background: var(--primary-subtle);
}

.qty-control input {
  width: 60px;
  height: 40px;
  border: none;
  background: var(--bg-input);
  color: var(--text-primary);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Dashboard ── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px 0;
  min-height: calc(100vh - var(--nav-height));
}

.dash-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.dash-user {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.dash-user .du-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  background: var(--primary-subtle);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.dash-user .du-name {
  font-weight: 600;
  font-size: 1rem;
}

.dash-user .du-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: all 0.2s;
}

.dash-nav a:hover,
.dash-nav a.active {
  background: var(--primary-subtle);
  color: var(--primary-light);
}

.dash-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.dash-content h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

/* ── Order Table ── */
.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.order-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.order-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.order-status.processing {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-light);
}

.order-status.shipped {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-light);
}

.order-status.delivered {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

/* ── Checkout ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  padding: 32px 0;
}

.checkout-form h3,
.checkout-summary h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item .ci-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cart-item .ci-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item .ci-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item .ci-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-left: auto;
  align-self: center;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-total .st-amount {
  color: var(--primary-light);
}

/* ── Auth Page ── */
.auth-container {
  max-width: 440px;
  margin: 60px auto;
  padding: 0 24px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
}

.auth-card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.auth-tabs {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--primary);
  color: #000;
}

/* ── Admin Panel ── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-height));
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.admin-sidebar h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding: 0 8px;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  transition: all 0.2s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--primary-subtle);
  color: var(--primary-light);
}

.admin-content {
  padding: 32px;
}

.admin-content h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.admin-stat-card .as-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.admin-stat-card .as-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.admin-stat-card .as-change {
  font-size: 0.8rem;
  color: var(--success);
  margin-top: 4px;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s var(--ease);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.2rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

/* ── Cart Sidebar ── */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 10001;
  transition: right 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-sidebar-footer .csf-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.cart-sidebar-footer .csf-total span:last-child {
  color: var(--primary-light);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
}

.cart-overlay.open {
  display: block;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state .es-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Toast Notification ── */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 24px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.3s var(--ease);
  box-shadow: var(--shadow);
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--error);
}

.toast.info {
  border-left: 3px solid var(--info);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

.breadcrumb .bc-sep {
  color: var(--text-muted);
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  color: #000;
}

/* ── Keyframes ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes rotateCube {
  from {
    transform: translate(-50%, -50%) rotateX(-20deg) rotateY(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateX(-20deg) rotateY(360deg);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-subtle);
  color: var(--primary-light);
  border: 1px solid var(--glass-border);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* ── Packaging Profile Card ── */
.profile-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-card .pc-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.profile-card .pc-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-card .pc-actions {
  display: flex;
  gap: 8px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-card-hover);
}

/* ── Article Detail ── */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-detail h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.article-detail .ad-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.article-detail .ad-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
  color: var(--primary-light);
}

.article-detail .ad-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
}

.article-detail .ad-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.article-detail .ad-content ul,
.article-detail .ad-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-detail .ad-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  list-style: disc;
  line-height: 1.6;
}

.article-detail .ad-content ol li {
  list-style: decimal;
}

.article-detail .ad-content strong {
  color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-desc {
    margin: 0 auto 32px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .dash-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 16px;
  }
  
  .dash-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .dash-nav a {
    flex: 1 1 auto;
    text-align: center;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .dash-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary);
  }

  .admin-layout {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
  }

  .admin-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .admin-sidebar h3 {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .admin-sidebar a {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
  }

  .admin-sidebar a.active {
    background: var(--primary);
    color: #000;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    animation: slideUp 0.3s var(--ease);
  }

  .nav-links.mobile-open a {
    padding: 12px 16px;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .testimonial-card {
    min-width: 300px;
  }

  .hero-stats {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 40px 24px;
  }

  .catalog-filters {
    flex-direction: column;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .pd-image {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Invoice Modal Styles ── */
.invoice-modal {
  max-width: 600px;
}

.invoice-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}

.invoice-header h2 {
  font-size: 1.5rem;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.invoice-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.invoice-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.invoice-details div span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.invoice-details div strong {
  display: block;
  color: var(--text-primary);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.invoice-table th, .invoice-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.invoice-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.invoice-table .amount {
  text-align: right;
}

.invoice-summary {
  margin-left: auto;
  width: 250px;
}

.invoice-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.invoice-summary .summary-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.1rem;
}

.invoice-payment-info {
  margin-top: 32px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.invoice-payment-info h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary-light);
}

.invoice-payment-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  
  #invoiceModal, #invoiceModal * {
    visibility: visible;
  }
  
  #invoiceModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: white;
    color: black;
    box-shadow: none;
    border: none;
  }
  
  #invoiceModal {
    --bg-card: white;
    --bg-elevated: #f8f9fa;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --primary-light: #d97706; /* Darker for print */
    --border: #e5e7eb;
    --border-light: #f3f4f6;
  }

  .modal-close, .modal-footer {
    display: none !important;
  }
}