/* ============================================
   MODERN AI SAAS DESIGN - COLORFUL & PROFESSIONAL
   Inspired by Jasper, Notion AI, Canva AI
   ============================================ */

/* ========== GLOBAL RESET & TYPOGRAPHY ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Vibrant Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-teal: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-purple: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-orange: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  
  /* Background Gradients */
  --bg-gradient-1: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  --bg-gradient-2: linear-gradient(135deg, #f093fb10 0%, #f5576c10 100%);
  --bg-gradient-3: linear-gradient(135deg, #4facfe10 0%, #00f2fe10 100%);
  
  /* Colors */
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --color-accent: #f5576c;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-white: #ffffff;
  --color-bg: #fafbfc;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #fafbfc 0%, #f0f4ff 50%, #faf5ff 100%);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Decorative Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(79, 172, 254, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(245, 87, 108, 0.03) 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(102, 126, 234, 0.02) 100px, rgba(102, 126, 234, 0.02) 102px);
  pointer-events: none;
  z-index: 0;
}

/* ========== NAVIGATION ========== */
.main-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(102, 126, 234, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid rgba(102, 126, 234, 0.15);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  min-width: 220px;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border: 1px solid rgba(102, 126, 234, 0.1);
  z-index: 1001;
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background: var(--bg-gradient-1);
  color: var(--color-primary);
  padding-left: 2rem;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.main-content-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
  background: transparent;
  position: relative;
}

/* ========== TOOL HEADER ========== */
.tool-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.tool-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
}

.tool-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tool-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.tool-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* ========== CARDS ========== */
.upload-card,
.result-card {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 24px;
  margin: 0 auto 2rem;
  max-width: 1000px;
  width: 100%;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-card::before,
.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.upload-card:hover,
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.upload-header {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  text-align: center;
}

.result-header {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

/* ========== BUTTONS ========== */
button,
.upload-btn,
.workflow-btn,
.demo-btn-large,
.cta-primary,
.cta-secondary {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before,
.upload-btn::before,
.workflow-btn::before,
.demo-btn-large::before,
.cta-primary::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;
}

button:hover::before,
.upload-btn:hover::before,
.workflow-btn:hover::before,
.demo-btn-large:hover::before,
.cta-primary:hover::before {
  width: 300px;
  height: 300px;
}

.upload-btn {
  width: 100%;
  padding: 1.125rem 2rem;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: white;
}

.workflow-btn {
  padding: 1rem 2rem;
  background: var(--gradient-teal);
  color: white;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  min-width: 140px;
}

.workflow-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.workflow-btn.share {
  background: var(--gradient-secondary);
}

.workflow-btn.copy {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.demo-btn-large {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 1.25rem 2.5rem;
  background: var(--gradient-purple);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  box-shadow: var(--shadow-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.demo-btn-large:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: white;
}

.cta-primary {
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-md);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-secondary {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.cta-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.copy-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-blue);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========== FORMS ========== */
.upload-label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.file-input,
.url-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--color-white);
}

/* Custom File Input Styling */
input[type="file"] {
  padding: 1rem;
  background: var(--bg-gradient-1);
  border: 2px dashed rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-text);
}

input[type="file"]:hover {
  border-color: var(--color-primary);
  background: var(--bg-gradient-2);
  box-shadow: var(--shadow-sm);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  background: var(--color-white);
}

input[type="file"]::file-selector-button {
  padding: 0.75rem 1.5rem;
  margin-right: 1rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.url-input:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.url-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* ========== RESULTS & SECTIONS ========== */
.results-section {
  margin-top: 2rem;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.result-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-gradient-1);
  border-radius: 16px;
  border-left: 4px solid var(--color-primary);
}

.result-section h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.status-message {
  margin: 2rem auto;
  max-width: 900px;
}

.loading {
  padding: 1.5rem;
  background: var(--bg-gradient-3);
  color: var(--color-primary);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  border: 2px solid rgba(79, 172, 254, 0.2);
}

.success-message {
  padding: 1.5rem;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-radius: 12px;
  border-left: 4px solid #28a745;
  font-weight: 500;
}

.error-message {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-radius: 12px;
  border-left: 4px solid #dc3545;
  font-weight: 500;
}

/* ========== HOMEPAGE HERO ========== */
.hero-premium {
  width: 100% !important;
  min-height: 90vh !important;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f093fb15 100%) !important;
  display: flex !important;
  align-items: center !important;
  padding: 6rem 2rem !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -50px) scale(1.1); }
}

