/* ==========================================================================
   CodeBuddy — theme-extra.css
   Additions on top of the CodesBuddy template's style.css + responsive.css:
   1. Header: user menu, icon button, flash messages
   2. Generic modal system (coupon reveal / cookie settings)
   3. CodeBuddy-specific homepage sections not in the base template
   ========================================================================== */

.leckerli-one-regular { font-family: 'Leckerli One', cursive; font-weight: 400; }

/* ------------------------------------------------------------- 1. HEADER */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  color: #fff; background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.22); }
.icon-btn svg { width: 18px; height: 18px; }

.user-menu { position: relative; }
.user-menu__btn {
  display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.12);
  border: none; border-radius: var(--r-pill); padding: 5px 12px 5px 5px; cursor: pointer;
  color: #fff; font: inherit;
}
.user-menu__btn:hover { background: rgba(255, 255, 255, 0.22); }
.user-menu__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-menu__name { font-size: 0.88rem; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__btn svg { width: 14px; height: 14px; }
.user-menu__panel {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.18s var(--ease); z-index: 60;
}
.user-menu.is-open .user-menu__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu__head strong { display: block; color: var(--text); font-size: 0.94rem; }
.user-menu__head span { color: var(--muted); font-size: 0.8rem; }
.user-menu__panel a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md);
  color: var(--text); font-size: 0.9rem; font-weight: 500; text-decoration: none;
}
.user-menu__panel a svg { width: 15px; height: 15px; color: var(--muted); }
.user-menu__panel a:hover { background: var(--bg); }
.user-menu__panel a.is-danger { color: var(--danger); }
.user-menu__panel a.is-danger svg { color: var(--danger); }
.user-menu__panel hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

.container-flash { max-width: var(--wrap); margin: 14px auto 0; padding: 0 20px; }
.flash {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-md);
  font-size: 0.92rem; font-weight: 500; margin-bottom: 10px;
}
.flash svg { width: 17px; height: 17px; flex-shrink: 0; }
.flash--success { background: rgba(16, 185, 129, 0.12); color: #067a56; }
.flash--error { background: rgba(225, 29, 72, 0.1); color: var(--danger); }
.flash--info { background: rgba(58, 123, 184, 0.12); color: var(--primary-dark); }

/* ---------------------------------------------------- 2. GENERIC MODAL */
.cb-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease);
}
.cb-modal.is-open { opacity: 1; visibility: visible; }
.cb-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 35, 0.55); backdrop-filter: blur(2px); }
.cb-modal__panel {
  position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-2xl); box-shadow: var(--sh-xl);
  transform: translateY(14px) scale(0.98); transition: transform 0.22s var(--ease-out);
}
.cb-modal__panel--sm { max-width: 460px; }
.cb-modal.is-open .cb-modal__panel { transform: translateY(0) scale(1); }
.cb-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 22px; background: var(--hero-gradient); color: #fff;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.cb-modal__head h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; }
.cb-modal__head h3 svg { width: 18px; height: 18px; }
.cb-modal__close {
  background: rgba(255, 255, 255, 0.16); border: none; color: #fff; width: 30px; height: 30px;
  border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.cb-modal__close:hover { background: rgba(255, 255, 255, 0.3); }
.cb-modal__body { padding: 26px 24px; text-align: center; }
.cb-modal__body--left { text-align: left; }
.cb-modal__hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.cb-modal__store { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.cb-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 22px; }

.cb-code-box {
  margin: 18px 0; padding: 22px; border-radius: var(--r-lg);
  background: var(--bg); border: 2px dashed var(--primary-light);
}
.coupon-code-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.cb-code-box h2 { font-family: 'Courier New', monospace; font-size: 1.9rem; font-weight: 800; color: var(--secondary); letter-spacing: 3px; margin-bottom: 14px; }
.cb-success-msg { display: none; align-items: center; justify-content: center; gap: 6px; color: var(--success); font-size: 0.86rem; font-weight: 600; margin-top: 10px; }
.cb-success-msg svg { width: 14px; height: 14px; }

.cb-feedback { padding-top: 18px; border-top: 1px solid var(--border); margin-top: 4px; }
.cb-feedback p { font-weight: 600; margin-bottom: 10px; }
.cb-feedback__btns { display: flex; gap: 10px; justify-content: center; }
.feedback-btn {
  padding: 8px 20px; border-radius: var(--r-pill); border: 2px solid var(--border); background: var(--surface);
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s var(--ease);
}
.feedback-btn svg { width: 14px; height: 14px; }
.feedback-btn:hover { border-color: var(--primary); }
.feedback-btn.yes.selected { background: var(--success); border-color: var(--success); color: #fff; }
.feedback-btn.no.selected { background: var(--danger); border-color: var(--danger); color: #fff; }

.cb-newsletter-box { background: var(--bg); border-radius: var(--r-lg); padding: 18px; margin-top: 18px; text-align: left; }
.cb-newsletter-box h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 6px; }
.cb-newsletter-box h4 svg { width: 16px; height: 16px; }
.cb-newsletter-box p { font-size: 0.86rem; color: var(--muted); margin-bottom: 10px; }
.cb-newsletter-box form { display: flex; gap: 8px; }
.cb-newsletter-box input { flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); font: inherit; }

.cb-redirect-notice {
  margin-top: 16px; padding: 10px 14px; border-radius: var(--r-md); font-size: 0.84rem;
  background: rgba(245, 158, 11, 0.12); color: var(--accent-dark);
}

.cb-cookie-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cb-cookie-row:last-child { border-bottom: none; }
.cb-cookie-row h5 { font-size: 0.94rem; margin-bottom: 3px; }
.cb-cookie-row p { font-size: 0.82rem; color: var(--muted); }
.cb-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cb-switch input { opacity: 0; width: 0; height: 0; }
.cb-switch span { position: absolute; inset: 0; background: var(--border); border-radius: var(--r-pill); transition: 0.2s; cursor: pointer; }
.cb-switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.cb-switch input:checked + span { background: var(--primary); }
.cb-switch input:checked + span::before { transform: translateX(18px); }
.cb-switch input:disabled + span { opacity: 0.6; cursor: not-allowed; }

.coupon-card__details-toggle {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer;
  color: var(--primary); font-size: 0.82rem; font-weight: 600; padding: 4px 0; margin: 2px 0 6px;
}
.coupon-card__details-toggle svg { width: 13px; height: 13px; }
.coupon-card__details {
  background: var(--bg); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px;
  font-size: 0.85rem; color: var(--muted);
}
.coupon-card__details p { margin-bottom: 6px; }
.coupon-card__details p:last-child { margin-bottom: 0; }

body.no-scroll { overflow: hidden; }

/* -------------------------------------- 3. BARGENO-SPECIFIC SECTIONS */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--wrap);
  margin: -34px auto 40px; padding: 0 20px; position: relative; z-index: 5;
}
.stats-bar__item {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-md);
  padding: 18px 14px; text-align: center;
}
.stats-bar__item strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stats-bar__item span { font-size: 0.82rem; color: var(--muted); }

