.contact { margin-top:12px; }
.contact > summary { list-style:none; cursor:pointer; display:inline-inline; display:inline-block; }
.contact > summary::-webkit-details-marker { display:none; }
.contact p { margin:10px 0 0; }
.card details.buy { margin-top:12px; }
.card details.buy > summary { list-style:none; cursor:pointer; display:inline-block; }
.card details.buy > summary::-webkit-details-marker { display:none; }
.card details.buy p { margin:10px 0 0; }
:root {
  --brand: #16a34a;
  --ink: #0f172a;
  --muted: #64748b;
  --b: #e5e7eb;
  --r: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: 'Inter', Arial, sans-serif; line-height:1.6; color:var(--ink); }
a { text-decoration:none; color:var(--ink); }

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

.header { background:#fff; border-bottom:1px solid var(--b); position: sticky; top: 0; z-index: 1100; }
.nav { display:flex; justify-content:space-between; align-items:center; }

/* Desktop Navigation */
.desktop-nav { display: flex; }
.desktop-nav a { 
  margin-left:16px; 
  font-weight:600; 
  color: var(--ink);
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.active {
  right: 8px; /* shift a bit to the left when visible for symmetric spacing */
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 12px; /* match outer padding */
  border-bottom: 1px solid var(--b);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  padding: 15px 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--b);
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--brand);
  padding-left: 10px;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav a:hover {
  color: var(--brand);
  font-weight: 700;
  background: rgba(22, 163, 74, 0.1);
  transform: translateY(-1px);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav a:hover::after {
  width: 80%;
}

/* Active menu item when section in view */
.nav a.active,
.mobile-nav a.active {
  color: var(--brand);
  font-weight: 700;
}
.nav a.active::after {
  width: 80%;
}

.logo { 
  font-size: 24px; 
  font-weight: 800; 
  background: linear-gradient(135deg, var(--brand), #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.hero { background:radial-gradient(circle at top right,#052e16,#00130a); color:#fff; padding:60px 0; }
.hero-inner { display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:center; }
.hero img { max-width:100%; height:auto; border-radius:var(--r); box-shadow:0 8px 24px rgba(0,0,0,0.2); border:1px solid rgba(0,0,0,0.15); }

/* Subtle up-down animation for hero header image */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.float-anim {
  animation: floatY 3s ease-in-out infinite;
  will-change: transform;
}

.hero-demo-link {
  display: block;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-demo-link:hover {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

.hero-demo-link:hover img {
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
  border-color: var(--brand);
}

.hero-demo-link::after {
  content: '▶Xem video hướng dẫn tool';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(22, 163, 74, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-demo-link:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}
.hero h1 { font-size:40px; margin:0 0 12px; }
.hero p { font-size:18px; }

.section { padding:60px 0; }
.section[id] { scroll-margin-top: 72px; }
.alt { background:#f9fafb; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:start; }
.grid.balanced { grid-template-columns:1fr 1fr; align-items:center; }
.grid .text { max-width: 560px; }
.grid .text h2 { margin-top:0; }
.grid .text h3 { margin:20px 0 10px; }
.grid .text ul { margin:0 0 10px 0; padding-left:0; list-style:none; }
.grid .text li { margin:6px 0; position: relative; padding-left: 26px; }
.grid .text li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--brand);
  font-weight: 900;
}
.grid img { width:100%; max-width:640px; height:auto; border-radius:var(--r); box-shadow:0 4px 12px rgba(0,0,0,0.1); border:1px solid rgba(0,0,0,0.15); display:block; margin:0 auto; transition: all 0.3s ease; }

.grid img:hover {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
  border-color: var(--brand);
}
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:20px; }
.screenshot { display:block; width:100%; max-width:640px; height:auto; margin:20px auto 0; border-radius:var(--r); border:1px solid rgba(0,0,0,0.15); box-shadow:0 4px 12px rgba(0,0,0,0.08); }

.card { border:1px solid var(--b); border-radius:var(--r); padding:20px; background:#fff; text-align:center; }
.card ul { text-align:left; margin:12px 0 0 18px; }
.card li { margin:6px 0; }
.card h3 { margin-top:0; }
.price { font-size:24px; font-weight:700; margin:8px 0; }

/* Ensure equal width/action area for buttons inside cards (mobile & desktop) */
.card .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.btn { 
  display:inline-block; 
  padding:12px 18px; 
  border-radius:var(--r); 
  border:1px solid var(--ink); 
  font-weight:600; 
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.btn.primary { 
  background:var(--brand); 
  border-color:var(--brand); 
  color:#fff; 
}

.btn.primary:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
}

.btn + .btn { margin-left:12px; }

/* Style cho nút trong hero section */
.hero .btn:not(.primary) { 
  background: rgba(255, 255, 255, 0.1); 
  border-color: rgba(255, 255, 255, 0.3); 
  color: #fff; 
  backdrop-filter: blur(10px);
}

.hero .btn:not(.primary):hover { 
  background: rgba(255, 255, 255, 0.2); 
  border-color: rgba(255, 255, 255, 0.5); 
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.hero .btn.primary:hover {
  background: #15803d;
  border-color: #15803d;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
}

details { margin:10px 0; }
details.demo { margin-top:14px; }
details.demo > summary { list-style:none; cursor:pointer; display:inline-block; }
details.demo > summary::-webkit-details-marker { display:none; }

.footer { border-top:1px solid var(--b); padding:20px 0; text-align:center; font-size:14px; color:var(--muted); }

/* Pricing Section Styles */
.pricing-section {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

.pricing-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-group {
  margin-bottom: 60px;
}

.pricing-subtitle {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  color: white;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: white;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card-duration {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.card-price {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.currency {
  font-size: 12px;
  opacity: 0.8;
}

/* Card Colors */
.card-1 {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.card-2 {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.card-3 {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.card-4 {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.card-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  position: relative;
}

.card-premium::before {
  content: '⭐';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
}

.pricing-group .buy {
  text-align: center;
  margin-top: 20px;
}

/* Card Buy Button Styles */
.card-btn {
  margin-top: 15px;
  display: block;
  text-align: center;
  font-size: 12px !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  text-decoration: none;
}

.card-btn:hover {
  transform: translateY(-1px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4) !important;
}

@media(max-width:900px) {
  .hero-inner, .grid { grid-template-columns:1fr; }
  .grid.balanced { grid-template-columns: 1fr; }
  .grid .text { max-width: 100%; }
  .grid3 { grid-template-columns:1fr; }
  
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .pricing-title {
    font-size: 28px;
  }
  
  .pricing-subtitle {
    font-size: 20px;
  }
  
  .card-price {
    font-size: 18px;
  }
}

@media(max-width:768px) {
  /* Hide desktop nav, show mobile menu button */
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  /* Adjust header padding */
  .nav {
    padding: 10px 12px;
  }
  
  /* Mobile sidebar adjustments */
  .mobile-sidebar {
    width: 280px;
  }
  
  .sidebar-header {
    padding: 15px;
  }
  
  .mobile-nav {
    padding: 15px;
  }
  
  .mobile-nav a {
    padding: 12px 0;
    font-size: 16px;
  }
}

@media(max-width:600px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .pricing-card {
    min-height: 100px;
  }

  /* Mobile: make contact cards' buttons equal width */
#contact .grid { gap: 16px; }
#contact .card { display: flex; flex-direction: column; }
#contact .card .btn { width: 100%; margin-top: auto; }
}

/* Tutorial Page Styles */
.tutorial-category {
  margin-bottom: 50px;
}

.tutorial-category h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 10px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.tutorial-card {
  background: #fff;
  border: 1px solid var(--b);
  border-radius: var(--r);
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.tutorial-thumbnail {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}

.tutorial-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tutorial-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tutorial-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  flex-shrink: 0;
  line-height: 1.3;
}

.tutorial-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 10px;
  flex-grow: 1;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
  border-color: var(--brand);
}

.tutorial-card:hover .tutorial-thumbnail img {
  transform: scale(1.05);
}

.tutorial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.tutorial-meta .date {
  background: rgba(22, 163, 74, 0.1);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  height: 24px;
}

.tutorial-meta .read-time {
  font-style: italic;
  display: flex;
  align-items: center;
  height: 24px;
}

.tutorial-card .btn {
  width: 100%;
  text-align: center;
  font-size: 14px;
  padding: 10px 16px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

/* Tutorial Article Styles */
.tutorial-article {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r);
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.back-btn {
  background: var(--muted);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: var(--ink);
  transform: translateX(-2px);
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--muted);
}

.article-meta span {
  background: rgba(22, 163, 74, 0.1);
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.tutorial-article h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--ink);
}

.tutorial-article h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 25px 0 15px;
  color: var(--ink);
}

.tutorial-article p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--ink);
}

.tutorial-article ul, .tutorial-article ol {
  margin: 15px 0;
  padding-left: 20px;
}

.tutorial-article li {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

/* Active navigation link */
.nav a.active {
  color: var(--brand);
  font-weight: 700;
}

.nav a.active::after {
  width: 80%;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid var(--b);
  background: white;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.page-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-ellipsis {
  padding: 8px 4px;
  color: var(--muted);
  font-weight: 600;
}

/* Auth modal styles removed - no longer needed */

@media(max-width: 600px) {
  .pagination {
    gap: 5px;
  }
  
  .pagination-btn {
    padding: 6px 8px;
    font-size: 12px;
    min-width: 32px;
    height: 32px;
  }
}
