/* -------------------------------------------------------------
   Razor Comps - Glassy 60% Black / 30% Red / 10% White UI
------------------------------------------------------------- */
:root {
  --bg-dark: #070709;
  --bg-card: rgba(18, 18, 24, 0.48);
  --bg-card-alt: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(10, 10, 14, 0.65);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-red: rgba(220, 38, 38, 0.38);
  --border-focus: #ef4444;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent-cyan: #ef4444;
  --accent-blue: #dc2626;
  --accent-purple: #991b1b;
  --accent-green: #22c55e;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1ebd5a;
  --glass-blur: blur(20px) saturate(160%);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.72), var(--glass-highlight);
  --shadow-glow: 0 10px 32px rgba(220, 38, 38, 0.28), var(--glass-highlight);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(220, 38, 38, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 88% 35%, rgba(185, 28, 28, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 30% 78%, rgba(220, 38, 38, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(255, 255, 255, 0.05) 0%, transparent 35%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography & Links */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fca5a5;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.65);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(220, 38, 38, 0.16);
  color: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.45);
}

.btn-secondary:hover {
  background: rgba(220, 38, 38, 0.3);
  border-color: #ef4444;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
  border-color: #ef4444;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.12);
}

.btn-whatsapp {
  background: var(--whatsapp-color);
  color: #0b0f19 !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #7f1d1d, #dc2626, #991b1b);
  border-bottom: 1px solid #ef4444;
  font-size: 0.82rem;
  padding: 8px 0;
  color: #ffffff;
}

.announcement-bar a {
  color: #ffffff;
  font-weight: 600;
}

.announcement-bar a:hover {
  color: #fecaca;
}

.bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bar-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.settings-toggle-btn {
  background: rgba(9, 9, 11, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.settings-toggle-btn:hover {
  background: rgba(9, 9, 11, 0.75);
}

/* Header */
.site-header {
  background: rgba(9, 9, 12, 0.62);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  display: block;
  background: transparent;
  filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.38));
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.06);
}

.footer-logo {
  height: 58px;
  width: 58px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  background: transparent;
  filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.35));
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.brand-title {
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.header-actions .btn-nav {
  padding: 6px 11px;
  font-size: 0.78rem;
  white-space: nowrap;
  gap: 5px;
  border-radius: 7px;
  line-height: 1.2;
}

.header-actions .btn-nav svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.25) 0%, rgba(153, 27, 27, 0.08) 45%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

.pill-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 50px;
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text h2 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #f87171 45%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-stats {
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(220, 38, 38, 0.3);
  padding-top: 25px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card {
  background: rgba(18, 18, 24, 0.52);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card), 0 0 35px rgba(220, 38, 38, 0.2);
}

.preview-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-card-footer {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 14, 18, 0.65);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections General */
.section {
  padding: 70px 0;
}