.hero-container-premium {
  max-width: 1400px !important;
  margin: 0 auto !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: center !important;
  position: relative !important;
  z-index: 1 !important;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge-premium {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  width: fit-content;
}

.hero-headline-premium {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline-premium {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

.hero-ctas-premium {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats-premium {
  display: flex;
  gap: 3rem;
  margin-top: 1rem;
}

.stat-item-premium {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number-premium {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label-premium {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ========== TOOL CARDS (HOMEPAGE) ========== */
.tools-section-premium {
  width: 100%;
  padding: 8rem 2rem;
  background: var(--color-white);
  position: relative;
}

.container-premium {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.section-header-premium {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title-premium {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description-premium {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.tools-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tool-card-premium {
  background: var(--color-white);
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.tool-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card-premium:nth-child(1)::before { background: var(--gradient-primary); }
.tool-card-premium:nth-child(2)::before { background: var(--gradient-secondary); }
.tool-card-premium:nth-child(3)::before { background: var(--gradient-teal); }
.tool-card-premium:nth-child(4)::before { background: var(--gradient-purple); }
.tool-card-premium:nth-child(5)::before { background: var(--gradient-blue); }
.tool-card-premium:nth-child(6)::before { background: var(--gradient-orange); }

.tool-card-premium:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.tool-card-premium:hover::before {
  opacity: 1;
}

.tool-icon-premium {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.tool-title-premium {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-desc-premium {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.tool-cta-premium {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-top: auto;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-card-premium:hover .tool-cta-premium {
  color: var(--color-secondary);
  transform: translateX(4px);
}

/* ========== FOOTER ========== */
.main-footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
  padding: 0 1.5rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* ========== WORKFLOW ACTIONS ========== */
.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem auto;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
  padding: 0 1rem;
}

/* ========== TABLES ========== */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.invoice-table th,
.invoice-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.invoice-table th {
  background: var(--bg-gradient-1);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-table tr:hover {
  background: var(--bg-gradient-1);
}

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

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .hero-container-premium {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  
  .hero-visual-premium {
    order: -1;
  }
  
  .tools-grid-premium {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .main-content-wrapper {
    padding: 2.5rem 1.5rem;
    max-width: 100%;
  }
  
  .upload-card,
  .result-card {
    max-width: 100%;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero-premium {
    padding: 4rem 1.5rem !important;
    min-height: auto !important;
  }
  
  .hero-headline-premium {
    font-size: 2rem;
  }
  
  .hero-ctas-premium {
    flex-direction: column;
  }
  
  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
  }
  
  .hero-stats-premium {
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .tools-grid-premium {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tools-section-premium {
    padding: 4rem 1.5rem;
  }
  
  .tool-header {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .upload-card,
  .result-card {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  
  .workflow-actions {
    flex-direction: column;
  }
  
  .workflow-btn {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .main-content-wrapper {
    padding: 2rem 1rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .tool-title {
    font-size: 2rem;
  }
  
  .upload-card,
  .result-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .hero-headline-premium {
    font-size: 1.75rem;
  }
  
  .section-title-premium {
    font-size: 1.75rem;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========== SEVERITY BADGES ========== */
.severity-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.severity-high {
  background: linear-gradient(135deg, #fee 0%, #fcc 100%);
  color: #c33;
  border: 1px solid #c33;
}

.severity-medium {
  background: linear-gradient(135deg, #fff9e6 0%, #ffe6b3 100%);
  color: #b8860b;
  border: 1px solid #ffc107;
}

.severity-low {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border: 1px solid #4caf50;
}

/* ========== FINANCIAL GRID ========== */
.financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.financial-item {
  padding: 1rem;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.financial-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.warning-card {
  background: linear-gradient(135deg, #fff9e6 0%, #ffe6b3 100%);
  border-left: 4px solid #ffc107;
}

.error-card {
  background: linear-gradient(135deg, #fee 0%, #fcc 100%);
  border-left: 4px solid #dc3545;
}

.success-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid #28a745;
}

/* ========== SAMPLE LINKS ========== */
.sample-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  text-align: center;
  display: none; /* Hide duplicate sample link since we have the prominent button */
}

.sample-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.sample-links a:hover {
  color: var(--color-secondary);
  transform: translateY(-2px);
  text-decoration: underline;
}

/* ========== TRUST SECTION ========== */
.trust-section {
  width: 100%;
  padding: 3rem 2rem;
  background: var(--color-white);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.trust-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-logo {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 600;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.trust-logo:hover {
  opacity: 1;
  color: var(--color-primary);
  transform: scale(1.05);
}

/* ========== LEGACY SUPPORT ========== */
.chat-container {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 24px;
  width: 100%;
  max-width: 700px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  margin: 2rem auto;
}

h1 {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 800;
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

form {
  margin-bottom: 2rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

input[type="file"],
input[type="url"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
  transition: all 0.3s ease;
}

input[type="file"]:hover,
input[type="url"]:hover,
input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

input[type="file"]:focus,
input[type="url"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

button {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.status {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #28a745;
  padding: 1rem;
  background: var(--bg-gradient-3);
  border-radius: 12px;
}

.chat-thread {
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg-gradient-1);
  margin-bottom: 1.5rem;
}

.chat.user {
  text-align: right;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-gradient-3);
  border-radius: 12px;
}

.chat.bot {
  text-align: left;
  color: var(--color-text);
  white-space: pre-wrap;
  animation: fadeIn 0.3s ease-in;
  padding: 0.75rem;
  background: var(--bg-gradient-1);
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* ========== DETAILS/SUMMARY ========== */
details {
  margin: 1.5rem 0;
}

details summary {
  cursor: pointer;
  padding: 1rem;
  background: var(--bg-gradient-1);
  border-radius: 12px;
  font-weight: 600;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

details summary:hover {
  background: var(--bg-gradient-2);
}

.result-json {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1rem 0;
}

/* ========== SEO CONTENT SECTIONS - MODERN DESIGN ========== */
.seo-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.seo-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.seo-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.seo-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
}

.seo-section-modern {
  margin: 4rem 0;
  padding: 3rem 0;
}

.seo-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.seo-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.seo-section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* Steps Grid */
.steps-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card-modern {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.step-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.step-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.2);
}

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

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.step-number-modern {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  line-height: 40px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.step-card-modern h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.step-card-modern p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Features Grid */
.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card-modern {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.feature-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--color-primary);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card-modern h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.feature-card-modern p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* SEO Content Card */
.seo-content-card {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.seo-content-body {
  margin-top: 2rem;
}

.seo-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.analysis-dimensions {
  margin: 2rem 0;
}

.analysis-dimensions h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: center;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.dimension-card {
  background: var(--bg-gradient-1);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dimension-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(102, 126, 234, 0.3);
}

.dimension-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.dimension-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.dimension-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.seo-benefits {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-gradient-1);
  border-radius: 12px;
}

.seo-benefits h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.seo-benefits p {
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
}

/* FAQ Grid */
.faq-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.faq-card-modern {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.faq-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-primary);
}

.faq-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.faq-card-modern h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.faq-card-modern p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive SEO Sections */
@media (max-width: 768px) {
  .seo-header h1 {
    font-size: 2rem;
  }
  
  .steps-grid-modern,
  .features-grid-modern,
  .dimensions-grid,
  .faq-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .seo-content-card {
    padding: 2rem 1.5rem;
  }
}
