/**
 * AutoClubCard.com - Master Stylesheet
 * Brand Palette:
 * Primary Red: #E32027
 * Black: #111111
 * Dark Gray: #333333
 * Gold Accent: #D4AF37
 * White: #FFFFFF
 */

:root {
  --acc-red: #E32027;
  --acc-red-hover: #c41319;
  --acc-black: #111111;
  --acc-dark: #1a1a1a;
  --acc-gray: #333333;
  --acc-light-gray: #f4f5f7;
  --acc-border: #e2e8f0;
  --acc-gold: #D4AF37;
  --acc-gold-hover: #b89628;
  --acc-white: #FFFFFF;
  --acc-font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --acc-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --acc-shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.15);
}

body {
  font-family: var(--acc-font-main);
  color: var(--acc-gray);
  background-color: #fbfbfb;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--acc-black);
  letter-spacing: -0.02em;
}

.text-acc-red { color: var(--acc-red) !important; }
.text-acc-gold { color: var(--acc-gold) !important; }
.text-acc-dark { color: var(--acc-dark) !important; }
.bg-acc-red { background-color: var(--acc-red) !important; }
.bg-acc-black { background-color: var(--acc-black) !important; }
.bg-acc-gold { background-color: var(--acc-gold) !important; }
.bg-acc-dark { background-color: var(--acc-dark) !important; }
.border-acc-red { border-color: var(--acc-red) !important; }
.border-acc-gold { border-color: var(--acc-gold) !important; }

/* Buttons */
.btn-acc-red {
  background-color: var(--acc-red);
  color: #fff;
  border: 1px solid var(--acc-red);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(227, 32, 39, 0.35);
}
.btn-acc-red:hover {
  background-color: var(--acc-red-hover);
  border-color: var(--acc-red-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 32, 39, 0.45);
}

.btn-acc-gold {
  background-color: var(--acc-gold);
  color: #111;
  border: 1px solid var(--acc-gold);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-acc-gold:hover {
  background-color: var(--acc-gold-hover);
  border-color: var(--acc-gold-hover);
  color: #111;
  transform: translateY(-2px);
}

.btn-acc-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-acc-outline-white:hover {
  background: #fff;
  color: var(--acc-black);
}

.btn-acc-dark {
  background-color: var(--acc-black);
  color: #fff;
  border: 1px solid var(--acc-black);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  transition: all 0.25s ease;
}
.btn-acc-dark:hover {
  background-color: #252525;
  color: #fff;
  transform: translateY(-2px);
}

/* Header & Top Bar */
.top-emergency-bar {
  background: linear-gradient(90deg, #111 0%, #222 100%);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--acc-red);
}
.pulse-sos-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(227, 32, 39, 0.2);
  color: #ff5e62;
  border: 1px solid var(--acc-red);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  animation: pulseSOS 1.8s infinite;
}
@keyframes pulseSOS {
  0% { box-shadow: 0 0 0 0 rgba(227, 32, 39, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(227, 32, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 32, 39, 0); }
}

/* Main Navbar */
.acc-navbar {
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
}
.acc-navbar .navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.acc-navbar .nav-link {
  font-weight: 600;
  color: #222;
  padding: 0.5rem 0.9rem !important;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.acc-navbar .nav-link:hover,
.acc-navbar .nav-link.active {
  color: var(--acc-red);
}
.acc-navbar .dropdown-menu {
  border-radius: 12px;
  border: 1px solid #eef0f4;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 10px;
}

/* Hero Section */
.hero-automotive-section {
  position: relative;
  background: linear-gradient(135deg, rgba(17,17,17,0.92) 0%, rgba(26,26,26,0.85) 60%, rgba(227,32,39,0.7) 100%),
              url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2000&q=80') center center / cover no-repeat;
  color: #ffffff;
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero-automotive-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 3px 15px rgba(0,0,0,0.6);
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #e2e8f0;
  line-height: 1.6;
  max-width: 650px;
}
.hero-badge-tag {
  display: inline-block;
  background: rgba(227, 32, 39, 0.25);
  border: 1px solid var(--acc-red);
  color: #fff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.hero-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  transition: transform 0.2s ease;
}
.hero-stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.16);
}

/* Service Pillars */
.pillar-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f0f2f5;
  box-shadow: var(--acc-shadow);
  padding: 2rem 1.75rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--acc-red);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--acc-shadow-lg);
  border-color: #e0e4eb;
}
.pillar-card:hover::before {
  opacity: 1;
}
.pillar-icon-box {
  width: 65px;
  height: 65px;
  border-radius: 14px;
  background: rgba(227, 32, 39, 0.08);
  color: var(--acc-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.pillar-card:hover .pillar-icon-box {
  background: var(--acc-red);
  color: #ffffff;
}

/* Pricing Section */
.pricing-card {
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #e9ecef;
  box-shadow: var(--acc-shadow);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-card.popular {
  border-color: var(--acc-red);
  transform: scale(1.04);
  box-shadow: 0 15px 40px rgba(227, 32, 39, 0.18);
}
.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
}
.pricing-card.popular:hover {
  transform: translateY(-8px) scale(1.06);
}
.popular-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--acc-red) 0%, #b8141a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 20px;
  border-radius: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(227,32,39,0.3);
}
.plan-price {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--acc-black);
}
.plan-price span {
  font-size: 1.1rem;
  font-weight: 500;
  color: #718096;
}

