/* ==========================================================================
   Theme 5 — "Profle" landing page
   Plain CSS written as .scss so Mix compiles it; a copy is served directly
   from public/assets/css/home5/home5.css (asset(), not mix()).
   ========================================================================== */
:root {
  --h5-primary: #7638f9;
  --h5-primary-600: #6a2ff0;
  --h5-primary-100: #efe8ff;
  --h5-primary-50: #f7f3ff;
  --h5-ink: #14121f;
  --h5-ink-2: #3d3a4b;
  --h5-muted: #6f6c7c;
  --h5-line: #e8e6f0;
  --h5-bg: #ffffff;
  --h5-bg-soft: #f7f6fb;
  --h5-success: #16a34a;
  --h5-radius: 20px;
  --h5-radius-sm: 12px;
  --h5-shadow: 0 10px 30px rgba(20, 18, 31, 0.08);
  --h5-shadow-lg: 0 30px 60px rgba(20, 18, 31, 0.14);
  --h5-grad: linear-gradient(135deg, #8b5cf6 0%, #7638f9 55%, #5b21b6 100%);
  --h5-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.home5 {
  font-family: var(--h5-font);
  color: var(--h5-ink);
  background: var(--h5-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.home5 h1, .home5 h2, .home5 h3, .home5 h4 { font-weight: 700; letter-spacing: -0.02em; color: var(--h5-ink); }
.home5 h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.08; }
.home5 h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; }
.home5 h3 { font-size: 1.25rem; }
.home5 p { color: var(--h5-ink-2); }
.home5 a { color: var(--h5-primary); text-decoration: none; }
.home5 .container { max-width: 1200px; }
.home5 section { padding: 88px 0; }
@media (max-width: 767px) { .home5 section { padding: 60px 0; } }

/* helpers */
.h5-muted { color: var(--h5-muted) !important; }
.h5-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--h5-primary-100); color: var(--h5-primary-600);
  font-size: 0.85rem; font-weight: 600;
}
.h5-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h5-primary); box-shadow: 0 0 0 4px rgba(118, 56, 249, 0.18); }
.h5-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.h5-section-head p { font-size: 1.1rem; margin: 12px 0 0; }
.h5-grad-text { background: var(--h5-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.h5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.h5-btn:hover { transform: translateY(-1px); }
.h5-btn-primary { background: var(--h5-primary); color: #fff !important; box-shadow: 0 10px 24px rgba(118, 56, 249, 0.32); }
.h5-btn-primary:hover { background: var(--h5-primary-600); box-shadow: 0 14px 30px rgba(118, 56, 249, 0.4); }
.h5-btn-outline { background: #fff; color: var(--h5-ink) !important; border-color: var(--h5-line); }
.h5-btn-outline:hover { border-color: var(--h5-ink); }
.h5-btn-ghost { background: transparent; color: var(--h5-ink) !important; padding-inline: 14px; }
.h5-btn-ghost:hover { background: var(--h5-bg-soft); }
.h5-btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.h5-btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.h5-btn-white { background: #fff; color: var(--h5-primary-600) !important; }

/* ---------------- header ---------------- */
.h5-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.h5-header.is-scrolled { border-bottom-color: var(--h5-line); box-shadow: 0 6px 24px rgba(20, 18, 31, 0.06); }
.h5-header .h5-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.h5-logo img { height: 40px; width: auto; display: block; }
.h5-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.h5-nav a.h5-link { display: block; padding: 10px 14px; border-radius: 10px; color: var(--h5-ink-2); font-weight: 500; font-size: 0.97rem; }
.h5-nav a.h5-link:hover { background: var(--h5-bg-soft); color: var(--h5-ink); }
.h5-actions { display: flex; align-items: center; gap: 8px; }
.h5-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--h5-line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.h5-burger span { display: block; width: 18px; height: 2px; background: var(--h5-ink); margin: 2.5px 0; transition: .2s; }
.h5-burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.h5-burger.open span:nth-child(2) { opacity: 0; }
.h5-burger.open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.h5-lang .dropdown-toggle { border: 1px solid var(--h5-line); border-radius: 999px; padding: 8px 14px; background: #fff; font-weight: 500; font-size: .92rem; }
.h5-lang .dropdown-toggle::after { margin-inline-start: 8px; }
.h5-lang .dropdown-menu { border: 1px solid var(--h5-line); border-radius: 14px; box-shadow: var(--h5-shadow); padding: 8px; max-height: 340px; overflow: auto; }
.h5-lang .dropdown-item { border-radius: 8px; padding: 8px 10px; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.h5-lang .dropdown-item img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.h5-lang .dropdown-item.active, .h5-lang .dropdown-item:active { background: var(--h5-primary-100); color: var(--h5-primary-600); }
@media (max-width: 991px) {
  .h5-burger { display: inline-flex; }
  .h5-nav-wrap { display: none; position: absolute; inset-inline: 0; top: 76px; background: #fff; border-bottom: 1px solid var(--h5-line); box-shadow: var(--h5-shadow); padding: 12px 16px 20px; }
  .h5-nav-wrap.open { display: block; }
  .h5-nav { flex-direction: column; align-items: stretch; }
  .h5-nav a.h5-link { padding: 12px 14px; font-size: 1.05rem; }
  .h5-nav .h5-actions-mobile { display: flex; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--h5-line); }
  .h5-actions .h5-hide-mobile { display: none; }
}
@media (min-width: 992px) { .h5-nav .h5-actions-mobile { display: none; } }

/* ---------------- hero ---------------- */
.h5-hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.h5-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(45% 45% at 5% 90%, rgba(118, 56, 249, .12), transparent 60%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}
.h5-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.h5-hero h1 { margin: 20px 0 18px; }
.h5-hero .lead { font-size: 1.2rem; max-width: 540px; margin-bottom: 28px; }
.h5-claim { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--h5-line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; box-shadow: var(--h5-shadow); transition: border-color .2s, box-shadow .2s; }
.h5-claim:focus-within { border-color: var(--h5-primary); box-shadow: 0 0 0 4px rgba(118, 56, 249, .15); }
.h5-claim .prefix { color: var(--h5-muted); font-weight: 600; white-space: nowrap; }
.h5-claim input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 600; padding: 10px 6px; color: var(--h5-ink); }
.h5-claim input::placeholder { color: #b5b2c2; font-weight: 500; }
.h5-claim .h5-btn { flex-shrink: 0; }
.h5-claim-msg { margin: 10px 0 0 18px; font-weight: 600; font-size: .92rem; }
.h5-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.h5-hero-note { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: .9rem; color: var(--h5-muted); }
.h5-hero-note span::before { content: "✓"; color: var(--h5-success); font-weight: 700; margin-inline-end: 6px; }

/* phone mockup */
.h5-hero-visual { position: relative; min-height: 560px; display: flex; justify-content: center; align-items: center; }
.h5-phone {
  width: 290px; aspect-ratio: 9 / 19; border-radius: 42px; background: #111; padding: 12px;
  box-shadow: var(--h5-shadow-lg), inset 0 0 0 2px #2c2c2c; position: relative; z-index: 2;
  animation: h5-float 7s ease-in-out infinite;
}
.h5-phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 100px; height: 26px; background: #111; border-radius: 0 0 16px 16px; z-index: 3; }
.h5-phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #fff; }
.h5-phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 9s linear; }
.h5-phone:hover .screen img { object-position: bottom; }
.h5-phone.second { position: absolute; width: 230px; right: 0; bottom: 20px; z-index: 1; opacity: .95; transform: rotate(8deg); animation-delay: -3s; }
.h5-float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--h5-shadow-lg); padding: 12px 16px; display: flex; align-items: center; gap: 12px; z-index: 4; animation: h5-float 6s ease-in-out infinite; }
.h5-float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; color: #fff; background: var(--h5-grad); }
.h5-float .ico.green { background: linear-gradient(135deg, #34d399, #059669); }
.h5-float .ico.amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.h5-float strong { display: block; font-size: .95rem; line-height: 1.2; }
.h5-float small { color: var(--h5-muted); }
.h5-float.f1 { top: 40px; left: 0; animation-delay: -1s; }
.h5-float.f2 { bottom: 120px; left: -10px; animation-delay: -2.5s; }
.h5-float.f3 { top: 140px; right: -6px; animation-delay: -4s; }
@keyframes h5-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.h5-phone.second { animation-name: h5-float-rot; }
@keyframes h5-float-rot { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-10px); } }
@media (max-width: 991px) {
  .h5-hero { padding-top: 40px; }
  .h5-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .h5-hero-visual { min-height: 520px; }
  .h5-float.f2 { left: 0; }
}
@media (max-width: 575px) {
  .h5-phone { width: 240px; }
  .h5-phone.second { display: none; }
  .h5-float { transform: scale(.9); }
  .h5-float.f1 { left: -8px; }
  .h5-float.f3 { right: -12px; }
  .h5-claim { border-radius: 24px; flex-wrap: wrap; padding: 10px; }
  .h5-claim .prefix { padding-inline-start: 8px; }
  .h5-claim .h5-btn { width: 100%; margin-top: 6px; }
}

/* stats strip */
.h5-stats { padding: 0 0 20px; }
.h5-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border: 1px solid var(--h5-line); border-radius: var(--h5-radius); padding: 22px 24px; background: #fff; box-shadow: var(--h5-shadow); }
.h5-stat strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.h5-stat span { color: var(--h5-muted); font-size: .92rem; }
@media (max-width: 767px) { .h5-stats-row { grid-template-columns: repeat(2, 1fr); } }

/* how it works */
.h5-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.h5-step { position: relative; padding: 28px; border-radius: var(--h5-radius); background: var(--h5-bg-soft); border: 1px solid transparent; transition: .2s; }
.h5-step:hover { background: #fff; border-color: var(--h5-line); box-shadow: var(--h5-shadow); transform: translateY(-3px); }
.h5-step .num { width: 44px; height: 44px; border-radius: 14px; background: var(--h5-grad); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 18px; }
.h5-step h3 { margin-bottom: 8px; }
.h5-step p { margin: 0; color: var(--h5-muted); }
@media (max-width: 991px) { .h5-steps { grid-template-columns: 1fr; } }

/* templates gallery */
.h5-templates { background: var(--h5-ink); color: #fff; position: relative; overflow: hidden; }
.h5-templates::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 0%, rgba(139, 92, 246, .35), transparent 70%); }
.h5-templates .container { position: relative; }
.h5-templates h2 { color: #fff; }
.h5-templates .h5-section-head p { color: rgba(255, 255, 255, .7); }
.h5-tgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.h5-tcard { position: relative; border-radius: 18px; overflow: hidden; background: #1f1c2c; aspect-ratio: 9 / 16; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); transition: transform .25s; }
.h5-tcard:hover { transform: translateY(-6px); }
.h5-tcard img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 8s linear; display: block; }
.h5-tcard:hover img { object-position: bottom; }
.h5-tcard .tag { position: absolute; inset-inline-start: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 18, 31, .75); font-size: .75rem; font-weight: 600; color: #fff; backdrop-filter: blur(6px); }
@media (max-width: 991px) { .h5-tgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .h5-tgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* features */
.h5-features { background: var(--h5-bg-soft); }
.h5-fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h5-fcard { background: #fff; border: 1px solid var(--h5-line); border-radius: var(--h5-radius); padding: 28px; transition: .2s; height: 100%; }
.h5-fcard:hover { box-shadow: var(--h5-shadow); transform: translateY(-3px); border-color: transparent; }
.h5-fcard .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--h5-primary-100); color: var(--h5-primary-600); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px; }
.h5-fcard h3 { font-size: 1.15rem; margin-bottom: 8px; }
.h5-fcard p { margin: 0; color: var(--h5-muted); font-size: .97rem; }
.h5-fcard .h5-fimg { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; margin-bottom: 18px; }
@media (max-width: 991px) { .h5-fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .h5-fgrid { grid-template-columns: 1fr; } }

/* about (alternating) */
.h5-about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.h5-about-row.reverse .h5-about-media { order: 2; }
.h5-about-media { border-radius: var(--h5-radius); overflow: hidden; box-shadow: var(--h5-shadow-lg); background: var(--h5-bg-soft); }
.h5-about-media img { width: 100%; height: auto; display: block; }
.h5-about-row h3 { font-size: 1.6rem; margin-bottom: 14px; }
.h5-about-row p { font-size: 1.05rem; color: var(--h5-ink-2); }
@media (max-width: 991px) { .h5-about-row { grid-template-columns: 1fr; gap: 24px; } .h5-about-row.reverse .h5-about-media { order: 0; } }

/* pricing */
.h5-pricing { background: linear-gradient(180deg, #fff 0%, var(--h5-bg-soft) 100%); }
.h5-toggle { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--h5-line); border-radius: 999px; padding: 5px; gap: 4px; margin: 0 auto 40px; box-shadow: var(--h5-shadow); }
.h5-toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 600; color: var(--h5-muted); cursor: pointer; font-family: inherit; }
.h5-toggle button.active { background: var(--h5-ink); color: #fff; }
.h5-toggle .save { font-size: .75rem; color: var(--h5-success); font-weight: 700; margin-inline-start: 6px; }
.h5-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.h5-plan { position: relative; background: #fff; border: 1.5px solid var(--h5-line); border-radius: 24px; padding: 30px 28px; display: flex; flex-direction: column; transition: .2s; }
.h5-plan:hover { box-shadow: var(--h5-shadow-lg); transform: translateY(-4px); }
.h5-plan.popular { border-color: var(--h5-primary); box-shadow: 0 24px 50px rgba(118, 56, 249, .18); }
.h5-plan .badge-pop { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--h5-grad); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.h5-plan .badge-trial { display: inline-block; background: var(--h5-primary-100); color: var(--h5-primary-600); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.h5-plan .name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.h5-plan .desc { color: var(--h5-muted); font-size: .92rem; min-height: 22px; }
.h5-plan .price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 6px; }
.h5-plan .price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.h5-plan .price .per { color: var(--h5-muted); font-weight: 500; }
.h5-plan .limits { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.h5-plan .limits span { background: var(--h5-bg-soft); border: 1px solid var(--h5-line); border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 600; color: var(--h5-ink-2); }
.h5-plan .h5-btn { width: 100%; }
.h5-plan .feat-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--h5-muted); font-weight: 700; margin: 22px 0 10px; }
.h5-plan ul.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.h5-plan ul.feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--h5-ink-2); }
.h5-plan ul.feats li i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; flex-shrink: 0; margin-top: 3px; background: #e7f8ee; color: var(--h5-success); }
.h5-plan ul.feats li.off { color: #b5b2c2; }
.h5-plan ul.feats li.off i { background: #f1f0f5; color: #b5b2c2; }
.h5-plan .more-toggle { background: none; border: 0; color: var(--h5-primary); font-weight: 600; font-size: .9rem; margin-top: 12px; padding: 0; cursor: pointer; font-family: inherit; text-align: start; }
.h5-plan .custom-select-wrap { margin: 10px 0 4px; }
.h5-plan .custom-select-wrap select { width: 100%; border: 1.5px solid var(--h5-line); border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 600; }
.h5-plan[hidden] { display: none; }
.h5-plan .btn-info { background: var(--h5-bg-soft); color: var(--h5-muted); border: 0; }

/* testimonials */
.h5-tslider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 6px 20px; scrollbar-width: thin; }
.h5-tcard-quote { scroll-snap-align: start; background: #fff; border: 1px solid var(--h5-line); border-radius: var(--h5-radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--h5-shadow); }
.h5-tcard-quote .stars { color: #f59e0b; letter-spacing: 2px; }
.h5-tcard-quote .txt { flex: 1; color: var(--h5-ink-2); }
.h5-tcard-quote .who { display: flex; align-items: center; gap: 12px; }
.h5-tcard-quote .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.h5-tcard-quote .who strong { display: block; }

/* faq */
.h5-faq .accordion-item { border: 1px solid var(--h5-line); border-radius: 16px !important; margin-bottom: 12px; overflow: hidden; background: #fff; }
.h5-faq .accordion-button { font-weight: 600; padding: 18px 22px; background: #fff; color: var(--h5-ink); box-shadow: none; font-family: inherit; }
.h5-faq .accordion-button:not(.collapsed) { background: var(--h5-primary-50); color: var(--h5-primary-600); }
.h5-faq .accordion-body { color: var(--h5-ink-2); padding: 0 22px 20px; }

/* CTA band */
.h5-cta { padding: 0 0 88px; }
.h5-cta-box { position: relative; overflow: hidden; border-radius: 28px; background: var(--h5-grad); color: #fff; padding: 64px 40px; text-align: center; }
.h5-cta-box::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -260px; inset-inline-end: -140px; }
.h5-cta-box h2, .h5-cta-box p { color: #fff; position: relative; }
.h5-cta-box p { opacity: .9; font-size: 1.1rem; }
.h5-cta-box .h5-btn { position: relative; }

/* contact */
.h5-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.h5-contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.h5-contact-item .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--h5-primary-100); color: var(--h5-primary-600); display: grid; place-items: center; flex-shrink: 0; }
.h5-contact-item a, .h5-contact-item p { color: var(--h5-ink-2); margin: 0; }
.h5-form { background: #fff; border: 1px solid var(--h5-line); border-radius: var(--h5-radius); padding: 32px; box-shadow: var(--h5-shadow); }
.h5-form .form-control { border: 1.5px solid var(--h5-line); border-radius: 12px; padding: 12px 16px; font: inherit; box-shadow: none; }
.h5-form .form-control:focus { border-color: var(--h5-primary); box-shadow: 0 0 0 4px rgba(118, 56, 249, .12); }
.h5-form textarea.form-control { min-height: 140px; }
@media (max-width: 991px) { .h5-contact-grid { grid-template-columns: 1fr; gap: 28px; } }

/* footer */
.h5-footer { background: var(--h5-ink); color: rgba(255, 255, 255, .75); padding: 64px 0 28px; }
.h5-footer a { color: rgba(255, 255, 255, .75); }
.h5-footer a:hover { color: #fff; }
.h5-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; }
.h5-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.h5-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h5-footer .brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.h5-footer .brand p { color: rgba(255, 255, 255, .6); margin: 14px 0 18px; max-width: 320px; }
.h5-social { display: flex; flex-wrap: wrap; gap: 8px; }
.h5-social a { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.h5-social a:hover { background: var(--h5-primary); color: #fff; }
.h5-news { display: flex; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 5px 5px 5px 16px; }
.h5-news input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; }
.h5-news input::placeholder { color: rgba(255, 255, 255, .45); }
.h5-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 991px) { .h5-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .h5-footer-grid { grid-template-columns: 1fr; } }

/* policy pages rendered inside this layout */
.home5 .top-margin, .home5 .p-t-100 { padding-top: 0 !important; }
.home5 .mt-100 { margin-top: 40px !important; }
.home5 .padding-top-0 { padding-top: 0 !important; }

/* reveal on scroll */
.h5-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.h5-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .h5-reveal { opacity: 1; transform: none; transition: none; }
  .h5-phone, .h5-float { animation: none; }
}

/* whatsapp widget (kept from theme 2, restyled) */
.home5 .whatsapp-sticky-btn { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25d366; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); font-size: 1.7rem; z-index: 1040; }
.home5 .whatsapp-modal { display: none; position: fixed; bottom: 92px; inset-inline-end: 22px; width: 320px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--h5-shadow-lg); z-index: 1040; }
.home5 .whatsapp-header { background: #075e54; padding: 14px 16px; }
.home5 .whatsapp-chat-btn { background: #25d366; color: #fff; border-radius: 999px; padding: 12px; font-weight: 600; }
.home5 .whatsapp-notification { position: absolute; top: 4px; inset-inline-end: 4px; width: 12px; height: 12px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; }

/* RTL tweaks */
[dir="rtl"] .h5-phone.second { right: auto; left: 0; transform: rotate(-8deg); }
[dir="rtl"] .h5-hero-note span::before { margin-inline-end: 6px; }

/* link-claim states */
.h5-claim-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0 18px; }
.h5-chip { border: 1.5px solid var(--h5-line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--h5-ink); cursor: pointer; transition: .15s; }
.h5-chip:hover { border-color: var(--h5-primary); color: var(--h5-primary-600); background: var(--h5-primary-50); }
.h5-claim-go { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 10px; padding: 4px 12px; border-radius: 999px; background: var(--h5-primary); color: #fff !important; font-size: .88rem; font-weight: 700; }
.h5-claim-go:hover { background: var(--h5-primary-600); }
#h5Claim[data-state] { }
.h5-claim-msg[data-state="available"] { animation: h5-pop .25s ease; }
@keyframes h5-pop { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }

/* ===================== sub-pages (blog / faq / templates / custom) ===================== */
.h5-page-hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.h5-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 80% 0%, rgba(139, 92, 246, .18), transparent 60%), linear-gradient(180deg, #fbfaff, #fff); }
.h5-page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 14px 0 12px; }
.h5-page-hero .lead { font-size: 1.12rem; max-width: 620px; color: var(--h5-ink-2); }
.h5-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--h5-muted); }
.h5-breadcrumb a { color: var(--h5-muted); }
.h5-breadcrumb a:hover { color: var(--h5-primary); }
.h5-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--h5-line); border-radius: 999px; padding: 8px 8px 8px 18px; max-width: 520px; box-shadow: var(--h5-shadow); }
.h5-search:focus-within { border-color: var(--h5-primary); box-shadow: 0 0 0 4px rgba(118, 56, 249, .12); }
.h5-search i { color: var(--h5-muted); }
.h5-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: transparent; color: var(--h5-ink); padding: 6px 0; }
.h5-search .count { font-size: .82rem; color: var(--h5-muted); padding-inline-end: 10px; white-space: nowrap; }
.h5-empty { text-align: center; padding: 56px 20px; color: var(--h5-muted); border: 1.5px dashed var(--h5-line); border-radius: var(--h5-radius); }
.h5-section-tight { padding: 40px 0 88px; }

/* blog grid */
.h5-bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h5-bcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--h5-line); border-radius: var(--h5-radius); overflow: hidden; transition: .2s; color: inherit; }
.h5-bcard:hover { transform: translateY(-4px); box-shadow: var(--h5-shadow-lg); border-color: transparent; }
.h5-bcard .cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--h5-bg-soft); }
.h5-bcard .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.h5-bcard:hover .cover img { transform: scale(1.04); }
.h5-bcard .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.h5-bcard .meta { font-size: .82rem; color: var(--h5-muted); display: flex; gap: 10px; align-items: center; }
.h5-bcard h3 { font-size: 1.15rem; margin: 0; color: var(--h5-ink); }
.h5-bcard p { margin: 0; color: var(--h5-muted); font-size: .95rem; flex: 1; }
.h5-bcard .more { font-weight: 600; color: var(--h5-primary); display: inline-flex; align-items: center; gap: 6px; }
.h5-bcard.featured { grid-column: span 3; flex-direction: row; }
.h5-bcard.featured .cover { flex: 1.2; aspect-ratio: auto; min-height: 320px; }
.h5-bcard.featured .body { flex: 1; padding: 36px; justify-content: center; }
.h5-bcard.featured h3 { font-size: 1.7rem; }
@media (max-width: 991px) { .h5-bgrid { grid-template-columns: repeat(2, 1fr); } .h5-bcard.featured { grid-column: span 2; flex-direction: column; } .h5-bcard.featured .cover { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 575px) { .h5-bgrid { grid-template-columns: 1fr; } .h5-bcard.featured { grid-column: span 1; } }

/* article */
.h5-article { max-width: 820px; margin: 0 auto; }
.h5-article .cover { border-radius: var(--h5-radius); overflow: hidden; box-shadow: var(--h5-shadow-lg); margin: 28px 0 36px; }
.h5-article .cover img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }
.h5-prose { font-size: 1.08rem; line-height: 1.8; color: var(--h5-ink-2); }
.h5-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.h5-prose h2, .h5-prose h3 { margin: 32px 0 12px; }
.h5-prose p { margin-bottom: 18px; }
.h5-prose ul, .h5-prose ol { padding-inline-start: 22px; margin-bottom: 18px; }
.h5-prose blockquote { border-inline-start: 4px solid var(--h5-primary); background: var(--h5-primary-50); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.h5-prose a { text-decoration: underline; }
.h5-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--h5-line); }
.h5-share a, .h5-share button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--h5-line); background: #fff; display: grid; place-items: center; color: var(--h5-ink); cursor: pointer; }
.h5-share a:hover, .h5-share button:hover { border-color: var(--h5-primary); color: var(--h5-primary); }

