/* ============================================================
   AlmiCode — Calculadora de Preço de Venda e Margem de Lucro
   Design System: Dark Futuristic Glassmorphism
   ============================================================ */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d0f18;
  --bg-card: rgba(14, 16, 26, 0.88);
  --bg-card-hover: rgba(20, 24, 38, 0.95);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: #00e5ff;
  
  --text-primary: #f0f3fa;
  --text-secondary: #9aa1b9;
  --text-muted: #5e6482;
  
  --accent-cyan: #00e5ff;
  --accent-violet: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-main: linear-gradient(135deg, #00e5ff 0%, #8b5cf6 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  --gradient-profit: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(0, 229, 255, 0.1) 100%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

/* Global Slim & Elegant Scrollbars (Horizontal & Vertical) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.35) rgba(255, 255, 255, 0.02);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 9999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.35), rgba(139, 92, 246, 0.35));
  border-radius: 9999px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  transition: all 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.75), rgba(139, 92, 246, 0.75));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ============================================================
   App Hero Header
   ============================================================ */
.app-hero {
  text-align: center;
  padding: 2.5rem 1.5rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.app-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-hero p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============================================================
   Main Layout Grid (Expansive Dashboard Layout)
   ============================================================ */
.main-wrapper {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 1.75rem 3.5rem;
  flex: 1;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
  width: 100%;
}

@media screen and (min-width: 1024px) {
  .grid-container {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}

@media screen and (min-width: 1360px) {
  .grid-container {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 2.25rem;
  }
}

@media screen and (min-width: 1600px) {
  .grid-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
}

/* Panel Card */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .panel-card {
    padding: 1.85rem 2rem;
  }
}

.results-sticky {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

@media screen and (min-width: 1024px) {
  .results-sticky {
    position: sticky;
    top: 5.5rem;
  }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
}

.panel-title svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

@media screen and (max-width: 580px) {
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .panel-title {
    font-size: 1.05rem;
    width: 100%;
  }
  .panel-title span {
    white-space: normal;
  }
  .panel-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
  }
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.status-indicator-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ============================================================
   Mode Toggle Tabs (Calcular Preço vs Simular Preço)
   ============================================================ */
.mode-tabs-container {
  margin-bottom: 1.25rem;
}

.mode-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
}

.mode-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 0;
}

.mode-tab-btn svg {
  flex-shrink: 0;
}

.mode-tab-btn.active {
  background: var(--gradient-main);
  color: #07090e;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.25);
}

@media screen and (max-width: 580px) {
  .mode-tabs {
    flex-direction: column;
    padding: 0.35rem;
    gap: 0.35rem;
  }
  .mode-tab-btn {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.7rem 0.85rem;
    justify-content: center;
    gap: 0.45rem;
  }
  .mode-tab-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 360px) {
  .mode-tab-btn {
    font-size: 0.82rem;
    padding: 0.65rem 0.6rem;
  }
}

/* ============================================================
   Form Inputs & Sections
   ============================================================ */
.form-section-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media screen and (min-width: 580px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Input with Currency Prefix / Suffix */
.input-currency-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
  pointer-events: none;
}

.currency-suffix {
  position: absolute;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
  pointer-events: none;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.input-currency-wrapper input,
.input-currency-wrapper input[type="text"],
.input-currency-wrapper input[type="number"] {
  padding-left: 2.35rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.input-currency-wrapper:has(.currency-suffix) input,
.input-currency-wrapper:has(.currency-suffix) input[type="text"],
.input-currency-wrapper:has(.currency-suffix) input[type="number"] {
  padding-right: 2.2rem;
  padding-left: 0.9rem;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--border-focus);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

/* Preset Chips */
.preset-chips-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.55rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.35) rgba(255, 255, 255, 0.02);
}

.preset-chips-scroll::-webkit-scrollbar {
  height: 5px;
}

.preset-chips-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9999px;
}

.preset-chips-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.4), rgba(139, 92, 246, 0.4));
  border-radius: 9999px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  transition: all 0.2s ease;
}

.preset-chips-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.8), rgba(139, 92, 246, 0.8));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.preset-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.preset-chip.active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.4);
}

