/* =========================================================
   Themely — homepage enhancements + static pages
   Loaded after style.css on every marketplace page.
   ========================================================= */

/* ----- Hero: two-column with graphic ----- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; text-align: left; position: relative; }
.hero-grid .hero-copy h1 { text-align: left; }
.hero-grid .hero-copy p { margin-left: 0; }
.hero-grid .hero-search { margin: 0; max-width: 520px; }
.hero-grid .hero-tags { justify-content: flex-start; }
.hero-trust { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero-trust span { font-size: 13px; color: #c4ccdd; display: flex; align-items: center; gap: 7px; }
.hero-trust b { color: #fff; }

/* hero showcase graphic */
.hero-show { position: relative; min-height: 380px; }
.hs-card { position: absolute; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -28px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.12); }
.hs-bar { display: flex; gap: 6px; padding: 9px 12px; background: #f1f3f7; border-bottom: 1px solid var(--line); }
.hs-bar i { width: 9px; height: 9px; border-radius: 50%; }
.hs-bar i:nth-child(1){background:#ff5f57}.hs-bar i:nth-child(2){background:#febc2e}.hs-bar i:nth-child(3){background:#28c840}
.hs-shot { display: block; width: 100%; height: calc(100% - 31px); object-fit: cover; }
.hs-main { width: 80%; height: 300px; top: 14px; left: 0; transform: rotate(-4deg); z-index: 2; animation: hsFloat 7s ease-in-out infinite; }
.hs-side { width: 56%; height: 200px; right: 0; bottom: 4px; transform: rotate(5deg); z-index: 1; animation: hsFloat2 8s ease-in-out infinite .6s; }
@keyframes hsFloat { 0%,100%{ transform: translateY(0) rotate(-4deg); } 50%{ transform: translateY(-14px) rotate(-4deg); } }
@keyframes hsFloat2 { 0%,100%{ transform: translateY(0) rotate(5deg); } 50%{ transform: translateY(-12px) rotate(5deg); } }
.hs-chip { position: absolute; z-index: 3; background: rgba(255,255,255,.97); border-radius: 12px; padding: 11px 15px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); font-family: var(--font); font-weight: 700; color: var(--ink); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.hs-chip small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.hs-chip.c1 { top: -4px; right: 6%; }
.hs-chip.c2 { bottom: 24px; left: -3%; }
.hs-chip .dot { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 16px; }

/* ----- Home band sections ----- */
.band { padding: 70px 0; }
.band-alt { background: var(--bg-alt); }
.band-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.band-head .ey { font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); }
.band-head h2 { font-size: clamp(26px,3.6vw,38px); font-weight: 800; margin: 8px 0 10px; }
.band-head p { font-size: 16px; color: var(--muted); }

/* ----- Testimonials ----- */
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: 0 10px 30px -22px rgba(20,30,60,.3); }
.tcard .stars { color: var(--star); margin-bottom: 12px; }
.tcard p { color: var(--ink); font-size: 15px; margin-bottom: 18px; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .ava { width: 44px; height: 44px; border-radius: 50%; flex: none; background: linear-gradient(135deg,var(--green),#0e9488); }
.tcard .who b { font-family: var(--font); color: var(--ink); display: block; font-size: 15px; }
.tcard .who span { font-size: 13px; color: var(--muted); }

/* ----- FAQ ----- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2px 22px; margin-bottom: 14px; }
.faq summary { list-style: none; cursor: pointer; font-family: var(--font); font-weight: 600; font-size: 16px; color: var(--ink); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--green-d); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--body); font-size: 15px; }

/* ----- CTA band ----- */
.cta { background: linear-gradient(120deg,#10182a,#143524); color: #fff; border-radius: 20px; padding: 54px 40px; text-align: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; bottom: -120px; left: 50%; transform: translateX(-50%); width: 600px; height: 320px; background: radial-gradient(circle, rgba(32,191,107,.3), transparent 65%); }
.cta h2 { color: #fff; font-size: clamp(26px,3.6vw,40px); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta p { color: #c4ccdd; font-size: 17px; max-width: 560px; margin: 0 auto 26px; position: relative; }
.cta .btn { position: relative; }

/* ----- Contact ----- */
.cgrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.cinfo { list-style: none; display: grid; gap: 20px; margin-top: 10px; }
.cinfo li { display: flex; gap: 14px; align-items: flex-start; }
.cinfo .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--green); font-size: 18px; }
.cinfo b { display: block; font-family: var(--font); color: var(--ink); }
.cinfo span { font-size: 14px; color: var(--muted); }
.cform { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.cform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform .fld { margin-bottom: 14px; }
.cform label { display: block; font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.cform input, .cform textarea, .cform select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fbfcfe; }
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,191,107,.15); }
.cnote { margin-top: 10px; font-size: 14px; font-weight: 600; }
.cnote.ok { color: var(--green-d); } .cnote.err { color: #e0245e; }

/* ----- Static page content ----- */
.page-body { padding: 50px 0 64px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 30px 0 12px; }
.prose h3 { font-size: 19px; margin: 22px 0 10px; }
.prose p { margin-bottom: 14px; font-size: 16px; }
.prose ul { margin: 0 0 16px 22px; } .prose li { margin-bottom: 8px; }
.prose .muted { color: var(--muted); font-size: 14px; }

/* author / help feature cards */
.feature-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.fc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.fc .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); font-size: 22px; margin-bottom: 14px; }
.fc h3 { font-size: 18px; margin-bottom: 8px; }
.fc p { font-size: 14px; color: var(--body); }

/* blog */
.bgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bcard .bthumb { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.bcard .bbody { padding: 20px; }
.bcard .btag { font-family: var(--font); font-weight: 600; font-size: 12px; color: var(--green-d); text-transform: uppercase; letter-spacing: .04em; }
.bcard h3 { font-size: 17px; margin: 8px 0; }
.bcard .bmeta { font-size: 13px; color: var(--muted); }

/* author profile */
.author-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.author-hero .big-ava { width: 90px; height: 90px; border-radius: 20px; background: linear-gradient(135deg,var(--green),#0e9488); flex: none; }
.author-hero h1 { margin: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .hero-copy h1, .hero-grid .hero-copy p { text-align: center; }
  .hero-grid .hero-copy p, .hero-grid .hero-search { margin-left: auto; margin-right: auto; }
  .hero-grid .hero-tags { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-show { display: none; }
  .tgrid, .feature-cards, .bgrid { grid-template-columns: 1fr 1fr; }
  .cgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tgrid, .feature-cards, .bgrid, .cform .row { grid-template-columns: 1fr; }
}

/* =========================================================
   Category grid (homepage) — browse by category, ThemeForest-style
   ========================================================= */
.catgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.catcard { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 18px; padding: 30px 30px 30px; display: flex; flex-direction: column; overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.catcard:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -30px rgba(20,30,60,.5); border-color: transparent; }
.catcard-head h3 { font-size: 27px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; }
.catcard-head h3 a { color: var(--ink); }
.catcard:hover .catcard-head h3 a { color: var(--green-d); }
.catcard-head p { font-size: 14px; color: var(--muted); margin: 0 0 14px; min-height: 38px; }
.catcard-links { display: flex; align-items: center; gap: 16px; font-family: var(--font); font-weight: 600; font-size: 14px; }
.catcard-links .cc-count { color: var(--ink); font-weight: 700; margin-right: auto; }
.catcard-links a { color: var(--green-d); }
.catcard-links a:hover { text-decoration: underline; }

/* showcase preview — clean framed mini-screenshot (reuses .thumb scaling) */
.catcard-show { position: relative; display: block; margin-top: 30px; }
.catcard-badge { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); z-index: 4; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 12px 28px -10px rgba(16,24,42,.4); display: grid; place-items: center; font-size: 24px; border: 1px solid var(--line); }
.catcard-show .thumb { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 22px 50px -26px rgba(16,24,42,.5); }
.catcard-show .preview-hint { border-radius: 14px; }
.catcard:hover .catcard-show .thumb { border-color: transparent; }

/* =========================================================
   Testimonials — auto-sliding marquee with emoji faces
   ========================================================= */
.tcard .ava { overflow: hidden; flex: none; }
.tcard .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tmarquee { position: relative; overflow: hidden; padding: 16px 0; }
.tmarquee::before, .tmarquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.tmarquee::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), rgba(244,246,249,0)); }
.tmarquee::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), rgba(244,246,249,0)); }
.ttrack { display: flex; width: max-content; animation: tslide 70s linear infinite; }
.ttrack .tcard { flex: 0 0 360px; width: 360px; margin-right: 24px; }
.tmarquee:hover .ttrack { animation-play-state: paused; }
@keyframes tslide { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .ttrack { animation: none; } }
@media (max-width: 600px) { .ttrack .tcard { flex-basis: 300px; width: 300px; } }