/* Digital Membership Card (3D Flip & Wallet Experience) */
.card-flip-container {
  perspective: 1200px;
  width: 100%;
  max-width: 480px;
  height: 290px;
  margin: 0 auto;
}
.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  cursor: pointer;
}
.card-flip-inner.flipped {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.card-face-front {
  background: linear-gradient(135deg, #161616 0%, #282828 50%, #0d0d0d 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #ffffff;
}
.card-face-front::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(227,32,39,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.card-face-front::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--acc-red) 0%, var(--acc-gold) 100%);
}
.card-face-back {
  background: linear-gradient(135deg, #1c1c1c 0%, #111111 100%);
  border: 1px solid #444;
  color: #fff;
  transform: rotateY(180deg);
}
.card-chip {
  width: 48px;
  height: 36px;
  background: linear-gradient(135deg, #d4af37 0%, #f7e089 50%, #aa851d 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.card-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0,0,0,0.3);
}
.card-number-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.35rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.magnetic-stripe {
  background: #000;
  height: 44px;
  margin: -24px -24px 15px -24px;
}

/* Service Request Dispatch Status Timeline */
.dispatch-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
}
.dispatch-timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}
.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}
.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.timeline-step.completed .timeline-dot {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.timeline-step.active .timeline-dot {
  background: var(--acc-red);
  border-color: var(--acc-red);
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(227, 32, 39, 0.2);
  animation: pulseSOS 2s infinite;
}
.timeline-step.active .timeline-title,
.timeline-step.completed .timeline-title {
  color: var(--acc-black);
  font-weight: 700;
}

/* Portal Sidebars */
.portal-sidebar {
  background: #111111;
  color: #e2e8f0;
  min-height: 100vh;
  padding: 1.5rem 1rem;
}
.portal-sidebar .nav-link {
  color: #cbd5e1;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}
.portal-sidebar .nav-link i {
  width: 26px;
  font-size: 1.1rem;
}
.portal-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.portal-sidebar .nav-link.active {
  background: var(--acc-red);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(227, 32, 39, 0.4);
}

/* Floating AI Chat Assistant */
.ai-chat-launcher {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1050;
}
.ai-launch-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc-red) 0%, #b8141a 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 25px rgba(227, 32, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ai-launch-btn:hover {
  transform: scale(1.08);
}
.ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 380px;
  max-width: 90vw;
  height: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.25);
  border: 1px solid #eef0f4;
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.ai-chat-window.open {
  display: flex;
  animation: slideUpAi 0.3s ease forwards;
}
@keyframes slideUpAi {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-chat-header {
  background: linear-gradient(135deg, #111 0%, #222 100%);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--acc-red);
}
.ai-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ai-msg.bot {
  background: #ffffff;
  color: #1a1a1a;
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.ai-msg.user {
  background: var(--acc-red);
  color: #ffffff;
  align-self: flex-end;
}
.ai-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ai-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--acc-black);
  transition: all 0.2s ease;
}
.ai-chip:hover {
  background: var(--acc-red);
  color: #fff;
  border-color: var(--acc-red);
}
.ai-chat-footer {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

/* Footer Styling */
.acc-footer {
  background: #0d0d0d;
  color: #94a3b8;
  padding: 80px 0 30px;
  border-top: 4px solid var(--acc-red);
}
.acc-footer h5 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.acc-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.acc-footer a:hover {
  color: var(--acc-red);
}
.acc-footer-bottom {
  border-top: 1px solid #222;
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.85rem;
}

/* Softaculous Installer Specific */
.installer-card {
  max-width: 680px;
  margin: 60px auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.installer-header {
  background: linear-gradient(135deg, #111111 0%, #222222 100%);
  color: #fff;
  padding: 30px;
  text-align: center;
  border-bottom: 3px solid var(--acc-red);
}
