/**
 * Module CSS: 40-conversion-v3-additions-safety-shield-calculator-chatbot-lucky-wheel-micro-interactions.css
 * Trích nguyên văn dòng 2867-3309 của pctech-homepage.css gốc.
 * Không đổi nội dung — chỉ tách file theo đúng marker sẵn có trong code gốc.
 */
    /* PCTech fix: bản gốc dùng var(--bg), var(--border), var(--bg-card),
       var(--gray-400) ở 14 chỗ trong file này (widget chọn thiết bị/triệu
       chứng của Price Calculator) nhưng CHƯA TỪNG định nghĩa các biến này
       ở đâu trong toàn bộ 41 file CSS. Biến undefined -> trình duyệt bỏ
       qua cả dòng khai báo -> nền/viền/chữ "mượn" style mặc định của
       Bricks (xám nhạt khó đọc). Định nghĩa lại đúng theo bộ token sẵn có. */
    :root {
      --bg: var(--gray-50);
      --border: var(--gray-200);
      --bg-card: var(--white);
      --gray-400: #8a97ac;
    }
    /* ── CONVERSION V3 ADDITIONS (Safety Shield, Calculator, Chatbot, Lucky Wheel, Micro-interactions) ── */
    /* Pulse Dots for statuses */
    .pulse-dot-green {
      display: inline-block;
      width: 8px;
      height: 8px;
      background-color: var(--green);
      border-radius: 50%;
      margin-right: 6px;
      position: relative;
    }
    .pulse-dot-green::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: var(--green);
      border-radius: 50%;
      animation: pulse-ring-green 1.6s infinite;
      top: 0;
      left: 0;
    }
    @keyframes pulse-ring-green {
      0% { transform: scale(1); opacity: 0.8; }
      100% { transform: scale(2.6); opacity: 0; }
    }

    /* Micro-interactions on Service Cards & Icons */
    .service-card {
      transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
    }
    .service-card:hover {
      border-color: rgba(245, 158, 11, 0.45) !important;
      box-shadow: 0 12px 28px rgba(245, 158, 11, 0.12) !important;
    }
    .service-card:hover .service-icon {
      animation: card-icon-bounce 0.55s ease-in-out;
    }
    @keyframes card-icon-bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px) scale(1.12); }
    }

    /* Remote Safety Shield */
    .safety-shield-badge {
      display: inline-flex;
      align-items: center;
      background: rgba(0, 168, 107, 0.12);
      border: 1px solid rgba(0, 168, 107, 0.25);
      color: var(--green);
      font-size: 0.8rem;
      padding: 5px 12px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: 600;
      margin-top: 10px;
      transition: background 0.2s, transform 0.2s;
    }
    .safety-shield-badge:hover {
      background: rgba(0, 168, 107, 0.22);
      transform: translateY(-1px);
    }
    .safety-shield-badge i {
      margin-right: 5px;
    }

    /* Price & Diagnostic Calculator */
    .calc-widget {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 24px;
      margin: 25px auto;
      max-width: 960px;
      box-shadow: var(--shadow);
    }
    .calc-widget-title {
      font-size: 1.3rem;
      color: var(--blue-dark);
      margin-bottom: 12px;
      text-align: center;
      font-weight: 700;
    }
    .calc-widget-layout {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 24px;
      align-items: start;
    }
    @media (max-width: 768px) {
      .calc-widget-layout {
        grid-template-columns: 1fr;
        gap: 20px;
      }
    }
    .calc-widget-group-title {
      font-weight: 600;
      margin-bottom: 12px;
      font-size: 0.88rem;
      color: var(--gray-400);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .calc-device-list-horizontal {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }
    @media (max-width: 480px) {
      .calc-device-list-horizontal {
        flex-direction: column;
      }
    }
    .calc-device-list-horizontal .calc-widget-opt {
      flex: 1;
      justify-content: center;
    }
    .calc-widget-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .calc-widget-opt {
      display: flex;
      align-items: center;
      padding: 12px 14px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.9rem;
      color: var(--gray-700);
      transition: all 0.2s;
      user-select: none;
    }
    .calc-widget-opt:hover {
      border-color: var(--blue);
      background: rgba(11, 60, 109, 0.04);
    }
    .calc-widget-opt input {
      margin-right: 12px;
      width: 18px;
      height: 18px;
      accent-color: var(--blue);
      cursor: pointer;
    }
    .calc-widget-opt.selected {
      border-color: var(--blue);
      background: rgba(11, 60, 109, 0.06);
      font-weight: 600;
    }
    
    /* AI Report Card Styling */
    .calc-ai-report-card {
      background: linear-gradient(135deg, rgba(13, 74, 143, 0.03), rgba(163, 52, 250, 0.03));
      border: 1px solid rgba(13, 74, 143, 0.12);
      border-radius: 12px;
      padding: 18px;
      margin-bottom: 16px;
    }
    .calc-ai-report-header {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      color: var(--blue-dark);
      font-size: 0.92rem;
      margin-bottom: 10px;
    }
    .ai-sparkle {
      animation: pulse-glow 1.5s infinite alternate;
      display: inline-block;
    }
    @keyframes pulse-glow {
      0% { transform: scale(1); filter: drop-shadow(0 0 1px rgba(163, 52, 250, 0.4)); }
      100% { transform: scale(1.15); filter: drop-shadow(0 0 4px rgba(163, 52, 250, 0.8)); }
    }
    .calc-ai-recommendation {
      font-size: 0.85rem;
      color: var(--gray-600);
      line-height: 1.5;
      background: var(--white);
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .calc-ai-meter-item {
      font-size: 0.8rem;
    }
    .calc-ai-meter-label {
      display: flex;
      justify-content: space-between;
      margin-bottom: 4px;
    }
    .calc-ai-meter-bar {
      height: 6px;
      background: var(--border);
      border-radius: 10px;
      overflow: hidden;
    }
    .calc-ai-meter-fill {
      height: 100%;
      border-radius: 10px;
      transition: width 0.3s ease, background-color 0.3s ease;
    }
    .severity-low { color: #22c55e; }
    .severity-medium { color: #f59e0b; }
    .severity-high { color: #ef4444; }

    /* Result Card Styling */
    .calc-widget-result {
      background: rgba(245, 158, 11, 0.04);
      border: 1px dashed var(--orange);
      border-radius: 12px;
      padding: 16px;
      text-align: center;
    }
    .calc-widget-price {
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--orange);
      margin: 6px 0;
    }
    .calc-widget-time {
      font-size: 0.85rem;
      color: var(--gray-500);
    }
    .calc-guarantees {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px dashed rgba(13, 74, 143, 0.15);
      text-align: left;
    }
    .calc-guarantee-item {
      font-size: 0.78rem;
      color: var(--gray-600);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Live AI Demo Assistant */
    .ai-chat-preview {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow);
      max-width: 680px;
      margin: 25px auto;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: 380px;
    }
    .ai-chat-preview-header {
      background: var(--blue-dark);
      color: #fff;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
    }
    .ai-chat-preview-status {
      display: flex;
      align-items: center;
      font-size: 0.82rem;
      gap: 6px;
      background: rgba(255,255,255,0.1);
      padding: 3px 10px;
      border-radius: 20px;
    }
    .ai-chat-preview-messages {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      background: var(--bg);
    }
    .ai-chat-preview-msg {
      max-width: 75%;
      padding: 11px 15px;
      border-radius: 14px;
      font-size: 0.88rem;
      line-height: 1.45;
      animation: chat-fade-in 0.3s ease-out;
    }
    @keyframes chat-fade-in {
      from { transform: translateY(8px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    .ai-chat-preview-msg.bot {
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text);
      align-self: flex-start;
      border-bottom-left-radius: 3px;
    }
    .ai-chat-preview-msg.user {
      background: var(--blue);
      color: #fff;
      align-self: flex-end;
      border-bottom-right-radius: 3px;
    }
    .ai-chat-preview-input-container {
      padding: 12px 16px;
      border-top: 1px solid var(--border);
      background: var(--bg-card);
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .ai-chat-preview-input {
      flex: 1;
      padding: 10px 16px;
      border: 1px solid var(--border);
      border-radius: 24px;
      background: var(--bg);
      color: var(--text);
      font-size: 0.88rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .ai-chat-preview-input:focus {
      border-color: var(--blue);
    }
    .ai-chat-preview-send {
      background: var(--blue);
      color: #fff;
      border: none;
      padding: 10px 18px;
      border-radius: 24px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.85rem;
      transition: background 0.2s;
    }
    .ai-chat-preview-send:hover {
      background: var(--blue-dark);
    }

    /* Lucky Wheel Gamification */
    .lucky-wheel-trigger {
      position: fixed;
      bottom: 220px;
      left: 20px;
      background: linear-gradient(135deg, var(--orange), #ef4444);
      color: #fff;
      border: none;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      z-index: 99;
      animation: lucky-pulse 2s infinite;
      transition: transform 0.2s;
    }
    .lucky-wheel-trigger:hover {
      transform: scale(1.1);
    }
    @keyframes lucky-pulse {
      0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
      70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
      100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    }
    .lucky-wheel-modal-body {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 10px;
    }
    .lucky-wheel-stage {
      position: relative;
      width: 290px;
      height: 290px;
      margin: 15px auto;
      border: 8px solid var(--blue-dark);
      border-radius: 50%;
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
      overflow: hidden;
      background: #f1f5f9;
    }
    .lucky-wheel-canvas {
      width: 100%;
      height: 100%;
      transform: rotate(0deg);
      transition: transform 4.5s cubic-bezier(0.15, 0.85, 0.15, 1);
    }
    .lucky-wheel-pointer {
      position: absolute;
      top: -3px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 14px solid transparent;
      border-right: 14px solid transparent;
      border-top: 24px solid #ef4444;
      z-index: 10;
    }
    .lucky-wheel-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 46px;
      height: 46px;
      background: #fff;
      border: 4px solid var(--blue-dark);
      border-radius: 50%;
      z-index: 9;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--blue-dark);
      font-size: 0.75rem;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    .lucky-wheel-form {
      width: 100%;
      margin-top: 15px;
    }

    /* Shimmer Effect for Loading state */
    .loading-shimmer-effect {
      background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
      background-size: 200% 100%;
      animation: shimmer-swipe 1.4s infinite;
    }
    @keyframes shimmer-swipe {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
