/* ==========================================================================
   NAM PHUONG STORE - COMPONENTS STYLE SHEET (REALISTIC & MOBILE-FIRST)
   File: css/components.css
   Mô tả: iPhone 15 Pro Titanium Mockup thực tế, Card Kính mờ cao cấp, FAQ, Nút Zalo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. REALISTIC IPHONE 15 PRO TITANIUM MOCKUP
   -------------------------------------------------------------------------- */
.phone-3d-scene {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  perspective: 1000px;
}

.phone-3d-wrapper {
  position: relative;
  transform-style: preserve-3d;
  /* Chuyển động lơ lửng rất nhẹ nhàng, tinh tế và êm mắt */
  animation: floatPhoneRealistic 6s ease-in-out infinite;
  transition: transform 0.25s ease-out;
  width: 100%;
  display: flex;
  justify-content: center;
}

@keyframes floatPhoneRealistic {
  0%, 100% {
    transform: translateY(0px) rotateY(-4deg) rotateX(2deg);
  }
  50% {
    transform: translateY(-10px) rotateY(-2deg) rotateX(1deg);
  }
}

/* Thân máy iPhone 15 Pro Titanium (Màu Titan Đen Cao Cấp) */
.phone-device {
  width: 295px;
  height: 605px;
  background: #000000;
  border-radius: 48px;
  position: relative;
  padding: 10px;
  /* Viền Titan phay xước với ánh kim loại thực tế */
  border: 3.5px solid #363b47;
  outline: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.95),
    0 10px 25px rgba(0, 0, 0, 0.8),
    inset 0 0 3px rgba(255, 255, 255, 0.35);
}

/* Màn hình OLED tràn viền */
.phone-screen {
  width: 100%;
  height: 100%;
  background: #0d0f14;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dynamic Island Chuẩn Apple */
.phone-notch {
  width: 88px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.notch-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #11141c;
  border: 1.5px solid #1a202c;
}

/* Status Bar iOS */
.phone-status-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.4rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f1f5f9;
  z-index: 15;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Header ứng dụng ChatGPT Mobile Chính Thức */
.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 15, 20, 0.9);
}

.model-selector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.84rem;
  color: #ffffff;
}

.model-selector__badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-cyan);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
}

/* Thân nội dung tin nhắn Chat */
.phone-chat-body {
  flex: 1;
  padding: 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
}

.chat-msg--user {
  align-self: flex-end;
}

.chat-msg--user .chat-bubble {
  background: #262933;
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  padding: 0.6rem 0.85rem;
  font-size: 0.77rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-msg--ai {
  align-self: flex-start;
  gap: 0.35rem;
  max-width: 94%;
}

.ai-author {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.ai-author svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.chat-msg--ai .chat-bubble {
  background: rgba(22, 27, 38, 0.8);
  color: #e2e8f0;
  border-radius: 18px 18px 18px 4px;
  padding: 0.7rem 0.85rem;
  font-size: 0.76rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Thẻ Canvas & File trong tin nhắn */
.chat-canvas-card {
  margin-top: 0.5rem;
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.canvas-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #cbd5e1;
}

.canvas-status {
  font-size: 0.62rem;
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Thanh Prompt phía dưới */
.phone-prompt-bar {
  padding: 0.6rem 0.85rem 0.85rem;
  background: rgba(13, 15, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt-input-box {
  background: #181c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.75rem;
}

.prompt-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.send-btn-mock {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Badges Tinh Gọn (Gọn gàng, thanh lịch, bớt rườm rà) */
.floating-badge {
  position: absolute;
  z-index: 25;
  background: rgba(18, 22, 33, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.floating-badge--top-right {
  top: 8%;
  right: -10px;
}

.floating-badge--bottom-left {
  bottom: 10%;
  left: -10px;
}

.badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
}

.badge-text-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

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

@media (min-width: 1024px) {
  .phone-device {
    width: 320px;
    height: 645px;
  }

  .floating-badge--top-right {
    right: -25px;
  }

  .floating-badge--bottom-left {
    left: -25px;
  }
}

/* --------------------------------------------------------------------------
   2. REALISTIC PRICING CARD (KÍNH MỜ CAO CẤP, KHÔNG VIỀN NEON LÒE LOẸT)
   -------------------------------------------------------------------------- */
.pricing-card-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 2rem 1.4rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.pricing-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.pricing-card__badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.pricing-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.pricing-card__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Khu vực hiển thị giá tiền - Tối ưu chống tràn màn hình nhỏ */
.pricing-card__price-box {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-main {
  font-size: clamp(2.3rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-original {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: auto;
}

/* Checklist quyền lợi */
.pricing-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.8rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.check-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  margin-top: 1px;
}

.check-text strong {
  color: #ffffff;
}

.pricing-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card__actions .btn {
  width: 100%;
}

.pricing-card__guarantee {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .pricing-card {
    padding: 2.6rem 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   3. ALERT BOX (KHUNG LƯU Ý THỰC TẾ)
   -------------------------------------------------------------------------- */
.alert-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.alert-box__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
}

.alert-box__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.alert-box__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fcd34d;
}

.alert-box__text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. ACCORDION FAQ
   -------------------------------------------------------------------------- */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.accordion-item.is-open {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
}

.accordion-header {
  width: 100%;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 52px;
}

.accordion-header:hover {
  color: #ffffff;
}

.accordion-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.25rem;
}

.accordion-item.is-open .accordion-content {
  padding-bottom: 1.25rem;
}

.accordion-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.9rem;
}

.accordion-body strong {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. FLOATING ZALO BUTTON (NÚT NỔI ZALO GỌN GÀNG, SANG TRỌNG)
   -------------------------------------------------------------------------- */
.floating-zalo-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #0068ff;
  color: #ffffff;
  padding: 0.55rem 0.95rem 0.55rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  touch-action: manipulation;
}

.floating-zalo-btn:hover, .floating-zalo-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 104, 255, 0.6);
  color: #ffffff;
}

.floating-zalo-icon {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0068ff;
}

.floating-zalo-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.floating-zalo-label {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.9;
}

.floating-zalo-phone {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

@media (min-width: 768px) {
  .floating-zalo-btn {
    bottom: 28px;
    right: 28px;
    padding: 0.65rem 1.15rem 0.65rem 0.75rem;
  }

  .floating-zalo-icon {
    width: 36px;
    height: 36px;
  }

  .floating-zalo-label {
    font-size: 0.72rem;
  }

  .floating-zalo-phone {
    font-size: 0.94rem;
  }
}

/* --------------------------------------------------------------------------
   6. MODEL SHOWCASE & TAGS (GPT-6 ASTRA, GPT-5, O-SERIES, GPT-4O)
   -------------------------------------------------------------------------- */
.model-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.model-pill-item {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.model-pill-item--highlight {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
}

.model-pill-item--green {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--accent-green);
}

.models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.model-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}

.model-card--featured {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(20, 27, 42, 0.9);
}

.model-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

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

.model-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.model-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.model-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