.bg-alt {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Presets Grid */
.presets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 680px) {
  .presets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .presets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .presets-grid > .preset-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.preset-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid rgba(220, 38, 38, 0.85);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.preset-card:hover {
  transform: translateY(-4px);
  background: rgba(26, 16, 20, 0.62);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: var(--shadow-glow);
}

.preset-badge-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.preset-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.preset-target {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.preset-fps {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.preset-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.preset-specs-list {
  list-style: none;
  font-size: 0.85rem;
  color: #d4d4d8;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.preset-specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-specs-list li::before {
  content: "✔";
  color: var(--accent-green);
  font-weight: bold;
}

/* Separate FPS Prediction Lab Layout */
.fps-predictor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.fps-input-card,
.fps-output-card {
  background: rgba(16, 16, 22, 0.56);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid #dc2626;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.fps-typed-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fps-action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* Builder Layout (Selection-by-Selection Summary Connected to Categories) */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 30px;
  align-items: start;
}

.builder-layout.builder-only-summary {
  display: block;
  max-width: 1020px;
  margin: 0 auto;
}

.prediction-split-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

.builder-slot-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.builder-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.active-parts-readout {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.active-parts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.change-parts-link {
  font-size: 0.76rem;
  color: #fca5a5;
  text-decoration: underline;
}

.active-parts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.active-part-chip {
  background: rgba(9, 9, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid #dc2626;
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.active-part-chip.is-optional {
  border-left-color: rgba(255, 255, 255, 0.22);
  opacity: 0.88;
}

.active-part-chip:hover {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(220, 38, 38, 0.16);
  transform: translateY(-1px);
  opacity: 1;
}

.active-part-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.active-part-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.active-part-swap {
  font-size: 0.68rem;
  color: #a1a1aa;
  font-weight: 600;
}

.chip-clear-btn {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ffffff;
  font-size: 0.65rem;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
}

.active-part-name {
  display: block;
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-part-price {
  font-size: 0.72rem;
  color: #d4d4d8;
  font-weight: 500;
}

@media (max-width: 900px) {
  .fps-predictor-layout,
  .prediction-split-grid {
    grid-template-columns: 1fr;
  }
  .active-parts-grid {
    grid-template-columns: 1fr;
  }
}

/* Category Row */
.category-group {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #dc2626;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

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

.category-title {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.option-card {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.option-card:hover {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(220, 38, 38, 0.14);
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: #ef4444;
  background: rgba(220, 38, 38, 0.22);
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.option-card.selected::after {
  content: "✓ Selected";
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.option-thumb {
  width: 100%;
  height: 118px;
  object-fit: contain;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.1) 0%, transparent 72%);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.72));
  transition: transform 0.25s ease;
}

.option-card:hover .option-thumb {
  transform: scale(1.06);
}

.option-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  color: #ffffff;
}

.option-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-grow: 1;
}

.option-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 6px;
}

.option-price {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.btn-detail {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Sticky Summary Column */
.sticky-box {
  position: sticky;
  top: 90px;
}

.summary-card {
  background: rgba(16, 16, 22, 0.56);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid #dc2626;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

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

.summary-header h3 {
  font-size: 1.15rem;
}

.perf-badge {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  color: #ffffff;
}

/* Performance Bars */
.performance-panel {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.perf-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

.perf-title small {
  color: var(--text-muted);
}

.fps-bar-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fps-row {
  display: grid;
  grid-template-columns: 100px 1fr 65px;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.game-name {
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  background: #09090b;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.esports-bar {
  background: #22c55e;
}

.aaa-bar {
  background: #ef4444;
}

.raytrace-bar {
  background: #b91c1c;
}

.fps-num {
  font-weight: 700;
  text-align: right;
  color: #ffffff;
}

/* Price Breakdown */
.price-breakdown {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.form-select-sm {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  outline: none;
}

.total-row {
  border-top: 1px dashed rgba(220, 38, 38, 0.35);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.total-amount {
  font-size: 1.6rem;
  color: #f87171;
  font-family: var(--font-heading);
}

/* Order Form Mini */
.order-form-mini {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 9px 12px;
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--border-focus);
}

.summary-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* PCPRO.lk-Style Store Layout (Left Glassy Sidebar + Catalog Grid) */
.catalog-store-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 26px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid #dc2626;
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.sidebar-header small {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: #fca5a5;
  font-weight: 600;
}

.sidebar-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #d4d4d8;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-cat-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-cat-btn.active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.34), rgba(153, 27, 27, 0.24));
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sidebar-cat-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-cat-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-cat-count {
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

.sidebar-cat-btn.active .sidebar-cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.catalog-active-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-active-meta h3 {
  font-size: 1.15rem;
  margin: 0;
}

.catalog-search-input {
  max-width: 240px;
  background: rgba(9, 9, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.catalog-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-footer-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.catalog-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-card-actions .btn {
  flex: 1;
  min-width: 105px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

/* Shopping Cart Modal & Toast */
.cart-modal-body {
  padding: 24px;
}

.cart-items-list {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-right: 4px;
}

.cart-empty-msg {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.cart-item-thumb-wrap {
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.cart-item-placeholder {
  font-size: 1.4rem;
}

.cart-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
}

.cart-item-unit {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.qty-btn:hover {
  background: #dc2626;
  border-color: #ef4444;
}

.qty-val {
  min-width: 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-total {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fca5a5;
  min-width: 82px;
  text-align: right;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
}

.cart-remove-btn:hover {
  color: #ef4444;
}

.cart-utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.cart-totals-box {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.toast-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1200;
  background: rgba(16, 16, 22, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-link-btn {
  background: #dc2626;
  border: none;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 680px) {
  .cart-checkout-grid {
    grid-template-columns: 1fr;
  }
  .cart-item-row {
    grid-template-columns: 42px 1fr auto;
  }
  .cart-item-total {
    grid-column: 2;
    text-align: left;
  }
}

.catalog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}

.catalog-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  background: rgba(28, 16, 20, 0.58);
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: var(--shadow-glow);
}

.catalog-img-wrap {
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.12) 0%, rgba(255, 255, 255, 0.02) 55%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.78));
  transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-img {
  transform: scale(1.07);
}

.catalog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.catalog-title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.catalog-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}

.catalog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.catalog-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid #dc2626;
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.step-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: rgba(16, 16, 22, 0.72);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 650px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.85), 0 0 32px rgba(220, 38, 38, 0.2), var(--glass-highlight);
  animation: modalIn 0.25s ease-out;
}

.modal-box-sm {
  max-width: 440px;
  padding: 24px;
}

.modal-box-lg {
  max-width: 840px;
  padding: 28px;
}

@keyframes modalIn {
  from { transform: scale(0.94) translateY(10px); }
  to { transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
}

.modal-close-btn:hover {
  color: #ef4444;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-img-wrap {
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.14) 0%, transparent 72%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.8));
}

.modal-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.modal-tier {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-specs {
  font-size: 0.82rem;
  color: #e4e4e7;
  background: var(--bg-card-alt);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(220, 38, 38, 0.45);
  padding: 60px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #71717a;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .catalog-store-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
  .sidebar-cat-list {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 6px;
  }
  .sidebar-cat-item {
    flex-shrink: 0;
  }
  .sidebar-cat-btn {
    width: auto;
    white-space: nowrap;
  }
  .sticky-box {
    position: static;
  }
  .hero-text h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-img-wrap {
    height: 180px;
  }
  .header-actions .btn-outline:not(.cart-header-btn),
  .header-actions .btn-primary {
    display: none;
  }
  .hero-text h2 {
    font-size: 1.8rem;
  }
}

/* Add-ons & Policy Guarantee Cards */
.addons-panel {
  margin-bottom: 18px;
}

.addons-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.addons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addon-checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.82rem;
}

.addon-checkbox-card:hover {
  border-color: #ef4444;
  background: rgba(220, 38, 38, 0.1);
}

.addon-checkbox-card.active {
  border-color: var(--accent-green);
  background: rgba(34, 197, 94, 0.12);
}

.addon-icon {
  font-size: 1.1rem;
}

.addon-info {
  flex-grow: 1;
}

.addon-name {
  font-weight: 600;
  color: #ffffff;
}

.addon-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.addon-price {
  font-weight: 700;
  color: var(--accent-green);
  font-size: 0.85rem;
}

/* Policy Trust Box */
.policy-box {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
  color: #e4e4e7;
}

.policy-item {
  line-height: 1.4;
}

/* -------------------------------------------------------------
   Razor AI Hardware Consultant & Bottleneck Checker Styles
------------------------------------------------------------- */

/* Custom Game FPS Tester */
.custom-fps-tester {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(220, 38, 38, 0.4);
}

.custom-fps-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.custom-fps-input-row {
  display: flex;
  gap: 6px;
}

.form-input-sm {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.8rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input-sm:focus {
  border-color: var(--accent-cyan);
}

.custom-fps-result {
  margin-top: 8px;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f4f4f5;
  line-height: 1.45;
  animation: fadeIn 0.3s ease;
}

/* AI Doctor Panel */
.ai-doctor-panel {
  margin-top: 14px;
}

.ai-doctor-btn {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.14);
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-doctor-btn:hover {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
}

.ai-doctor-result {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid rgba(220, 38, 38, 0.45);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e4e4e7;
  animation: fadeIn 0.3s ease;
}

.ai-doctor-result h4 {
  color: #fca5a5;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-score-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.8rem;
}

.score-great { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.score-warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.score-alert { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }

/* Floating Razor AI Button */
.ai-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35), 0 0 15px rgba(185, 28, 28, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-floating-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.5), 0 0 25px rgba(185, 28, 28, 0.4);
}

.ai-btn-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.4);
  animation: aiPulse 2.5s infinite;
  z-index: -1;
}

@keyframes aiPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.ai-btn-icon {
  font-size: 1.15rem;
}

/* Razor AI Chat Drawer / Window */
.ai-chat-window {
  position: fixed;
  bottom: 85px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 570px;
  max-height: calc(100vh - 110px);
  background: rgba(14, 14, 20, 0.72);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.85), 0 0 28px rgba(220, 38, 38, 0.25), var(--glass-highlight);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  animation: aiSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-window.active {
  display: flex;
}

@keyframes aiSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Chat Header */
.ai-chat-header {
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.28), rgba(153, 27, 27, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-header-info h4 {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.2;
}

.ai-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.ai-badge-gemini {
  font-size: 0.68rem;
  color: #fca5a5;
  font-weight: 600;
  display: block;
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-icon-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.ai-icon-btn:hover {
  background: rgba(220, 38, 38, 0.25);
  color: #ffffff;
}

/* Chat Body */
.ai-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.14), transparent 65%), rgba(9, 9, 12, 0.45);
}

.ai-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.ai-msg-bot {
  align-self: flex-start;
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: #fff;
}

.ai-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.5;
  word-break: break-word;
}

.ai-msg-bot .ai-bubble {
  background: #18181d;
  color: #f4f4f5;
  border: 1px solid #27272a;
  border-top-left-radius: 2px;
}

.ai-msg-user .ai-bubble {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #ffffff;
  border-top-right-radius: 2px;
}

.ai-bubble p {
  margin-bottom: 6px;
}

.ai-bubble p:last-child {
  margin-bottom: 0;
}

.ai-bubble ul, .ai-bubble ol {
  margin: 6px 0 6px 16px;
  padding: 0;
}

.ai-bubble li {
  margin-bottom: 3px;
}

.ai-bubble strong {
  color: #fca5a5;
}

.ai-msg-user .ai-bubble strong {
  color: #ffffff;
}

.ai-apply-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-apply-btn:hover {
  background: #22c55e;
}

/* Typing animation */
.ai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #18181d;
  border-radius: 12px;
  width: fit-content;
  border: 1px solid #27272a;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Quick Prompt Chips */
.ai-quick-chips {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.ai-quick-chips::-webkit-scrollbar {
  height: 3px;
}

.ai-quick-chips::-webkit-scrollbar-thumb {
  background: #991b1b;
}

.ai-chip {
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ai-chip:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #ef4444;
}

/* Chat Footer & Input */
.ai-chat-footer {
  padding: 12px 14px;
  background: rgba(220, 38, 38, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 8px;
}

.ai-chat-footer input {
  flex: 1;
  background: rgba(9, 9, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.ai-chat-footer input:focus {
  border-color: var(--accent-cyan);
}

.ai-chat-footer button {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

