/* SketchyOrlov styles: Tailwind overrides and custom components */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
}

:root {
  /* Light theme (default) */
  --so-bg: #ffffff;
  --so-ink: #0b1020;
  --so-muted: #6b7280;
  --so-primary: #0f172a;
  --so-accent: #111827;
  --so-brand: #0b1020;
  --so-cta: #0b1020;
  --so-ring: rgba(2, 6, 23, 0.15);

  /* Design system variables */
  --font-size: 16px;
  --background: var(--so-bg);
  --foreground: var(--so-ink);
  --card: #ffffff;
  --card-foreground: var(--so-ink);
  --popover: #ffffff;
  --popover-foreground: var(--so-ink);
  --primary: var(--so-primary);
  --primary-foreground: #ffffff;
  --secondary: #ececf0;
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: #e5e7eb;
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: rgba(2,6,23,.15);
  --radius: .625rem;
  --spacing: .25rem;
  --leading-tight: 1.25;
  
  /* Font families */
  --font-family-default: "Inter", ui-sans-serif, system-ui, -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "Noto Sans", sans-serif, "SFProLocalRange";
  --font-family-display: "Whyte", ui-sans-serif, system-ui, -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", "Noto Sans", sans-serif;
  --font-family-mono: "Roboto Mono", "Monaco", "Courier New", monospace;
  
  /* Warning colors */
  --warning-bg: #fef3c7;
  --warning-border: #fde68a;
  --warning-icon: #d97706;
  --warning-text: #92400e;
  --warning-text-secondary: #b45309;
}

/* Dark theme */
[data-theme="dark"] {
  --so-bg: #0f172a;
  --so-ink: #f1f5f9;
  --so-muted: #94a3b8;
  --so-primary: #e2e8f0;
  --so-accent: #cbd5e1;
  --so-brand: #f1f5f9;
  --so-cta: #3b82f6;
  --so-ring: rgba(241, 245, 249, 0.15);
  
  --background: var(--so-bg);
  --foreground: var(--so-ink);
  --card: #1e293b;
  --card-foreground: var(--so-ink);
  --popover: #1e293b;
  --popover-foreground: var(--so-ink);
  --primary: var(--so-primary);
  --primary-foreground: #0f172a;
  --secondary: #1e293b;
  --secondary-foreground: #f1f5f9;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #334155;
  --accent-foreground: #f1f5f9;
  --border: #334155;
  --input-background: #1e293b;
  --shadow-color: rgba(0, 0, 0, 0.5);
  
  /* Warning colors for dark mode */
  --warning-bg: #422006;
  --warning-border: #78350f;
  --warning-icon: #fbbf24;
  --warning-text: #fef3c7;
  --warning-text-secondary: #fde68a;
}