.trending-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.trending-strip::-webkit-scrollbar { height: 6px; }
.trending-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.trending-pill {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); font-size: 0.85rem; font-weight: 600; transition: all 0.2s var(--ease);
}
.trending-pill:hover { border-color: var(--primary-light); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.trending-logo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; }

.tabbed-stores__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabbed-stores__tab {
  padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 0.88rem; cursor: pointer; color: var(--muted); transition: all 0.2s var(--ease);
}
.tabbed-stores__tab.is-active, .tabbed-stores__tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.tabbed-stores__panel { display: none; }
.tabbed-stores__panel.is-active { display: grid; }

.homepage-banner {
  display: block; border-radius: var(--r-xl); overflow: hidden; margin: 0 auto 10px; max-width: var(--wrap);
  box-shadow: var(--sh-md);
}
.homepage-banner img { width: 100%; display: block; }

.category-block { margin-bottom: 10px; }
.category-block__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.category-block__head .cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.category-block__head h3 { font-size: 1.15rem; font-weight: 700; }
.category-block__head a { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; }

.store-logo-img { width: 44px; height: 44px; border-radius: var(--r-md); object-fit: contain; background: #fff; border: 1px solid var(--border); padding: 4px; }
.coupon-card__top .store-logo-img,
.store-card .store-logo-img { width: 46px; height: 46px; }
.store-logo--xl { width: 96px; height: 96px; border-radius: var(--r-lg); font-size: 1.6rem; }
.store-logo--xl.store-logo-img { padding: 8px; }

/* ---------------------------------------------------------- STORE DETAIL */
.breadcrumb-bar { padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.breadcrumb-bar .wrap { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb-bar a { color: var(--muted); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar strong { color: var(--text); }

.store-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
@media (max-width: 900px) { .store-detail-layout { grid-template-columns: 1fr; } }

.store-hero {
  display: flex; gap: 22px; align-items: flex-start; background: var(--surface); border-radius: var(--r-xl);
  padding: 26px; box-shadow: var(--sh-sm); border: 1px solid var(--border); flex-wrap: wrap;
}
.store-hero__body { flex: 1; min-width: 200px; }
.store-hero__body h1 { font-size: 1.6rem; margin-bottom: 8px; }
.store-hero__rating { display: flex; align-items: center; gap: 3px; margin-bottom: 10px; color: var(--border); }
.store-hero__rating svg { width: 16px; height: 16px; }
.store-hero__rating svg.icon--fill { color: var(--accent); }
.store-hero__rating strong { margin-left: 6px; color: var(--text); }
.store-hero__rating span { color: var(--muted); font-size: 0.85rem; }
.store-hero__desc { color: var(--muted); margin-bottom: 12px; }
.store-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.store-hero__updated { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.store-hero__updated svg { width: 13px; height: 13px; }
.store-hero__updated .time-ago { font-weight: 700; color: var(--secondary); }
.store-hero__actions { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }

.coupon-card__share {
  width: 100%; margin-top: 10px; padding: 8px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 0.8rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.coupon-card__share svg { width: 13px; height: 13px; }
.coupon-card__share:hover { border-color: var(--primary); color: var(--primary); }

.about-store { margin-top: 40px; }
.about-store__card { background: var(--surface); border-radius: var(--r-xl); padding: 26px; border: 1px solid var(--border); }
.about-store__card h4 { margin: 22px 0 10px; font-size: 1.05rem; }
.feature-list, .tips-list { padding-left: 4px; }
.feature-list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; list-style: none; }
.feature-list li svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; margin-top: 3px; }
.tips-list { padding-left: 20px; }
.tips-list li { margin-bottom: 8px; }
.shipping-box { background: var(--bg); border-left: 4px solid var(--primary); border-radius: var(--r-md); padding: 14px 16px; margin-top: 18px; }
.shipping-box h5 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.shipping-box h5 svg { width: 15px; height: 15px; }

.store-detail-side { display: flex; flex-direction: column; gap: 20px; }
.side-widget { background: var(--surface); border-radius: var(--r-lg); padding: 18px; border: 1px solid var(--border); }
.side-widget h5 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.side-widget h5 svg { width: 15px; height: 15px; color: var(--primary); }
.side-store { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
.side-store:last-child { border-bottom: none; }
.side-store h6 { font-size: 0.86rem; margin-bottom: 2px; }
.side-store span { font-size: 0.76rem; color: var(--muted); }
.side-widget--news { background: var(--hero-gradient); color: #fff; }
.side-widget--news h5 { color: #fff; border-color: rgba(255,255,255,0.25); }
.side-widget--news p { font-size: 0.82rem; opacity: 0.9; margin-bottom: 10px; }
.side-widget--news form { display: flex; flex-direction: column; gap: 8px; }
.side-widget--news input { padding: 9px 12px; border-radius: var(--r-md); border: none; font: inherit; }

.star-rating-input { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.star-input { background: none; border: none; cursor: pointer; color: var(--border); padding: 2px; }
.star-input svg { width: 30px; height: 30px; }
.star-input.is-active { color: var(--accent); }
.star-input.is-active svg { fill: currentColor; }
#reviewText { width: 100%; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); font: inherit; resize: vertical; }

/* -------------------------------------------------------------- PAGE HERO */
.page-hero { background: var(--hero-gradient); color: #fff; padding: 52px 20px 42px; }
.page-hero__crumbs { display: flex; gap: 8px; font-size: 0.82rem; opacity: 0.75; margin-bottom: 16px; }
.page-hero__crumbs a { color: #fff; text-decoration: none; opacity: 0.85; }
.page-hero h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { max-width: 620px; opacity: 0.88; line-height: 1.7; margin-bottom: 26px; }
.page-hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.page-hero__stats strong { display: block; font-size: 1.6rem; font-weight: 800; }
.page-hero__stats span { font-size: 0.8rem; opacity: 0.8; }

/* ---------------------------------------------------------------- JUMP BAR */
.jump-bar { position: sticky; top: var(--header-h); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--sh-xs); }
.jump-bar__inner { display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px; scrollbar-width: thin; }
.jump-bar__link {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.jump-bar__link:hover { background: var(--bg); color: var(--primary); }
.jump-bar__link i { font-size: 0.85rem; }

/* --------------------------------------------------------------- CAT BLOCK */
.cat-block { margin-bottom: 46px; scroll-margin-top: calc(var(--header-h) + 60px); }
.cat-block:last-child { margin-bottom: 0; }
.cat-block__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-block__title { display: flex; align-items: center; gap: 12px; }
.cat-block__icon {
  width: 46px; height: 46px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 14%, transparent); color: var(--cat-color, var(--primary)); font-size: 1.2rem;
}
.cat-block__title h2 { font-size: 1.3rem; }
.cat-block__title h2 a { color: inherit; text-decoration: none; }
.cat-block__viewall { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.cat-block__viewall span { color: var(--muted); font-weight: 500; }
.cat-block__viewall svg { width: 14px; height: 14px; }

.logo-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1100px) { .logo-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }
.logo-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 8px;
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: inherit;
  transition: all 0.2s var(--ease);
}
.logo-tile:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); border-color: var(--primary-light); }
.logo-tile__name { font-size: 0.78rem; font-weight: 600; }
.logo-tile__count { font-size: 0.7rem; color: var(--muted); }

.name-list { font-size: 0.85rem; line-height: 2; color: var(--muted); }
.name-list a { color: var(--text); text-decoration: none; }
.name-list a:hover { color: var(--primary); }
.name-list__more { color: var(--primary) !important; font-weight: 600; }

.empty--inline { padding: 34px 0; }

.seo-copy h2 { font-size: 1.4rem; margin-bottom: 14px; }
.seo-copy p { color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.seo-copy a { color: var(--primary); font-weight: 600; text-decoration: none; }

.page-hero--sm { padding: 38px 20px 32px; }
.page-hero--sm h1 { font-size: 1.9rem; margin-bottom: 8px; }
.page-hero--sm p { margin-bottom: 0; max-width: 700px; }
.hero-search--onpage { margin-top: 20px; max-width: 520px; }

.count-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px;
  border-radius: var(--r-pill); background: var(--bg); color: var(--muted); font-size: 0.78rem; font-weight: 700; margin-left: 8px;
}

/* --------------------------------------------------------------- PAGINATION
   CI3's pagination library emits either plain <a>/<strong> tags or, where the
   controller configured Bootstrap-style classes (ul.pagination/li.page-item/
   a.page-link), those exact classes. Both are styled here so every listing
   page's pager looks the same regardless of which controller produced it. */
.pager-wrap { display: flex; justify-content: center; margin-top: 40px; }
.pager-wrap ul.pagination { display: flex; gap: 6px; list-style: none; }
.pager-wrap li.page-item { display: flex; }
.pager-wrap a.page-link, .pager-wrap a, .pager-wrap strong {
  display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--r-md); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  font-size: 0.85rem; font-weight: 600; background: var(--surface);
}
.pager-wrap a.page-link:hover, .pager-wrap a:hover { border-color: var(--primary); color: var(--primary); }
.pager-wrap li.page-item.active a.page-link, .pager-wrap strong {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ------------------------------------------------------------ CONTENT / LEGAL PAGES */
.wrap--narrow { max-width: 860px; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--sh-sm); }
.content-card p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.content-card h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.content-card h3:first-child { margin-top: 0; }
.content-card h5 { font-size: 0.98rem; margin: 18px 0 8px; }
.content-card__list { margin-bottom: 14px; }
.content-card__list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; color: var(--muted); line-height: 1.6; }
.content-card__list li svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; margin-top: 3px; }
.content-card__steps { padding-left: 20px; margin-bottom: 14px; }
.content-card__steps li { margin-bottom: 10px; color: var(--muted); line-height: 1.7; }
.content-card__steps strong { color: var(--text); }
.content-card__cta { text-align: center; margin-top: 24px; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 20px; }
.faq-item summary { padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { color: var(--muted); padding-bottom: 16px; line-height: 1.7; }

.contact-block { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-block:last-of-type { margin-bottom: 0; }
.contact-block__icon { width: 42px; height: 42px; border-radius: var(--r-md); background: rgba(15, 76, 129, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-block__icon svg { width: 18px; height: 18px; }
.contact-block h5 { margin-bottom: 4px; }
.contact-block p { margin-bottom: 0; }
.contact-block a { color: var(--primary); font-weight: 600; text-decoration: none; }
.info-banner { margin-top: 26px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(58, 123, 184, 0.1); color: var(--primary-dark); font-size: 0.9rem; }

/* ------------------------------------------------------------------- AUTH PAGES */
.auth-body { background: var(--hero-gradient); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; font-family: var(--font-body); }
.auth-shell { width: 100%; max-width: 440px; }
.auth-card { background: var(--surface); border-radius: var(--r-2xl); box-shadow: var(--sh-xl); overflow: hidden; }
.auth-card--wide { max-width: 560px; }
.auth-shell:has(.auth-card--wide) { max-width: 560px; }
.auth-card__head { background: var(--hero-gradient); color: #fff; text-align: center; padding: 34px 30px; }
.logo--auth { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.logo--auth .logo__mark { width: 32px; height: 32px; border-radius: var(--r-md); background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
.logo--auth .logo__mark svg { width: 18px; height: 18px; }
.auth-card__head p { opacity: 0.88; font-size: 0.9rem; }
.auth-card__body { padding: 34px 30px; }
.auth-field { display: block; margin-bottom: 16px; }
.auth-field span { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.auth-field span em { font-weight: 400; color: var(--muted); font-style: normal; }
.auth-field input, .auth-field textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--r-md); font: inherit; transition: border-color 0.2s;
}
.auth-field input:focus { outline: none; border-color: var(--primary-light); }
.auth-field small { display: block; margin-top: 5px; font-size: 0.76rem; color: var(--muted); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .auth-grid { grid-template-columns: 1fr; } }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 0.85rem; }
.auth-row a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; cursor: pointer; }
.auth-checkbox input { margin-top: 3px; }
.auth-checkbox--terms { margin-bottom: 18px; }
.auth-checkbox--terms a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-submit { width: 100%; justify-content: center; padding: 12px; font-size: 0.98rem; }
.auth-card__foot { text-align: center; padding: 18px; background: var(--bg); border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); }
.auth-card__foot a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-back { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 18px; color: #fff; opacity: 0.85; text-decoration: none; font-size: 0.85rem; }
.auth-back svg { width: 14px; height: 14px; transform: scaleX(-1); }

.password-strength { height: 5px; border-radius: 3px; background: var(--border); margin-top: 8px; overflow: hidden; }
.password-strength::before { content: ''; display: block; height: 100%; width: 0; transition: all 0.25s; }
.password-strength.is-weak::before { width: 33%; background: var(--danger); }
.password-strength.is-medium::before { width: 66%; background: var(--accent); }
.password-strength.is-strong::before { width: 100%; background: var(--success); }
.password-match { font-size: 0.8rem; margin-top: 6px; font-weight: 600; }
.password-match.is-match { color: var(--success); }
.password-match.is-mismatch { color: var(--danger); }
.auth-requirements { background: var(--bg); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; font-size: 0.82rem; }
.auth-requirements strong { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.auth-requirements strong svg { width: 14px; height: 14px; }
.auth-requirements ul { padding-left: 20px; color: var(--muted); }
.auth-requirements li { margin-bottom: 3px; }

/* --------------------------------------------------------------- USER DASHBOARD */
.dash-body { background: var(--bg); font-family: var(--font-body); }
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 260px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  padding: 24px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.logo--dash { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 22px; padding: 0 6px; }
.logo--dash .logo__mark { width: 30px; height: 30px; border-radius: var(--r-md); background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.logo--dash .logo__mark svg { width: 16px; height: 16px; }

.dash-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-lg); background: var(--bg); margin-bottom: 18px; }
.dash-user img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.dash-user strong { display: block; font-size: 0.88rem; }
.dash-user span { font-size: 0.76rem; color: var(--muted); }

.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); color: var(--muted);
  text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.dash-nav a svg { width: 16px; height: 16px; }
.dash-nav a:hover { background: var(--bg); color: var(--text); }
.dash-nav a.is-active { background: rgba(255, 107, 53, 0.1); color: var(--primary); }
.dash-nav a.is-danger { color: var(--danger); }
.dash-nav hr { border: none; border-top: 1px solid var(--border); margin: 10px 4px; }

.dash-mobile-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 60; width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; align-items: center; justify-content: center; box-shadow: var(--sh-md);
}
.dash-mobile-toggle svg { width: 18px; height: 18px; }

.dash-main { flex: 1; padding: 32px; max-width: 1000px; }

@media (max-width: 900px) {
  .dash-sidebar { position: fixed; left: -280px; top: 0; z-index: 55; transition: left 0.25s var(--ease); box-shadow: var(--sh-xl); }
  .dash-shell.sidebar-open .dash-sidebar { left: 0; }
  .dash-mobile-toggle { display: flex; }
  .dash-main { padding: 76px 18px 32px; }
}

.dash-page-head { margin-bottom: 22px; }
.dash-page-head h1 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.dash-page-head h1 svg { width: 22px; height: 22px; color: var(--primary); }

.dash-welcome { background: var(--hero-gradient); color: #fff; border-radius: var(--r-xl); padding: 30px 32px; margin-bottom: 26px; }
.dash-welcome h1 { font-size: 1.6rem; margin-bottom: 6px; }
.dash-welcome p { opacity: 0.88; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.dash-stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .dash-stats, .dash-stats--3 { grid-template-columns: repeat(2, 1fr); } }
.dash-stat { background: var(--surface); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.dash-stat__icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.dash-stat__icon svg { width: 22px; height: 22px; }
.dash-stat__icon--purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.dash-stat__icon--green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.dash-stat__icon--orange { background: linear-gradient(135deg, #f2994a, #f2c94c); }
.dash-stat__icon--blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.dash-stat strong { display: block; font-size: 1.35rem; font-weight: 800; }
.dash-stat span { font-size: 0.8rem; color: var(--muted); }

.dash-quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.dash-quicklinks a {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; text-align: center;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.88rem; transition: all 0.2s var(--ease);
}
.dash-quicklinks a svg { width: 24px; height: 24px; color: var(--primary); display: block; margin: 0 auto 8px; }
.dash-quicklinks a:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }

.dash-card { background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--border); padding: 24px; margin-bottom: 22px; }
.dash-card h5 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin-bottom: 18px; }
.dash-card h5 svg { width: 17px; height: 17px; color: var(--primary); }
.dash-empty { color: var(--muted); text-align: center; padding: 24px 0; }
.dash-empty a { color: var(--primary); font-weight: 600; text-decoration: none; }

.dash-activity-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-item__icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-activity-item__icon svg { width: 16px; height: 16px; }
.dash-activity-item__icon.is-success { background: rgba(16,185,129,0.12); color: var(--success); }
.dash-activity-item__icon.is-info { background: rgba(58,123,184,0.12); color: var(--primary); }
.dash-activity-item p { color: var(--muted); font-size: 0.86rem; margin: 2px 0; }
.dash-activity-item__time { display: flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--muted); }
.dash-activity-item__time svg { width: 11px; height: 11px; }

/* Profile page */
.profile-header-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px; text-align: center; margin-bottom: 22px; }
.avatar-wrapper { position: relative; width: 130px; height: 130px; margin: 0 auto 16px; }
.avatar { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); }
.avatar-upload { position: absolute; bottom: 2px; right: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--sh-sm); }
.avatar-upload svg { width: 15px; height: 15px; }
.profile-header-card .muted { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.profile-remove-photo { margin-top: 12px; }
.profile-remove-photo a { color: var(--danger); font-size: 0.82rem; text-decoration: none; font-weight: 600; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }
.info-grid strong { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.info-grid span { font-weight: 600; }

/* My coupons page */
.used-coupon-list { display: flex; flex-direction: column; gap: 4px; }
.used-coupon-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.used-coupon-row:last-child { border-bottom: none; }
.used-coupon-row__body { flex: 1; min-width: 0; }
.used-coupon-row__body h6 { font-size: 0.92rem; margin-bottom: 2px; }
.used-coupon-row__body h6 a { color: inherit; text-decoration: none; }
.used-coupon-row__body p { font-size: 0.84rem; color: var(--muted); margin-bottom: 4px; }
.used-coupon-row__date { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--muted); }
.used-coupon-row__date svg { width: 11px; height: 11px; }
.used-coupon-row__savings { text-align: right; flex-shrink: 0; }
.used-coupon-row__savings strong { display: block; color: var(--success); font-size: 1.1rem; }
.used-coupon-row__savings span { font-size: 0.72rem; color: var(--muted); }

/* Savings page */
.savings-chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 20px; }
.savings-chart__bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.savings-chart__fill { width: 100%; max-width: 44px; background: linear-gradient(180deg, var(--primary-light), var(--primary)); border-radius: var(--r-md) var(--r-md) 0 0; min-height: 4px; }
.savings-chart__amount { font-size: 0.76rem; font-weight: 700; margin-top: 8px; }
.savings-chart__label { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
