/**
 * FEATURES CSS - Các tính năng bổ sung
 * thuetaikhoan.net
 * Updated: 2025-12-05
 */

/* ============================================
   GUIDE + PAYMENT SECTION (2 CỘT)
   ============================================ */
.guide-payment-section {
  padding: 50px 0;
  background: #f8fafc;
}

.guide-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .guide-payment-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CỘT TRÁI: HƯỚNG DẪN
   ============================================ */
.guide-column {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e5e7eb;
}

.guide-column-title {
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 6px;
}

.guide-column-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 18px;
}

.guide-tip {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 24px;
}

.guide-tip-link {
  color: #f97316;
  font-weight: 700;
  text-decoration: underline;
}

.guide-step-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.guide-step-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guide-step-icon-green {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #10b981;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.guide-step-content {
  flex: 1;
}

.guide-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.guide-step-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* ============================================
   CỘT PHẢI: THANH TOÁN
   ============================================ */
.payment-column {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e5e7eb;
}

.payment-column-title {
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 6px;
}

.payment-column-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}

/* Payment Tabs */
.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.payment-tab {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -1px;
}

.payment-tab:hover {
  color: #1f2937;
}

.payment-tab.active {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

/* Payment Details */
.payment-details {
  margin-bottom: 20px;
}

.payment-detail {
  display: none;
  text-align: center;
  padding: 24px;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}

.payment-detail.active {
  display: block;
}

.payment-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}