/* templates page */
.h5-tfilters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.h5-tfilters button { border: 1.5px solid var(--h5-line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--h5-ink-2); cursor: pointer; }
.h5-tfilters button.active, .h5-tfilters button:hover { border-color: var(--h5-primary); background: var(--h5-primary-50); color: var(--h5-primary-600); }
.h5-tpgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.h5-tpcard { background: #fff; border: 1px solid var(--h5-line); border-radius: var(--h5-radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.h5-tpcard:hover { transform: translateY(-5px); box-shadow: var(--h5-shadow-lg); border-color: transparent; }
.h5-tpcard .shot { aspect-ratio: 9 / 14; overflow: hidden; background: var(--h5-bg-soft); position: relative; }
.h5-tpcard .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 8s linear; display: block; }
.h5-tpcard:hover .shot img { object-position: bottom; }
.h5-tpcard .shot .ribbon { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--h5-grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.h5-tpcard .info { padding: 16px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h5-tpcard .info strong { font-size: .98rem; }
.h5-tpcard .info span { font-size: .78rem; color: var(--h5-muted); }
.h5-tpcard .info a { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.h5-tpcard[hidden] { display: none; }
@media (max-width: 1199px) { .h5-tpgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .h5-tpgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* faq page */
.h5-faq-page { max-width: 860px; margin: 0 auto; }
.h5-faq-cta { margin-top: 40px; background: var(--h5-bg-soft); border-radius: var(--h5-radius); padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.h5-faq-cta h3 { margin: 0 0 4px; }
.h5-faq-cta p { margin: 0; color: var(--h5-muted); }

/* ===================== auth pages (login / register / password) ===================== */
.h5-auth-body { background: var(--h5-bg-soft); }
.h5-auth { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; }
.h5-auth-side { position: relative; overflow: hidden; background: var(--h5-ink); color: #fff; }
.h5-auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 20% 0%, rgba(139, 92, 246, .55), transparent 60%), radial-gradient(50% 40% at 100% 100%, rgba(118, 56, 249, .35), transparent 60%); }
.h5-auth-side-inner { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 40px 48px; gap: 32px; }
.h5-auth-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.h5-auth-side-copy h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 12px; }
.h5-auth-side-copy p { color: rgba(255, 255, 255, .72); font-size: 1.05rem; max-width: 420px; }
.h5-auth-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.h5-auth-points li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .88); }
.h5-auth-points i { color: #a78bfa; }
.h5-auth-phone { position: relative; margin-top: auto; display: flex; justify-content: center; padding-top: 20px; }
.h5-auth-phone .h5-phone { width: 230px; }
.h5-auth-main { display: flex; flex-direction: column; min-height: 100vh; }
.h5-auth-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; }
.h5-auth-back { color: var(--h5-muted); font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.h5-auth-back:hover { color: var(--h5-primary); }
.h5-auth-card-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 20px 40px; }
.h5-auth-logo-mobile { display: none; margin-bottom: 20px; }
.h5-auth-logo-mobile img { height: 36px; width: auto; }
.h5-auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--h5-line); border-radius: 24px; padding: 36px 36px 30px; box-shadow: var(--h5-shadow); }
.h5-auth-card-wide { max-width: 560px; }
.h5-auth-card h1 { font-size: 1.75rem; margin: 0 0 6px; }
.h5-auth-card .sub { color: var(--h5-muted); margin-bottom: 22px; }
.h5-auth-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--h5-primary-100); color: var(--h5-primary-600); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; }
.h5-social-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.h5-social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--h5-line); border-radius: 12px; padding: 11px 14px; font-weight: 600; color: var(--h5-ink) !important; background: #fff; }
.h5-social-btn:hover { border-color: var(--h5-ink); }
.h5-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--h5-muted); font-size: .85rem; }
.h5-divider::before, .h5-divider::after { content: ""; flex: 1; height: 1px; background: var(--h5-line); }
.h5-form-auth { display: grid; gap: 16px; }
.h5-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.h5-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--h5-ink-2); }
.h5-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.h5-label-row a { font-size: .85rem; font-weight: 600; }
.h5-input { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--h5-line); border-radius: 12px; padding: 0 12px; background: #fff; transition: .15s; }
.h5-input > i { color: var(--h5-muted); width: 16px; text-align: center; flex-shrink: 0; }
.h5-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; padding: 12px 0; color: var(--h5-ink); }
.h5-input input::placeholder { color: #b5b2c2; }
.h5-input:focus-within { border-color: var(--h5-primary); box-shadow: 0 0 0 4px rgba(118, 56, 249, .12); }
.h5-input .h5-eye { border: 0; background: transparent; color: var(--h5-muted); padding: 6px; cursor: pointer; }
.h5-input .h5-eye:hover { color: var(--h5-ink); }
.h5-input-tel { padding: 0; }
.h5-input-tel .iti { width: 100%; }
.h5-input-tel input.form-control { border: 0 !important; box-shadow: none !important; background: transparent; padding: 12px 12px 12px 90px !important; font: inherit; height: auto; }
.h5-field-msg { display: block; font-size: .82rem; margin-top: 6px; min-height: 0; }
.h5-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.h5-strength span { height: 4px; border-radius: 4px; background: var(--h5-line); transition: .2s; }
.h5-strength[data-score="1"] span:nth-child(-n+1) { background: #ef4444; }
.h5-strength[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.h5-strength[data-score="3"] span:nth-child(-n+3) { background: #84cc16; }
.h5-strength[data-score="4"] span { background: var(--h5-success); }
.h5-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--h5-ink-2); cursor: pointer; }
.h5-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--h5-primary); flex-shrink: 0; }
.h5-auth-switch { text-align: center; margin: 20px 0 0; color: var(--h5-muted); font-size: .95rem; }
.h5-auth-switch a { font-weight: 600; }
.h5-auth-foot { text-align: center; padding: 16px; font-size: .82rem; color: var(--h5-muted); }
.h5-auth-foot a { color: var(--h5-muted); }
.h5-alias-note { background: var(--h5-primary-50); border: 1px solid var(--h5-primary-100); color: var(--h5-primary-600); border-radius: 12px; padding: 10px 14px; font-size: .9rem; font-weight: 600; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.h5-auth .alert { border-radius: 12px; font-size: .92rem; }
@media (max-width: 991px) {
  .h5-auth { grid-template-columns: 1fr; }
  .h5-auth-side { display: none; }
  .h5-auth-logo-mobile { display: block; }
  .h5-auth-main { min-height: 100vh; }
}
@media (max-width: 575px) {
  .h5-auth-card { padding: 26px 20px; border-radius: 18px; }
  .h5-grid-2 { grid-template-columns: 1fr; }
  .h5-auth-top { padding: 14px 16px; }
}
