/* ===== Web coupon — giao diện công khai (phong cách trang coupon lớn: navy + xanh lá, viền mảnh) ===== */
:root {
    --navy: #1b1f3b;
    --navy-2: #2d3570;
    --green: #0f766e;
    --green-2: #115e59;
    --green-soft: #e6f4f2;
    --ink: #17202e;
    --text: #344054;
    --muted: #667085;
    --line: #e3e7ed;
    --line-2: #d0d6df;
    --bg: #f5f7fa;
    --card: #fff;
    --amber: #b45309;
    --amber-soft: #fff4e5;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-hover: 0 4px 14px rgba(16, 24, 40, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; font-weight: 700; margin: 0; }
.section-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; font-size: 14px; }
.section-head a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.empty a { color: var(--green); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 6px; padding: 10px 18px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; flex-shrink: 0; }
.logo svg { color: #5eead4; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; max-width: 460px; background: #fff; border-radius: 6px; padding: 0 12px; height: 40px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--ink); background: transparent; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav a { color: rgba(255, 255, 255, .85); padding: 20px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.active { color: #fff; border-color: #5eead4; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 6px; }

/* Hero trang chủ */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 48px 0 52px; }
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8fe3bd; }
.hero h1 { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -.02em; max-width: 640px; }
.hero-sub { margin: 0 0 24px; color: rgba(255, 255, 255, .8); font-size: 17px; max-width: 560px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 6px 6px 6px 16px; max-width: 620px; color: var(--muted); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); }
.page-head .hero-search { box-shadow: none; border: 1px solid var(--line-2); margin-top: 16px; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hero-popular a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.hero-popular a:hover { text-decoration-color: #fff; }
.hero-trust { list-style: none; margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; }
.hero-trust li { display: flex; gap: 14px; align-items: flex-start; }
.hero-trust svg { color: #5eead4; flex-shrink: 0; margin-top: 2px; }
.hero-trust b { display: block; color: #fff; }
.hero-trust span { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* Ảnh khuyến mãi (khi admin có ảnh) */
.promo-slider { position: relative; }
.promo-slider .slide { display: none; border-radius: 10px; overflow: hidden; }
.promo-slider .slide.is-active { display: block; }
.promo-slider img { width: 100%; max-height: 320px; object-fit: cover; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); }
.slider-dots button.is-active { width: 22px; background: #fff; }

/* Logo store */
.slogo { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.slogo b { color: var(--navy); font-weight: 700; opacity: .55; }
.slogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%; background: #fff; }
.slogo img + b { display: none; } /* có ảnh thì ẩn chữ cái dự phòng; ảnh lỗi bị gỡ thì chữ hiện lại */
.slogo-plain { border-color: transparent; }
.slogo-sm { width: 32px; height: 32px; font-size: 13px; border-radius: 6px; }
.slogo-md { width: 56px; height: 56px; font-size: 20px; }
.slogo-lg { width: 72px; height: 72px; font-size: 26px; }
.slogo-xl { width: 112px; height: 112px; font-size: 40px; }

/* Thẻ nổi bật trang chủ */
.grid-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.fcard:hover { box-shadow: var(--shadow-hover); }
.fcard-logo { display: grid; place-items: center; height: 150px; border-bottom: 1px solid var(--line); background: #fff; }
.fcard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.fcard-store { font-size: 13px; color: var(--muted); font-weight: 500; }
.fcard-store:hover { color: var(--green); }
.fcard h3 { font-size: 17px; font-weight: 700; flex: 1; margin: 0 0 10px; }
.grid-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: box-shadow .15s; }
.tile:hover { box-shadow: var(--shadow-hover); }
.tile-name { font-size: 13px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }
.tile-save { align-self: stretch; padding: 8px 4px; background: var(--green); color: #fff; font-weight: 700; font-size: 13px; }

/* Thẻ mã dạng dòng */
.offer-list { display: flex; flex-direction: column; gap: 12px; }
.offer-list.narrow { max-width: 900px; }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 90px; transition: box-shadow .15s, border-color .15s; }
.offer:hover { box-shadow: var(--shadow-hover); border-color: var(--line-2); }
.offer.is-hidden { display: none; }
.offer-top { border-color: var(--green); }
.offer-ribbon { background: var(--green); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 16px; }
.offer-inner { display: flex; align-items: center; gap: 20px; padding: 18px 20px; }
.offer-logo { flex-shrink: 0; }
.offer-value { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 72px; padding-right: 20px; border-right: 1px solid var(--line); }
.offer-value strong { font-size: 30px; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.offer-value strong.long { font-size: 20px; }
.offer-value span { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.offer-body { flex: 1; min-width: 0; }
.offer-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.otag { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 4px; }
.otag-code { background: var(--green-soft); color: var(--green-2); }
.otag-sale { background: #eef2f7; color: var(--navy-2); }
.otag-verified { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 600; }
.otag-excl { color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.offer-store { color: var(--muted); font-weight: 600; }
.offer-store:hover { color: var(--green); }
.offer-body h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.offer-more { background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; font-size: 13px; }
.offer-more::after { content: " +"; }
.offer-more[aria-expanded="true"]::after { content: " −"; }
.offer-details { margin-top: 10px; padding: 10px 12px; background: var(--bg); border-radius: 6px; font-size: 14px; color: var(--text); }
.offer-action { flex-shrink: 0; }
.btn-deal { min-width: 170px; padding: 12px 18px; }
.btn-reveal { position: relative; display: inline-flex; align-items: stretch; width: 170px; height: 46px; padding: 0; border: 1px dashed var(--green); border-radius: 6px; background: var(--green-soft); overflow: hidden; }
.btn-reveal-peek { margin-left: auto; display: grid; place-items: center; width: 46px; padding-left: 8px; font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.btn-reveal-label { position: absolute; inset: 0 50px 0 0; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; border-radius: 5px 0 0 5px; transition: right .15s; }
.btn-reveal-label::after { content: ""; position: absolute; right: -10px; top: 0; border-left: 10px solid var(--green); border-bottom: 46px solid transparent; transition: border-color .15s; }
.btn-reveal:hover .btn-reveal-label { background: var(--green-2); right: 56px; }
.btn-reveal:hover .btn-reveal-label::after { border-left-color: var(--green-2); }

/* Ô store */
.grid-stores { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; transition: box-shadow .15s; }
.stile:hover { box-shadow: var(--shadow-hover); }
.stile-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.stile-count { font-size: 12px; color: var(--muted); }

/* Cách hoạt động */
.how { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.how h2 { text-align: center; font-size: 22px; margin-bottom: 24px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.how-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.how-steps svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.how-steps b { color: var(--ink); font-size: 16px; margin-top: 6px; }
.how-steps span { font-size: 14px; color: var(--muted); max-width: 280px; }

/* Danh mục / sự kiện / blog */
.grid-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14px; color: var(--ink); }
.cat-link small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.cat-link svg { color: var(--muted); flex-shrink: 0; }
.cat-link:hover { border-color: var(--green); color: var(--green); }
.grid-events { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.event-link { display: flex; flex-direction: column; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.event-link b { color: var(--ink); font-size: 14px; }
.event-link span { color: var(--muted); font-size: 12px; }
.event-link:hover { border-color: var(--green); }
.grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.pcard:hover { box-shadow: var(--shadow-hover); }
.pcard-img { aspect-ratio: 16 / 9; background: var(--bg); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-body small { color: var(--muted); }
.pcard-body h3 { font-size: 17px; margin: 4px 0 6px; }
.pcard-body p { color: var(--muted); font-size: 14px; margin: 0 0 10px; flex: 1; }
.pcard-more { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; font-size: 14px; }
.seo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.seo-grid h2 { font-size: 18px; }
.seo-grid p { color: var(--muted); margin: 0; font-size: 14px; }

/* Đầu trang con */
.page-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 28px 0 24px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { color: var(--muted); max-width: 760px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.page-head .tabs { margin: 20px 0 -25px; border: 0; }
.tabs button, .tabs a { padding: 10px 14px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs button span { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: #eef1f5; font-size: 12px; color: var(--muted); }
.tabs .is-active { color: var(--ink); border-color: var(--green); }
.tabs .is-active span { background: var(--green-soft); color: var(--green-2); }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.az a { min-width: 34px; padding: 6px 8px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 600; font-size: 13px; color: var(--text); }
.az a:hover { border-color: var(--green); }
.az .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Trang store */
.store-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
.store-head { display: flex; gap: 24px; align-items: center; }
.store-logo-link .slogo { border: 1px solid var(--line); }
.store-info h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.store-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.store-sub a { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; }
.store-sub a:hover { text-decoration: underline; }
.verified-line { display: inline-flex; align-items: center; gap: 5px; color: var(--green-2); font-weight: 600; }
.store-desc { margin: 0; max-width: 720px; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 24px; align-items: start; }
.panel { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 19px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.expired { margin-top: 28px; }
.expired h2 { font-size: 18px; margin-bottom: 2px; }
.expired p { margin: 0 0 10px; font-size: 14px; }
.expired ul { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.expired li { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.expired li:last-child { border: 0; }
.expired li b { min-width: 80px; color: var(--muted); }
.expired li span { flex: 1; }
.store-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.side-box h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 12px; }
.side-box p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.side-box > a { color: var(--green); font-weight: 600; font-size: 14px; }
.trust h3 svg { color: var(--green); width: 20px; height: 20px; }
.stats { margin: 0; }
.stats div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stats div:last-child { border: 0; padding-bottom: 0; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; color: var(--ink); }
.top-list { margin: 0; padding-left: 18px; font-size: 14px; }
.top-list li { margin-bottom: 6px; }
.top-list a:hover { color: var(--green); text-decoration: underline; }
.share { display: flex; gap: 8px; }
.share a { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.share a:hover { border-color: var(--navy); color: var(--navy); }
.side-stores { display: flex; flex-direction: column; }
.side-stores a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 500; font-size: 14px; border-bottom: 1px solid var(--line); }
.side-stores a:last-child { border: 0; }
.side-stores a:hover span { color: var(--green); }
.side-stores span { flex: 1; color: var(--ink); }
.side-stores small { color: var(--muted); }
.side-disclosure { margin: 0; font-size: 12px; color: var(--muted); }
.side-disclosure a { text-decoration: underline; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border: 0; padding-bottom: 0; }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.preview-bar { margin-top: 14px; padding: 10px 16px; border-radius: 6px; background: var(--amber-soft); color: var(--amber); font-size: 14px; border: 1px solid #f5d9b0; }
.preview-bar a { font-weight: 700; text-decoration: underline; }

/* Bài viết / trang tĩnh */
.article { max-width: 820px; margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 36px 44px; }
.article h1 { font-size: 32px; font-weight: 800; }
.article-meta { color: var(--muted); margin-top: -4px; }
.article-img { border-radius: 8px; margin: 18px 0; width: 100%; }
.prose { color: var(--text); }
.prose h2 { font-size: 21px; margin-top: 1.4em; }
.prose a { color: var(--green); text-decoration: underline; }
.prose img { border-radius: 8px; margin: 12px 0; }

/* Phân trang */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.pager a:hover { border-color: var(--green); }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .disabled { color: #c0c4cf; }

/* Hộp mã */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
.modal-box { position: relative; width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 12px; padding: 32px 32px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.modal-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 6px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); }
.modal-x:hover { background: var(--bg); }
.cm-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cm-head .slogo { border: 1px solid var(--line); margin-bottom: 10px; }
.cm-store { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cm-head h3 { font-size: 20px; margin: 4px 0 18px; }
.cm-code { display: flex; align-items: center; gap: 8px; border: 2px dashed var(--green); border-radius: 8px; padding: 6px 6px 6px 18px; background: var(--green-soft); }
.cm-code span { flex: 1; font-size: 22px; font-weight: 800; letter-spacing: .08em; color: var(--ink); word-break: break-all; }
.cm-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.cm-hint.is-copied { color: var(--green-2); font-weight: 600; }
.cm-expires { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.cm-feedback { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cm-feedback button { border: 1px solid var(--line-2); background: #fff; border-radius: 6px; padding: 5px 14px; font-weight: 600; color: var(--text); }
.cm-feedback button:hover { border-color: var(--navy); }

/* Đăng ký email */
.newsletter { margin-top: 64px; background: var(--navy-2); color: #fff; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.newsletter h2 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.newsletter p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.newsletter-form { display: flex; gap: 8px; flex: 0 1 460px; }
.newsletter-form input[type=email] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 6px; font: inherit; }
.newsletter-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #8fe3bd !important; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-grid > div > a { display: block; padding: 4px 0; }
.footer-grid > div > a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { max-width: 360px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 34px; height: 34px; border-radius: 6px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: rgba(255, 255, 255, .18); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 22px; font-size: 13px; }
.footer-bottom a { text-decoration: underline; }

/* ===== Màn hình nhỏ ===== */
@media (max-width: 1100px) {
    .grid-stores { grid-template-columns: repeat(4, 1fr); }
    .grid-tiles { grid-template-columns: repeat(3, 1fr); }
    .grid-cats { grid-template-columns: repeat(3, 1fr); }
    .grid-events { grid-template-columns: repeat(4, 1fr); }
    .store-layout { grid-template-columns: 1fr; }
    .store-side { position: static; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .hero-trust { flex-direction: row; flex-wrap: wrap; }
    .hero-trust li { flex: 1 1 220px; }
}
@media (max-width: 820px) {
    .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
    .nav-toggle { display: block; }
    .search { order: 3; max-width: none; flex-basis: 100%; }
    .nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .hero { padding: 32px 0 36px; }
    .hero h1 { font-size: 30px; }
    .hero-sub { font-size: 15px; }
    .grid-featured, .grid-posts, .seo-grid, .how-steps { grid-template-columns: 1fr; }
    .grid-stores { grid-template-columns: repeat(3, 1fr); }
    .grid-cats { grid-template-columns: repeat(2, 1fr); }
    .grid-events { grid-template-columns: repeat(3, 1fr); }
    .fcard { flex-direction: row; }
    .fcard-logo { height: auto; width: 120px; border-bottom: 0; border-right: 1px solid var(--line); }
    .fcard-logo .slogo-xl { width: 80px; height: 80px; }
    .store-head { align-items: flex-start; }
    .store-head .slogo-xl { width: 80px; height: 80px; font-size: 30px; }
    .store-info h1, .page-head h1 { font-size: 24px; }
    .newsletter-inner { flex-direction: column; align-items: stretch; }
    .newsletter-form { flex: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .article { padding: 24px 20px; }
    .how { padding: 24px 18px; }
}
@media (max-width: 560px) {
    body { font-size: 14px; }
    .section { margin-top: 32px; }
    .section-head h2 { font-size: 19px; }
    .hero-search { flex-wrap: wrap; padding: 8px; }
    .hero-search > svg { display: none; }
    .hero-search input { flex-basis: 100%; padding: 6px 4px; }
    .hero-search .btn { width: 100%; }
    .grid-stores, .grid-tiles { grid-template-columns: repeat(2, 1fr); }
    .grid-cats, .grid-events { grid-template-columns: 1fr 1fr; }
    .offer-inner { flex-wrap: wrap; gap: 12px 14px; padding: 14px; }
    .offer-logo { display: none; }
    .offer-value { flex-basis: 72px; padding-right: 14px; min-height: 60px; }
    .offer-value strong { font-size: 22px; }
    .offer-value strong.long { font-size: 16px; }
    .offer-body h3 { font-size: 15px; }
    .offer-action { flex-basis: 100%; }
    .btn-reveal, .btn-deal { width: 100%; }
    .modal-box { padding: 28px 18px 18px; }
    .cm-code span { font-size: 18px; }
}

/* ===== Giao diện sang hơn (15/10/2026): font Plus Jakarta Sans, điểm nhấn vàng, ảnh trượt thẻ 2 cột, Hot Codes, thẻ mùa sale ===== */
:root { --gold: #c8962e; --gold-2: #a97b1d; --gold-soft: #fbf5e6; --shadow-hover: 0 12px 28px rgba(15, 39, 71, .12); }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { letter-spacing: -.015em; }
.section-head h2 { position: relative; padding-left: 14px; font-size: 24px; font-weight: 800; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 4px; background: var(--gold); }
.hero { background: radial-gradient(900px 380px at 88% -20%, rgba(200, 150, 46, .25), transparent 65%), linear-gradient(160deg, #14172e 0%, var(--navy) 55%, var(--navy-2) 100%); }
.hero .eyebrow { color: #e9c46a; }
.hero h1 { font-size: 44px; line-height: 1.12; }
.hero-trust svg { color: #e9c46a; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover, a:hover .btn-gold { background: var(--gold-2); }

/* Băng chạy ưu đãi nổi bật */
.ticker { display: flex; align-items: stretch; background: #14172e; border-bottom: 1px solid rgba(233, 196, 106, .25); color: #fff; font-size: 13px; }
.ticker-label { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 0 16px; background: var(--gold); color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.ticker-view { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 0; border-right: 1px solid rgba(255, 255, 255, .1); background: none; color: rgba(255, 255, 255, .85); font: inherit; white-space: nowrap; cursor: pointer; }
.ticker-item b { color: #e9c46a; font-weight: 800; }
.ticker-item i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); color: #fff; }
.ticker-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Ảnh trượt: thẻ 2 cột, ảnh 4:3 hiện trọn */
.promo-slider .slide { display: none; grid-template-columns: 1fr 360px; align-items: center; border-radius: 16px; overflow: hidden; color: #fff;
    background: radial-gradient(600px 300px at 0% 100%, rgba(200, 150, 46, .18), transparent 70%), linear-gradient(135deg, #14172e, var(--navy-2)); box-shadow: var(--shadow-hover); }
.promo-slider .slide.is-active { display: grid; }
.slide-text { padding: 28px 40px 48px; }
.slide-eyebrow { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border: 1px solid rgba(233, 196, 106, .5); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e9c46a; }
.slide-text h2 { margin: 0 0 10px; color: #fff; font-size: 28px; font-weight: 800; line-height: 1.18; }
.slide-text p { margin: 0 0 22px; color: rgba(255, 255, 255, .8); font-size: 16px; max-width: 460px; }
.slide-media { align-self: stretch; display: grid; place-items: center; background: #fff; }
.promo-slider img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.slider-dots { left: 44px; transform: none; bottom: 22px; }

/* Thẻ nổi bật: nhãn giảm giá */
.fcard { position: relative; border-radius: 12px; transition: box-shadow .15s, transform .15s; }
.fcard:hover { transform: translateY(-2px); }
.fcard-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; box-shadow: 0 4px 12px rgba(169, 123, 29, .35); }
.fcard-badge strong { font-size: 15px; font-weight: 800; }
.tile { border-radius: 12px; }

/* Hot Codes */
.grid-codes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .15s, transform .15s; }
.hcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold), #e9c46a); }
.hcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.hcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hcard-val { min-width: 0; text-align: right; line-height: 1.05; color: var(--green-2); }
.hcard-val strong { display: block; font-size: 28px; font-weight: 800; overflow-wrap: anywhere; }
.hcard-val span { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.hcard-store { font-size: 13px; font-weight: 600; color: var(--muted); }
.hcard-store:hover { color: var(--green); }
.hcard h3 { flex: 1; margin: 0 0 6px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.4; }
.hcard .btn-reveal { width: 100%; }

/* Mùa sale cuối năm: thẻ màu */
.grid-events { gap: 12px; }
.event-link { position: relative; gap: 4px; min-height: 150px; padding: 18px 16px; border: 0; border-radius: 12px; color: #fff; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.event-link > svg { margin-bottom: 8px; opacity: .85; }
.event-link span { color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.event-link b { flex: 1; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.2; }
.event-link em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 13px; font-weight: 600; opacity: .9; }
.event-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ev-0 { background: linear-gradient(150deg, #7c3a12, #c2672a); }
.ev-1 { background: linear-gradient(150deg, #0b0f19, #374151); }
.ev-2 { background: linear-gradient(150deg, #172f6e, #2b5fd9); }
.ev-3 { background: linear-gradient(150deg, #064e3b, #0e8a5f); }
.ev-4 { background: linear-gradient(150deg, #6b1414, #b42323); }
.ev-5 { background: linear-gradient(150deg, #4d3a12, #c8962e); }

@media (max-width: 1100px) {
    .grid-codes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
    .hero h1 { font-size: 32px; }
    .promo-slider .slide { grid-template-columns: 1fr; }
    .slide-media { display: none; }
    .slide-text { padding: 22px 22px 44px; }
    .slide-text h2 { font-size: 24px; }
    .slider-dots { left: 22px; bottom: 16px; }
    .grid-codes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .hero h1 { font-size: 28px; }
    .section-head h2 { font-size: 20px; }
    .hcard { padding: 16px 14px 14px; }
    .hcard-top { flex-direction: column; align-items: flex-start; }
    .hcard-val { text-align: left; }
    .hcard-val strong { font-size: 22px; }
    .hcard h3 { font-size: 13px; }
    .ticker-label { padding: 0 10px; font-size: 0; gap: 0; }
    .ticker-item { padding: 9px 16px; }
    .event-link { min-height: 128px; }
    .event-link b { font-size: 15px; }
}

/* ---- Trang store: ô «Best offer today» + thanh dính điện thoại (15/10/2026) ---- */
.store-head { flex-wrap: wrap; }
.store-info { flex: 1; min-width: 260px; }
.best-card { position: relative; width: 290px; margin-left: auto; padding: 16px 18px 14px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 10px; box-shadow: 0 10px 26px rgba(15, 39, 71, .08); text-align: center; }
.best-label { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.best-value { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 8px 0 2px; }
.best-value strong { font-size: 40px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.best-value span { font-size: 14px; font-weight: 800; color: var(--gold-2); letter-spacing: .08em; }
.best-title { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.best-card .btn-reveal, .best-card .btn-deal { width: 100%; height: 48px; }
.best-card .btn-deal { font-size: 15px; font-weight: 700; }
.best-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.best-meta span { display: inline-flex; align-items: center; gap: 4px; }
.best-meta svg { width: 13px; height: 13px; color: var(--green); }
.sticky-best { display: none; }
@media (max-width: 820px) {
    .best-card { width: 100%; margin-left: 0; }
    .sticky-best { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 39, 71, .12); transform: translateY(110%); transition: transform .2s; }
    .sticky-best.is-shown { transform: none; }
    .sticky-best-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .sticky-best-text b { font-size: 16px; color: var(--ink); }
    .sticky-best-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sticky-best .btn { flex-shrink: 0; height: 44px; padding: 0 18px; font-weight: 700; }
}

/* ---- Mã sắp hết hạn (15/10/2026) ---- */
.otag-ends { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: #fdecec; color: #b42323; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.otag-ends svg { width: 12px; height: 12px; }
.hcard-ending { border-color: #f3c7c7; }
.hcard-ending::before { background: linear-gradient(90deg, #b42323, #e26d5a); }
.ends-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: #fdecec; color: #b42323; font-size: 11px; font-weight: 700; }
.ends-chip svg { width: 12px; height: 12px; }
.best-meta .best-ends { color: #b42323; font-weight: 700; }
@media (max-width: 820px) {
    body:has(.sticky-best.is-shown) .site-footer { padding-bottom: 84px; }
}

/* ---- Thẻ danh mục có biểu tượng + logo store (15/10/2026) ---- */
.grid-ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { --c: #0f2747; --c-soft: #e9eef6; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: box-shadow .15s, transform .15s, border-color .15s; }
.ccard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--c-soft); text-decoration: none; }
.ccard-c0 { --c: #0f2747; --c-soft: #e6ecf5; }
.ccard-c1 { --c: #0e8a5f; --c-soft: #e3f4ec; }
.ccard-c2 { --c: #a97b1d; --c-soft: #fbf3df; }
.ccard-c3 { --c: #6d3fa8; --c-soft: #f0e9f9; }
.ccard-c4 { --c: #b4532a; --c-soft: #fbece4; }
.ccard-c5 { --c: #1c6e8c; --c-soft: #e2f1f6; }
.ccard-top { display: flex; align-items: center; gap: 14px; }
.ccard-icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background: var(--c-soft); color: var(--c); }
.ccard-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ccard-name b { font-size: 16px; font-weight: 700; line-height: 1.3; }
.ccard-name small { font-size: 13px; color: var(--muted); }
.ccard-best { flex-shrink: 0; align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ccard-logos { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ccard-logo .slogo { width: 52px; height: 52px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ccard-more { display: grid; place-items: center; height: 52px; min-width: 52px; padding: 0 8px; border-radius: 8px; background: #f3f5f8; color: var(--muted); font-size: 12px; font-weight: 700; }
.ccard-go { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-soft); color: var(--c); transition: background .15s, color .15s; }
.ccard:hover .ccard-go { background: var(--c); color: #fff; }
@media (max-width: 1100px) { .grid-ccards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .grid-ccards { grid-template-columns: 1fr; gap: 12px; }
    .ccard { padding: 14px; }
    .ccard-icon { width: 44px; height: 44px; }
}

/* ===== Ảnh minh hoạ trên thẻ ưu đãi (kiểu coupons.com) ===== */
.grid-ocards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-ocards > .empty { grid-column: 1 / -1; }
.ocard { position: relative; display: grid; grid-template-columns: 42% 1fr; min-height: 168px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.ocard:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ocard-media { display: grid; place-items: center; padding: 12px; border: 0; border-right: 1px solid var(--line); background: #fff; cursor: pointer; }
.ocard-media img { width: 100%; height: 100%; max-height: 150px; object-fit: contain; }
.ocard-media.is-logo { background: var(--bg); }
.ocard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 14px 46px; }
.ocard-save { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; line-height: 1.15; }
.ocard-store { color: var(--text); font-size: 15px; font-weight: 500; }
.ocard-store:hover { color: var(--green); }
.ocard-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ocard-type { position: absolute; left: calc(42% + 14px); right: 54px; bottom: 14px; overflow: hidden; white-space: nowrap; display: flex; align-items: center; gap: 4px; color: var(--green-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ocard-type svg { width: 13px; height: 13px; }
.ocard-type em { color: #b42323; font-style: normal; text-transform: none; letter-spacing: 0; }
.ocard-go { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--navy-2); border-radius: 50%; background: #fff; color: var(--navy-2); cursor: pointer; transition: background .15s, color .15s; }
.ocard:hover .ocard-go, .ocard-go:focus-visible { background: var(--navy-2); color: #fff; }
.fcard-media { position: relative; padding: 10px; }
.fcard-media img { width: 100%; height: 100%; object-fit: contain; }
.media-chip { position: absolute; left: 10px; bottom: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.hcard-media { display: block; height: 128px; margin: -20px -18px 4px; padding: 10px; border-bottom: 1px solid var(--line); background: #fff; }
.hcard-media img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1100px) { .grid-ocards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid-ocards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .grid-ocards { grid-template-columns: 1fr; gap: 12px; }
    .ocard { grid-template-columns: 38% 1fr; min-height: 150px; }
    .ocard-type { left: calc(38% + 14px); }
    .hcard-media { height: 104px; margin: -16px -14px 4px; }
    .fcard-media { padding: 8px; }
    .fcard-media .media-chip { display: none; }
}
.hcard-media.is-logo { display: grid; place-items: center; background: var(--bg); }

/* ===== Tài khoản khách: Log In / Sign Up, nút tim lưu store, trang My Account ===== */
.nav { align-items: center; }
.nav-auth { display: flex; align-items: center; gap: 18px; margin-left: 8px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .18); }
.nav .nav-register { padding: 8px 18px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; transition: background .15s; }
.nav .nav-register:hover { background: #e6edf6; color: var(--navy); }
.nav-account { display: inline-flex; align-items: center; gap: 6px; }
.nav-account svg { width: 18px; height: 18px; }
.save-store { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.save-store svg { width: 16px; height: 16px; }
.save-store:hover { border-color: #c2410c; color: #c2410c; }
.save-store.is-saved { border-color: #f4c7b8; background: #fff3ee; color: #c2410c; }
.save-store.is-saved svg { fill: currentColor; }
.save-store.is-mini { position: absolute; top: 8px; right: 8px; padding: 6px; }
.acc-store { position: relative; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 360px); justify-content: center; align-items: center; gap: 56px; padding: 56px 16px 24px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; color: var(--ink); }
.auth-card h2 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.auth-sub { margin: 0 0 22px; color: var(--muted); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.auth-form label small { color: var(--muted); font-weight: 400; }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=password] { padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-weight: 400; }
.auth-form input:focus { outline: 2px solid rgba(15, 118, 110, .25); border-color: var(--green); }
.auth-form input:disabled { background: var(--bg); color: var(--muted); }
.auth-form .auth-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--text); }
.auth-form details summary { cursor: pointer; color: var(--navy-2); font-size: 14px; font-weight: 600; }
.auth-form details[open] { display: flex; flex-direction: column; gap: 12px; }
.auth-error { margin: -6px 0 0; color: #b42323; font-size: 13px; }
.auth-ok { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--green-2); font-weight: 600; }
.auth-fine { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-fine a, .auth-alt a { color: var(--green); font-weight: 600; }
.auth-alt { margin: 20px 0 0; text-align: center; color: var(--muted); }
.auth-perks { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.auth-perks li { display: flex; gap: 14px; }
.auth-perks li > svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--green-soft); color: var(--green-2); }
.auth-perks b { display: block; color: var(--ink); }
.auth-perks span { color: var(--muted); font-size: 14px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.acc-main .grid-stores { grid-template-columns: repeat(4, 1fr); }
.acc-main .empty { margin-bottom: 16px; }
.acc-codes-head { margin-top: 32px; }
.section-head h2 small { color: var(--muted); font-size: 15px; font-weight: 500; }
.grid-ocards-3 { grid-template-columns: repeat(2, 1fr); }
.acc-side { position: sticky; top: 84px; }
.acc-side .auth-card { padding: 24px; }
@media (max-width: 1100px) {
    .nav { gap: 18px; }
    .nav-auth { padding-left: 14px; gap: 14px; }
}
@media (max-width: 960px) {
    .auth-wrap { grid-template-columns: minmax(0, 460px); gap: 28px; padding-top: 32px; }
    .acc-grid { grid-template-columns: 1fr; }
    .acc-side { position: static; }
}
@media (max-width: 820px) {
    .nav { align-items: stretch; }
    .nav-auth { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; border: 0; }
    .nav .nav-register { margin: 12px 0 4px; text-align: center; }
    .acc-main .grid-stores { grid-template-columns: repeat(3, 1fr); }
    .grid-ocards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .auth-card { padding: 24px 18px; }
    .acc-main .grid-stores { grid-template-columns: repeat(2, 1fr); }
}
.auth-wrap-single { grid-template-columns: minmax(0, 440px); }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.auth-label-row a, .auth-sub a { color: var(--green); font-size: 13px; font-weight: 600; }