.payment-detail-icon.momo-icon {
  background: linear-gradient(135deg, #a50064 0%, #d82d8b 100%);
}

.payment-detail-icon.vnpay-icon {
  background: linear-gradient(135deg, #0066b3 0%, #0099e5 100%);
}

.payment-detail-icon.bank-icon {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
}

.payment-detail-icon.crypto-icon {
  background: linear-gradient(135deg, #f7931a 0%, #ffb74d 100%);
}

.payment-detail-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.payment-detail-type {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

.payment-info-list {
  text-align: left;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.payment-info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.payment-info-item:last-child {
  border-bottom: none;
}

.payment-info-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.payment-info-value {
  font-size: 13px;
  color: #1f2937;
  font-weight: 600;
}

/* Payment Note */
.payment-note-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 13px;
  color: #1e40af;
}

.payment-note-box svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   1. NÚT LIÊN HỆ NỔI (GỘP)
   ============================================ */
.contact-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Nút toggle chính */
.contact-float-toggle {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #1e40af;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.4);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.contact-float-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(30, 64, 175, 0.5);
}

.toggle-icon-open,
.toggle-icon-close {
  position: absolute;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.contact-float.open .toggle-icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

.contact-float.open .toggle-icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

.contact-float.open .contact-float-toggle {
  background: #dc2626;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

/* Container các nút con */
.contact-float-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.contact-float.open .contact-float-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Từng nút con */
.contact-float-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateX(100px);
  opacity: 0;
}

.contact-float.open .contact-float-item {
  transform: translateX(0);
  opacity: 1;
}

.contact-float.open .contact-float-item:nth-child(1) { transition-delay: 0.05s; }
.contact-float.open .contact-float-item:nth-child(2) { transition-delay: 0.1s; }
.contact-float.open .contact-float-item:nth-child(3) { transition-delay: 0.15s; }

.contact-float-item:hover {
  transform: translateX(-5px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.contact-float-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.contact-float-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

/* Màu sắc từng loại */
.contact-float-item.zalo .contact-float-icon {
  background: #0068ff;
}

.contact-float-item.phone .contact-float-icon {
  background: #10b981;
}

.contact-float-item.zalo .contact-float-label { color: #0068ff; }
.contact-float-item.phone .contact-float-label { color: #059669; }

/* Animation cho nút chính */
@keyframes contact-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(30, 64, 175, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(30, 64, 175, 0.6), 0 0 0 8px rgba(30, 64, 175, 0.1); }
}

.contact-float:not(.open) .contact-float-toggle {
  animation: contact-pulse 2s infinite;
}

/* ============================================
   2. COUNTDOWN FLASH SALE
   ============================================ */
.flash-countdown {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  animation: flash-glow 2s ease-in-out infinite;
}

.flash-countdown-icon {
  font-size: 20px;
  animation: flash-shake 0.5s ease-in-out infinite;
}

.flash-countdown-text {
  font-size: 13px;
}

.flash-countdown-timer {
  display: flex;
  gap: 6px;
}

.flash-countdown-box {
  background: rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 32px;
  text-align: center;
}

.flash-countdown-num {
  font-size: 16px;
  font-weight: 800;
}

.flash-countdown-label {
  font-size: 9px;
  opacity: 0.9;
}

@keyframes flash-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 65, 108, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(255, 65, 108, 0.7); }
}

@keyframes flash-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* ============================================
   3. TRA CỨU ĐƠN HÀNG (KẾT QUẢ)
   ============================================ */
.order-result {
  margin-top: 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: left;
  display: none;
}

.order-result.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.order-result.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  text-align: center;
}

.order-result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  font-size: 13px;
}

.order-result-row:last-child {
  border-bottom: none;
}

.order-result-label {
  color: #6b7280;
}

.order-result-value {
  font-weight: 600;
  color: #374151;
}

.order-status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.order-status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status-badge.paid {
  background: #ecfdf5;
  color: #065f46;
}

.order-status-badge.confirmed {
  background: #dbeafe;
  color: #1e40af;
}

/* ============================================
   4. ĐÁNH GIÁ KHÁCH HÀNG
   ============================================ */
.reviews-section {
  padding: 50px 16px;
  background: #f8fafc;
}

.reviews-container {
  max-width: 1100px;
  margin: 0 auto;
}

.reviews-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.reviews-sub {
  text-align: center;
  color: #6b7280;
  margin-bottom: 30px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.review-info {
  flex: 1;
}

.review-name {
  font-weight: 700;
  color: #1f2937;
}

.review-service {
  font-size: 12px;
  color: #6b7280;
}

.review-stars {
  color: #fbbf24;
  font-size: 14px;
}

.review-text {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
}

.review-date {
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
}

/* ============================================
   5. POPUP THÔNG BÁO MUA HÀNG
   ============================================ */
.purchase-notify {
  position: fixed;
  bottom: 100px;
  left: 24px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9998;
  max-width: 320px;
  transform: translateX(-120%);
  transition: transform 0.4s ease;
}

.purchase-notify.show {
  transform: translateX(0);
}

.purchase-notify-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.purchase-notify-content {
  flex: 1;
}

.purchase-notify-text {
  font-size: 13px;
  color: #374151;
}

.purchase-notify-text strong {
  color: #10b981;
}

.purchase-notify-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.purchase-notify-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: #6b7280;
}

/* ============================================
   6. FAQ SECTION
   ============================================ */
.faq-section {
  padding: 50px 16px;
  background: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.faq-sub {
  text-align: center;
  color: #6b7280;
  margin-bottom: 30px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #667eea;
}

.faq-item.active {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.faq-question {
  padding: 18px 20px;
  background: #f9fafb;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.faq-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 18px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   7. THỐNG KÊ + TRA CỨU GỌN
   ============================================ */
.stats-lookup-section {
  padding: 16px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

.stats-lookup-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Stats mini */
.stats-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-mini-num {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}

.stat-mini-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.stat-mini-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.2);
}

/* Lookup mini */
.lookup-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lookup-mini-label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.lookup-mini-form {
  display: flex;
  gap: 6px;
}

.lookup-mini-input {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  width: 140px;
}

.lookup-mini-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.lookup-mini-input:focus {
  outline: none;
  border-color: #fbbf24;
}

.lookup-mini-btn {
  padding: 8px 14px;
  background: #fbbf24;
  color: #1e3a5f;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lookup-mini-btn:hover {
  background: #f59e0b;
}

.stats-lookup-section .order-result {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .stats-lookup-container {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-mini {
    justify-content: center;
  }
  
  .lookup-mini {
    flex-direction: column;
  }
}

/* ============================================
   8. LOGO ĐỐI TÁC / TOOLS
   ============================================ */
.partners-section {
  padding: 40px 16px;
  background: #f8fafc;
}

.partners-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.partners-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #374151;
}

.partners-sub {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.partner-logo {
  width: 120px;
  height: 60px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.partner-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo-text {
  font-weight: 700;
  font-size: 14px;
  color: #6b7280;
}


/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 575px) {
  .contact-float {
    bottom: 16px;
    right: 16px;
  }
  
  .contact-float-toggle {
    width: 54px;
    height: 54px;
  }
  
  .purchase-notify {
    left: 12px;
    right: 12px;
    max-width: none;
  }
  
  .flash-countdown {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