/* =========================================================
   Footer — renovated premium design
   ========================================================= */
.foot { position: relative; overflow: hidden; background: linear-gradient(180deg, #0c1424 0%, #0a1019 100%); color: #aeb6c8; padding: 58px 0 24px; margin-top: 64px; }
.foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green), #38bdf8, #a855f7, var(--green)); background-size: 200% 100%; animation: footline 9s linear infinite; }
@keyframes footline { to { background-position: 200% 0; } }
.foot-aura { position: absolute; top: -130px; left: 50%; transform: translateX(-50%); width: 760px; height: 320px; background: radial-gradient(circle, rgba(32,191,107,.22), transparent 62%); filter: blur(24px); pointer-events: none; }

/* newsletter panel */
.foot-news { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(32,191,107,.16), rgba(27,39,66,.55)); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 30px 34px; margin-bottom: 50px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.foot-news-text h3 { color: #fff; font-size: clamp(20px,2.4vw,26px); font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.foot-news-text p { font-size: 15px; color: #c4ccdd; margin: 0; }
.foot-news-text b { color: #fff; }
.foot-sub { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.foot-sub-field { display: flex; align-items: center; background: #fff; border-radius: 11px; padding: 0 6px 0 14px; min-width: 250px; }
.foot-sub-ic { color: var(--muted); font-size: 15px; }
.foot-sub input { border: 0; outline: 0; padding: 13px 10px; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: transparent; flex: 1; min-width: 0; }
.foot-sub button { border: 0; background: var(--green); color: #fff; font-family: var(--font); font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 11px; cursor: pointer; transition: background .2s, transform .15s; }
.foot-sub button:hover { background: var(--green-d); transform: translateY(-1px); }
.foot-sub-note { width: 100%; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #7ef0b0; }
.foot-sub-note.err { color: #ff9bb0; }

/* columns */
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; align-items: start; }
.foot-brandcol .brand { font-size: 26px; display: inline-block; margin-bottom: 14px; }
.foot-tag { font-size: 15px; max-width: 300px; color: #9aa3b8; line-height: 1.7; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.fsoc { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #c4ccdd; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: color .2s, background .2s, border-color .2s, transform .2s; }
.fsoc:hover { color: #fff; background: var(--green); border-color: var(--green); transform: translateY(-3px); }
.foot-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.foot-col a { display: flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 14px; color: #9aa3b8; transition: color .18s, transform .18s; }
.foot-col a::before { content: "›"; color: var(--green); opacity: 0; margin-left: -10px; transition: opacity .18s, margin .18s; }
.foot-col a:hover { color: #fff; }
.foot-col a:hover::before { opacity: 1; margin-left: 0; }

/* bottom bar */
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #6f7790; flex-wrap: wrap; }
.foot-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-badges span { font-size: 13px; color: #9aa3b8; display: inline-flex; align-items: center; gap: 6px; }
.foot-top { font-family: var(--font); font-weight: 600; font-size: 13px; color: #c4ccdd; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 8px 14px; border-radius: 9px; transition: color .2s, background .2s, border-color .2s; }
.foot-top:hover { color: #fff; background: var(--navy-2); border-color: transparent; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brandcol { grid-column: 1 / -1; }
  .foot-news { padding: 26px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-sub, .foot-sub-field { width: 100%; }
  .foot-sub button { width: 100%; }
  .foot-bottom { justify-content: center; text-align: center; }
}

/* =========================================================
   Cart — add-to-cart button on product cards + cart page
   ========================================================= */
.card-add { margin: 12px 0 0; width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font); font-weight: 600; font-size: 13px; padding: 9px 0; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.card-add:hover { background: var(--green); color: #fff; border-color: var(--green); }

.cart-full { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.cart-line-thumb { position: relative; width: 120px; height: 75px; border-radius: 8px; overflow: hidden; background: #eef1f6; display: block; flex: none; }
.cart-line-thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: top left; pointer-events: none; }
.cart-line-title { font-family: var(--font); font-weight: 700; font-size: 15px; color: var(--ink); display: block; }
.cart-line-title:hover { color: var(--green-d); }
.cart-line-cat { font-size: 12px; color: var(--green-d); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 8px; font-weight: 600; }
.cart-line-remove { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.cart-line-remove:hover { color: #e0245e; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty-stepper button { width: 32px; height: 34px; border: 0; background: #f4f6f9; color: var(--ink); font-size: 16px; cursor: pointer; transition: background .15s, color .15s; }
.qty-stepper button:hover { background: var(--green); color: #fff; }
.qty-stepper span { min-width: 36px; text-align: center; font-family: var(--font); font-weight: 700; font-size: 14px; }
.cart-line-price { font-family: var(--font); font-weight: 800; font-size: 17px; color: var(--ink); min-width: 60px; text-align: right; }

.cart-summary { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: sticky; top: 90px; }
.cart-summary h3 { font-size: 18px; margin: 0 0 16px; }
.cart-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; color: var(--body); }
.cart-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-family: var(--font); font-weight: 800; font-size: 19px; color: var(--ink); }
.cart-summary .btn { margin-top: 16px; }
.checkout-note { margin: 12px 0 0; font-size: 13px; color: var(--body); line-height: 1.6; }
.checkout-note.err { color: #e0245e; }
.checkout-note code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.checkout-note a { color: var(--green-d); font-weight: 600; }
.cart-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cart-trust li { font-size: 13px; color: var(--muted); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
.cart-continue { font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--green-d); }
.cart-clear { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.cart-clear:hover { color: #e0245e; }

.cart-empty { text-align: center; padding: 50px 0 70px; }
.cart-empty-ic { font-size: 48px; margin-bottom: 10px; }
.cart-empty h2 { font-size: 24px; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); margin-bottom: 22px; }

@media (max-width: 820px) {
  .cart-full { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 80px 1fr; grid-template-areas: "thumb info" "stepper price"; row-gap: 12px; }
  .cart-line-thumb { width: 80px; height: 50px; grid-area: thumb; }
  .cart-line-info { grid-area: info; }
  .qty-stepper { grid-area: stepper; }
  .cart-line-price { grid-area: price; align-self: center; }
}

/* =========================================================
   Item Details — ThemeForest-style attributes panel (item pages)
   ========================================================= */
.item-details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-top: 18px; box-shadow: var(--shadow); }
.item-details h4 { font-size: 15px; margin: 0 0 6px; }
.idrow { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.idrow > span:first-child { color: var(--muted); font-weight: 600; font-family: var(--font); }
.idrow > span:last-child { color: var(--ink); }
.idtags { align-items: start; }
.idtag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.idtag-list a { background: var(--bg-alt); color: var(--green-d); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; transition: background .15s, color .15s; }
.idtag-list a:hover { background: var(--green); color: #fff; }
@media (max-width: 480px) { .idrow { grid-template-columns: 116px 1fr; gap: 10px; } }

/* =========================================================
   Account dashboard (account.html)
   ========================================================= */
.btn-sm { padding: 7px 14px; font-size: 13px; }
.acct-head { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 38px 0; }
.acct-head-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.acct-ava { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--green), #0e9488); box-shadow: 0 10px 30px -10px rgba(32,191,107,.6); }
.acct-id { flex: 1; min-width: 200px; }
.acct-id h1 { color: #fff; font-size: 26px; margin: 0; }
.acct-id p { color: #c4ccdd; font-size: 14px; margin: 6px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-badge { background: rgba(32,191,107,.2); color: #7ef0b0; font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.acct-head-actions .btn-out { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.acct-head-actions .btn-out:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }

.acct-tabs { margin-top: 4px; }
.acct-h3 { font-size: 19px; margin: 4px 0 6px; }
.acct-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.acct-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 30px; }
.acct-stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.acct-stat b { display: block; font-family: var(--font); font-weight: 800; font-size: 30px; color: var(--ink); line-height: 1; }
.acct-stat span { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }

.acct-dl-list { display: flex; flex-direction: column; gap: 14px; }
.acct-dl { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.acct-dl-thumb { position: relative; width: 96px; height: 60px; border-radius: 8px; overflow: hidden; background: #eef1f6; display: block; flex: none; }
.acct-dl-thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: top left; pointer-events: none; }
.acct-dl-info b { font-family: var(--font); font-size: 15px; color: var(--ink); display: block; }
.acct-dl-info span { font-size: 13px; color: var(--muted); }
.acct-dl-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.acct-fav { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.acct-fav-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.acct-fav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.acct-fav-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; background: #eef1f6; }
.acct-fav-thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: top left; pointer-events: none; }
.acct-fav-card b { font-family: var(--font); font-size: 14px; color: var(--ink); padding: 12px 14px 2px; }
.acct-fav-card > span:last-child { font-family: var(--font); font-weight: 800; color: var(--green-d); padding: 0 14px 14px; }

.acct-review { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.acct-review .stars { color: var(--star); margin-bottom: 8px; }
.acct-review p { font-size: 15px; color: var(--ink); margin: 0 0 8px; }
.acct-review-meta { font-size: 13px; color: var(--muted); }
.acct-review-meta a { color: var(--green-d); font-weight: 600; }

@media (max-width: 760px) {
  .acct-stats { grid-template-columns: 1fr 1fr; }
  .acct-fav { grid-template-columns: 1fr 1fr; }
  .acct-dl { grid-template-columns: 72px 1fr; }
  .acct-dl-thumb { width: 72px; height: 46px; }
  .acct-dl-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 480px) { .acct-fav { grid-template-columns: 1fr; } }

/* auth (sign in / create account) */
.auth-card { max-width: 448px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 22px; margin: 0 0 6px; text-align: center; }
.auth-sub { color: var(--muted); font-size: 14px; text-align: center; margin: 0 0 22px; }
.auth-toggle { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-toggle a { color: var(--green-d); font-weight: 600; }
.auth-hint { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--muted); background: var(--bg-alt); border: 1px dashed var(--line); border-radius: 9px; padding: 9px; }
.auth-hint b { color: var(--ink); }
.acct-empty { text-align: center; padding: 38px 0 46px; color: var(--muted); }
.acct-empty p { margin: 0 0 16px; font-size: 15px; }

/* guest order confirmation (cart) */
.cart-confirm { text-align: center; padding: 30px 0 50px; max-width: 560px; margin: 0 auto; }
.cart-confirm-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: #fff; font-size: 32px; display: grid; place-items: center; box-shadow: 0 14px 32px -10px rgba(32,191,107,.6); }
.cart-confirm h2 { font-size: 26px; margin: 0 0 6px; }
.cart-confirm > p { color: var(--muted); margin: 0 0 22px; }
.cart-confirm-list { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 18px; }
.cart-confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.cart-confirm-row span { font-family: var(--font); font-weight: 600; color: var(--ink); font-size: 15px; }
.cart-confirm-tip { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.cart-confirm-tip a { color: var(--green-d); font-weight: 600; }
.acct-dl-tag { font-family: var(--font); font-weight: 700; font-size: 12px; color: var(--green-d); background: rgba(32,191,107,.12); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }

/* =========================================================
   Themely Assistant — chat widget
   ========================================================= */
.chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 400; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--green); color: #fff; font-size: 26px; cursor: pointer; box-shadow: 0 16px 34px -10px rgba(32,191,107,.6); transition: transform .2s, background .2s; }
.chat-launch:hover { transform: scale(1.06); background: var(--green-d); }
.chat-launch.open { background: var(--navy); }

.chat-panel { position: fixed; right: 22px; bottom: 94px; z-index: 400; width: 370px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 130px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(16,24,42,.55); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; }
.chat-head-id { display: flex; align-items: center; gap: 10px; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font); font-weight: 800; background: linear-gradient(135deg, var(--green), #0e9488); color: #fff; }
.chat-head-id b { display: block; font-family: var(--font); font-size: 15px; }
.chat-head-id span { font-size: 12px; color: #9fb0c8; }
.chat-close { background: transparent; border: 0; color: #c4ccdd; font-size: 22px; cursor: pointer; line-height: 1; }
.chat-close:hover { color: #fff; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.chat-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--green-d); font-weight: 600; }
.chat-msg.me a { color: #fff; text-decoration: underline; }
.chat-rec { display: block; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; margin-top: 8px; }
.chat-rec b { display: block; color: var(--ink); font-family: var(--font); font-size: 13.5px; }
.chat-rec span { font-size: 12px; color: var(--muted); }
.chat-rec:hover { border-color: var(--green); }
.chat-typing { display: inline-flex; gap: 4px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatDot 1s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px 0; background: var(--bg-alt); }
.chat-chip { border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font); font-weight: 600; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chat-chip:hover { background: var(--green); color: #fff; border-color: var(--green); }
.chat-input { display: flex; gap: 8px; padding: 12px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: var(--font-body); font-size: 14px; color: var(--ink); outline: none; background: #fff; }
.chat-input input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,191,107,.15); }
.chat-input button { border: 0; background: var(--green); color: #fff; width: 44px; border-radius: 10px; font-size: 16px; cursor: pointer; }
.chat-input button:hover { background: var(--green-d); }

@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; height: calc(100vh - 120px); }
  .chat-launch { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 23px; }
}

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

/* =========================================================
   Search — live suggestions dropdown + results page
   ========================================================= */
/* allow the dropdown to escape the rounded search box while keeping corners */
.search, .hero-search { position: relative; overflow: visible; }
.search input { border-radius: 9px 0 0 9px; }
.search button { border-radius: 0 9px 9px 0; }
.hero-search input { border-radius: 11px 0 0 11px; }
.hero-search button { border-radius: 0 11px 11px 0; }

.search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px -22px rgba(16,24,42,.5); overflow: hidden; z-index: 200; display: none; }
.search-suggest.open { display: block; }
.search-suggest a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover { background: var(--bg-alt); }
.search-suggest .ss-title { font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--ink); }
.search-suggest .ss-cat { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* search results page */
.searchbig { display: flex; max-width: 560px; margin: 0 0 26px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.searchbig input { flex: 1; border: 0; padding: 13px 16px; font-family: var(--font-body); font-size: 15px; color: var(--ink); outline: none; background: transparent; border-radius: 10px 0 0 10px; }
.searchbig button { border: 0; background: var(--green); color: #fff; padding: 0 22px; cursor: pointer; font-size: 16px; border-radius: 0 10px 10px 0; }
.searchbig button:hover { background: var(--green-d); }
.search-heading { font-size: 22px; font-weight: 800; margin: 0 0 20px; }
.search-empty { color: var(--muted); font-size: 16px; padding: 16px 0 40px; }

/* =========================================================
   Category bar — wrap cleanly instead of an ugly scrollbar
   (now that there are 10+ categories it no longer fits one row)
   ========================================================= */
.catbar-inner { flex-wrap: wrap; height: auto; overflow: visible; padding: 9px 0; gap: 6px; row-gap: 6px; }
.catbar a { padding: 7px 12px; }
@media (max-width: 600px) {
  .catbar a { padding: 6px 11px; font-size: 13px; }
}