/* Global dark mode text improvements */
[data-theme="dark"] .text-gray-600 {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .text-gray-700 {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .text-gray-500 {
  color: #94a3b8 !important;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html {
  font-size: var(--font-size);
  font-family: var(--font-family-default);
}
body {
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin: 0;
  font-size: 1rem;
  overflow-x: hidden;
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll { overflow: hidden; }

/* Page load animation */
body {
  animation: pageLoad 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: backwards;
}

/* Prevent flash of unstyled content */
.hero > * {
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero > *:nth-child(2) {
  animation-delay: 0.3s;
}

.hero > *:nth-child(3) {
  animation-delay: 0.4s;
}

/* Utility classes using spacing scale */
.pt-20 { padding-top: calc(var(--spacing) * 20); }
.pb-16 { padding-bottom: calc(var(--spacing) * 16); }
.pb-12 { padding-bottom: calc(var(--spacing) * 12); }
.px-6 { padding-left: calc(var(--spacing) * 6); padding-right: calc(var(--spacing) * 6); }

/* Gradient helpers from design system (optional) */
.bg-gradient-to-br {
  --tw-gradient-position: to bottom right;
  background-image: linear-gradient(var(--tw-gradient-stops));
}
.from-background { --tw-gradient-from: var(--background); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-secondary\/20 { --tw-gradient-to: var(--secondary); }

/* Typography helpers */
 .display-title { font-family: var(--font-family-display); letter-spacing: -0.02em; }
.shadow-soft { box-shadow: 0 6px 30px var(--shadow-color); }

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--muted);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--foreground);
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

/* Hide/show icons based on theme */
[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon,
:root:not([data-theme]) .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon,
:root:not([data-theme]) .moon-icon {
  display: block;
}

/* Consistent heading sizes */
h1, h2, h3, h4, h5, h6 { 
  font-weight: 600; 
  line-height: 1.2; 
}

/* Form elements consistency */
input, select, textarea {
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: var(--input-background);
  color: var(--foreground);
  border-color: var(--border);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* Select dropdown styling */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: var(--input-background);
  color: var(--foreground);
}

select:hover {
  border-color: var(--muted-foreground);
}

/* Style for dropdown options - Note: Limited browser support for styling options */
select option {
  padding: 10px 12px;
  background-color: var(--card);
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 6px;
  margin: 2px 4px;
}

[data-theme="dark"] select option {
  background-color: var(--input-background);
  color: var(--foreground);
}

select option:first-child {
  color: var(--muted-foreground);
  opacity: 0.8;
}

select option:checked,
select option:hover {
  background: var(--so-cta) !important;
  background-color: var(--so-cta) !important;
  color: white !important;
  border-radius: 6px;
  font-weight: 500;
}

[data-theme="dark"] select option:checked,
[data-theme="dark"] select option:hover {
  background: #2563eb !important;
  background-color: #2563eb !important;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--so-primary) !important;
  box-shadow: 0 0 0 3px rgba(11,16,32,0.1);
  transform: translateY(-1px);
}

input[type="checkbox"], input[type="radio"] {
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="checkbox"]:hover, input[type="radio"]:hover {
  transform: scale(1.1);
}

label {
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

label:has(input:focus) {
  color: var(--so-primary);
}

/* Keyframe animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16,185,129,.7);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16,185,129,0);
    opacity: 0.8;
  }
}

@keyframes pulse-glow-orange {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245,158,11,.7);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245,158,11,0);
    opacity: 0.8;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageLoad {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Banner */
.top-banner {
  background: var(--so-cta);
  color: white;
  height: 40px;
  display: none; /* Hidden by default until settings load */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1002;
}

.top-banner > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1300px;
  flex-wrap: wrap;
  gap: 0.25rem;
}

[data-theme="dark"] .top-banner {
  background: var(--so-cta);
}

.top-banner.hidden-banner {
  display: none;
}

.banner-text {
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
}

.banner-link {
  transition: opacity 0.2s ease;
  text-decoration: none;
  font-weight: 600;
}

.banner-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .top-banner {
    height: auto;
    min-height: 40px;
    padding: 0.5rem 0.5rem;
  }
  
  .top-banner > div {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  
  .banner-text {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  
  .banner-link {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

.banner-close {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 4px;
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.banner-close svg {
  color: white;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Navbar */
.so-nav { 
  backdrop-filter: saturate(180%) blur(8px); 
  background: var(--background);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  position: sticky;
  z-index: 1001;
  top: 40px;
  left: 0;
  right: 0;
}

/* When banner is visible, navbar sticks below it */
.top-banner + .so-nav {
  top: 40px;
}

/* When banner is hidden, navbar sticks to top */
.top-banner.hidden-banner + .so-nav,
body:not(:has(.top-banner)) .so-nav {
  top: 0;
}

/* Solid background when mobile menu is open */
.so-nav.menu-open {
  background: var(--background);
  box-shadow: 0 2px 10px var(--shadow-color);
}
.so-nav a:not(.btn) { 
  font-size: 1rem; 
  font-weight: 500;
  color: var(--foreground);
}
.so-nav .font-medium.text-xl { 
  font-size: 1.25rem; 
  font-weight: 600;
  color: var(--foreground);
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
  color: inherit;
}
.nav-link:hover {
  color: var(--so-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--so-primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-dropdown {
  position: fixed;
  top: 64px; /* below navbar */
  left: 0;
  right: 0;
  height: calc(100vh - 64px);
  animation: slideDown 0.2s ease;
  border-top: none;
  background: var(--background);
  box-shadow: none;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--foreground);
  transition: all 0.2s ease;
  font-weight: 500;
}
.mobile-nav-link:hover {
  background: var(--accent);
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
}

.so-badge { 
  display: inline-flex; 
  align-items: center; 
  gap: .5rem; 
  padding: .5rem .75rem; 
  border-radius: .75rem; 
  background: var(--card); 
  border: 1px solid var(--border); 
  box-shadow: 0 4px 16px var(--shadow-color); 
}
.so-dot { 
  width: 10px; 
  height: 10px; 
  border-radius: 999px; 
  background: #10b981; 
  animation: pulse-glow 2s ease-in-out infinite; 
}
/* Unavailable state - only change dot color */
.so-badge.unavailable .so-dot {
  background: #f59e0b;
  animation: pulse-glow-orange 2s ease-in-out infinite;
}

/* Buttons */
.btn { 
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  gap:.5rem; 
  border-radius:.75rem; 
  padding:.6rem 1.1rem; 
  font-weight:600; 
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}
.btn-primary { background: var(--so-cta); color: #fff; }
.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-color);
}
.btn-muted { background: var(--muted); color: var(--muted-foreground); }
.btn-muted:hover { 
  background: var(--accent);
  transform: translateY(-2px);
}

/* Process Number Circles */
.process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--so-cta);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Pills */
.pill { 
  border: 1px solid var(--border); 
  color: var(--foreground); 
  padding: .4rem .8rem; 
  border-radius: 999px; 
  font-weight: 600; 
  font-size: .85rem; 
  background: var(--card);
  transition: all 0.3s ease;
  cursor: pointer;
}
.pill:hover {
  background:#f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2,6,23,0.1);
}
.pill.is-active { 
  background:#111827; 
  color:#fff; 
  border-color:#111827;
  transform: scale(1.05);
}

[data-theme="dark"] .pill:hover {
  background: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Card */
.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 1rem; 
  overflow: hidden; 
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-color);
}
.card-body { padding: 1rem; }

/* Portfolio card text visibility in dark mode */
[data-theme="dark"] .card-body .text-gray-600 {
  color: #cbd5e1;
}

[data-theme="dark"] .card-body h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .card-body p {
  color: #cbd5e1;
}

.tag { 
  font-size: .75rem; 
  background: var(--secondary); 
  color: var(--secondary-foreground); 
  border-radius: 999px; 
  padding: .25rem .5rem; 
  border:1px solid var(--border);
  transition: all 0.2s ease;
}
.tag:hover {
  background: var(--accent);
  transform: scale(1.05);
  border-color: var(--accent-foreground);
}

/* Dark mode tag improvements */
[data-theme="dark"] .tag {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

[data-theme="dark"] .tag:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: #475569;
}

.price { font-weight:700; }

/* Dropzone */
.dropzone { 
  border: 2px dashed var(--border); 
  border-radius: 1rem; 
  background: var(--input-background); 
  padding: 2rem; 
  text-align: center; 
  transition: all .3s ease;
  cursor: pointer;
}

/* Dark mode dropzone text */
[data-theme="dark"] .dropzone {
  color: var(--foreground);
}

[data-theme="dark"] .dropzone .text-gray-700 {
  color: #e2e8f0 !important;
}

.dropzone:hover {
  border-color: var(--muted-foreground);
  background: var(--muted);
  transform: scale(1.02);
}
.dropzone.dragover { 
  border-color: var(--primary); 
  background: var(--accent);
  box-shadow: 0 0 20px var(--shadow-color);
}
.dropzone .hint { color: var(--muted-foreground); font-size: .9rem; }
.file-list { display:flex; flex-wrap:wrap; gap:.5rem; margin-top: .75rem; }
.file-chip { 
  border:1px solid var(--border); 
  border-radius:999px; 
  padding:.35rem .75rem; 
  font-size:.8rem; 
  background: var(--card);
  color: var(--foreground);
  animation: fadeIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-chip-remove {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 0.25rem;
}

.file-chip-remove:hover {
  background: var(--destructive);
  color: white;
  transform: scale(1.1);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  text-align: center;
  color: white;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
}

.loading-subtext {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}


/* Footer */
.footer { 
  border-top: 1px solid var(--border); 
  background: var(--card); 
}

/* Footer dark mode text improvements */
.footer .text-gray-600 {
  color: var(--muted-foreground);
}

.footer .text-gray-700 {
  color: var(--foreground);
  opacity: 0.8;
}

.footer .text-gray-500 {
  color: var(--muted-foreground);
  opacity: 0.9;
}

[data-theme="dark"] .footer .text-gray-600 {
  color: #cbd5e1;
}

[data-theme="dark"] .footer .text-gray-700 {
  color: #e2e8f0;
}

[data-theme="dark"] .footer .text-gray-500 {
  color: #94a3b8;
}

[data-theme="dark"] .footer a:hover {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .footer .border-gray-200 {
  border-color: var(--border);
}


/* Toast (kept for compatibility) */
.toast { position:fixed; right:1rem; bottom:1rem; background:#111827; color:#fff; padding:.875rem 1rem; border-radius:.75rem; box-shadow:0 8px 30px rgba(2,6,23,.25); opacity:0; transform: translateY(8px); pointer-events:none; transition: all .25s ease; }
.toast.show { opacity:1; transform: translateY(0); }

/* Custom Notification System */
.custom-notification {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 40px var(--shadow-color), 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  min-width: 320px;
  transform: translateX(500px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
}

.custom-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.custom-notification .notification-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-notification .notification-content {
  flex: 1;
  min-width: 0;
}

.custom-notification .notification-message {
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

.custom-notification .notification-close {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.custom-notification .notification-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

/* Notification Types */
.notification-success {
  border-left: 4px solid #10b981;
}

.notification-success .notification-icon {
  color: #10b981;
}

.notification-error {
  border-left: 4px solid #ef4444;
}

.notification-error .notification-icon {
  color: #ef4444;
}

.notification-warning {
  border-left: 4px solid #f59e0b;
}

.notification-warning .notification-icon {
  color: #f59e0b;
}

.notification-info {
  border-left: 4px solid #3b82f6;
}

.notification-info .notification-icon {
  color: #3b82f6;
}

/* Error field styling */
.error-field {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Mobile responsiveness for notifications */
@media (max-width: 640px) {
  .custom-notification {
    right: 1rem;
    left: 1rem;
    top: 80px;
    max-width: none;
    min-width: 0;
    padding: 1rem 1.25rem;
  }
  
  .custom-notification .notification-message {
    font-size: 0.875rem;
  }
}


/* Utilities */
.container { max-width: 1300px; margin: 0 auto; }
.section { padding: 4rem 1.5rem; }
.hero { 
  padding: 2rem 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

.hero img {
  position: relative;
  z-index: 1;
}

/* Modern centered layout for main content */
.main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Optional tighter padding for small screens */
@media (max-width: 640px) {
  .section { padding: 3rem 1rem; }
  .hero { padding: 1.5rem 1rem 2.25rem; }
}

@media (min-width: 1024px) {
  .hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:3rem; align-items:center; }
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.8s ease forwards !important;
  opacity: 1 !important;
}

.slide-up {
  animation: fadeIn 1s ease forwards;
}

/* Image hover effects */
img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card img:hover {
  transform: scale(1.05);
}

article.card {
  cursor: pointer;
}

/* Social icons hover */
footer a[aria-label] svg {
  transition: all 0.3s ease;
}

footer a[aria-label]:hover svg {
  transform: scale(1.2) rotate(5deg);
  color: var(--so-primary);
}

/* Details/Accordion animation */
details {
  transition: all 0.3s ease;
  background: var(--card);
  border-color: var(--border);
}

details:hover {
  background: var(--accent);
}

details[open] {
  background: var(--muted);
}

details summary {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
  color: var(--foreground);
}

details summary:hover {
  color: var(--primary);
}

details p {
  color: var(--muted-foreground);
}

/* Link hover effects */
a {
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Badge float animation */
.so-badge {
  animation: float 3s ease-in-out infinite;
}

/* Stats animation */
.hero .grid > div {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.hero .grid > div:nth-child(1) {
  animation-delay: 0.3s;
}

.hero .grid > div:nth-child(2) {
  animation-delay: 0.5s;
}

.hero .grid > div:nth-child(3) {
  animation-delay: 0.7s;
}

.hero .grid > div:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Status Badges for Track Order Page */
.status-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-in-progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-shipped {
  background: #e9d5ff;
  color: #6b21a8;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

/* Dark mode status badges */
[data-theme="dark"] .status-pending {
  background: #78350f;
  color: #fef3c7;
}

[data-theme="dark"] .status-in-progress {
  background: #1e3a8a;
  color: #bfdbfe;
}

[data-theme="dark"] .status-completed {
  background: #064e3b;
  color: #d1fae5;
}

[data-theme="dark"] .status-shipped {
  background: #581c87;
  color: #e9d5ff;
}

[data-theme="dark"] .status-cancelled {
  background: #7f1d1d;
  color: #fee2e2;
}