/* Margin Slider */
.highlight-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.margin-slider {
  width: 100%;
  margin-top: 0.65rem;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   Results & Metrics Display
   ============================================================ */
.main-price-highlight-card {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.main-price-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
}

.price-highlight-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-price-health {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
}

.badge-price-health.health-profit {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-price-health.health-loss {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-price-health.health-alert {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.price-highlight-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0.25rem 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.price-highlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.metric-chip {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.metric-chip-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-chip-val {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.35vw, 0.95rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.val-profit { color: var(--accent-green); }
.val-margin { color: var(--accent-cyan); }
.val-markup { color: var(--accent-violet); }

/* Segmented Price Bar */
.breakdown-bar-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.breakdown-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.breakdown-bar-total {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.segmented-bar {
  display: flex;
  height: 14px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.65rem;
}

.bar-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-custo { background: #8b5cf6; }
.seg-taxas { background: #f59e0b; }
.seg-impostos { background: #f43f5e; }
.seg-lucro { background: #10b981; }

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-color {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

/* Detailed DRE Table */
.dre-table-wrapper {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.35) rgba(255, 255, 255, 0.02);
}

.dre-table-wrapper::-webkit-scrollbar {
  height: 5px;
}

.dre-table-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 9999px;
}

.dre-table-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.4), rgba(139, 92, 246, 0.4));
  border-radius: 9999px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  transition: all 0.2s ease;
}

.dre-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.8), rgba(139, 92, 246, 0.8));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.dre-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 280px;
}

.dre-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  letter-spacing: 0.5px;
}

.dre-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-wrap: anywhere;
}

.dre-table tbody tr:last-child td {
  border-bottom: none;
}

.dre-table .text-right {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
}

.dre-row-revenue {
  background: rgba(0, 229, 255, 0.04);
  color: var(--text-primary);
}

.dre-row-profit {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-green);
  font-size: 0.92rem;
}

.dre-row-breakeven {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Volume Simulator Card */
.volume-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.volume-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.volume-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.45rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.2rem;
  min-width: 0;
  overflow: hidden;
}

.vol-units {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.vol-profit {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.92rem);
  font-weight: 700;
  color: var(--accent-green);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.vol-profit.highlight {
  color: var(--accent-cyan);
}

.vol-revenue {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

@media screen and (max-width: 520px) {
  .price-highlight-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .metric-chip {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
  }
  .volume-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .volume-col {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
  }
}

/* Action Buttons */
.results-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-primary-action {
  background: var(--gradient-main);
  color: #07090e;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.3);
  transition: all 0.25s ease;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.45);
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   SEO FAQ Section
   ============================================================ */
.seo-guide-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.seo-guide-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.seo-guide-header .section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.seo-guide-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0.25rem 0 0.5rem;
  color: var(--text-primary);
}

.seo-guide-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media screen and (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  transition: all 0.2s ease;
}

.faq-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.2);
}

.faq-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 0.45rem;
}

.faq-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   Cross-Sell Promo Box
   ============================================================ */
.promo-box {
  max-width: 880px;
  margin: 3rem auto 1.5rem;
  background: var(--gradient-card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.promo-box h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.promo-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 580px;
}

.btn-promo {
  background: var(--gradient-main);
  color: #07090e;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  background: rgba(10, 11, 16, 0.6);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 11, 16, 0.95);
  border: 1px solid var(--accent-green);
  color: #10b981;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10002;
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Hidden Print Report on Screen */
.print-report-container {
  display: none;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  *, *:before, *:after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #tools-navbar,
  .tools-modal-overlay,
  .app-hero,
  .main-wrapper,
  .site-footer,
  .toast-notification {
    display: none !important;
  }

  .print-report-container {
    display: block !important;
    padding: 15mm 15mm !important;
    box-sizing: border-box !important;
    font-family: Arial, Helvetica, sans-serif !important;
    color: #111 !important;
  }

  .print-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }

  .print-report-logo {
    font-size: 16pt;
    font-weight: bold;
    letter-spacing: -0.5px;
  }

  .print-report-title {
    font-size: 11pt;
    font-weight: bold;
    text-transform: uppercase;
  }

  .print-report-date {
    font-size: 8pt;
    color: #555;
  }

  .print-report-product {
    font-size: 12pt;
    font-weight: bold;
    margin-bottom: 14px;
    padding: 8px 10px;
    background: #f5f5f5;
    border-left: 4px solid #111;
  }

  .print-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 10pt;
  }

  .print-report-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
  }

  .print-report-table .text-right {
    text-align: right;
  }

  .print-row-highlight td {
    background: #eef9f5 !important;
    font-weight: bold;
    font-size: 11pt;
    border-top: 1.5px solid #10b981;
    border-bottom: 1.5px solid #10b981;
  }

  .print-report-footer {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
    font-size: 8pt;
    color: #777;
    text-align: center;
  }
}
