:root{
  --primary:#E64B3C;
  --primary-strong:#bc301f;
  --primary-soft:#ffd8d2;
  --bg:#FCF6F3;
  --surface:#FFFBF9;
  --surface-2:#F6ECE7;
  --text:#221816;
  --muted:#6d5a56;
  --line:rgba(34,24,22,.08);
  --green:#1F8F5F;
  --green-soft:#e8f7ef;
  --gold:#FFC857;
  --blue:#4d8dff;
  --blue-soft:#e7f0ff;
  --hot-1:#ffcc80;
  --hot-2:#ff9800;
  --hot-3:#ff6b35;
  --hot-4:#ff3d00;
  --shadow:0 20px 60px rgba(114, 62, 56, .10);
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(230,75,60,.09), transparent 26%),
    linear-gradient(180deg, #fff7f5 0%, var(--bg) 45%, #fffaf8 100%);
}

body.modal-open{
  overflow:hidden;
}

a{color:inherit;text-decoration:none}
button,input{font:inherit}
img{display:block;max-width:100%}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.hidden{display:none!important}
.container{width:min(1240px,calc(100% - 32px));margin:0 auto}

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(34,24,22,.06);
}

.topbar-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.topnav-wrap{
  border-top:1px solid rgba(34,24,22,.04);
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px);
}
.topnav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:56px;
}
.topnav{
  display:flex;
  align-items:center;
  gap:4px;
  overflow:auto;
  scrollbar-width:none;
}
.topnav::-webkit-scrollbar{display:none}
.topnav-link{
  border:0;
  background:transparent;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease,transform .18s ease, box-shadow .18s ease;
}
.topnav-link:hover{
  background:rgba(230,75,60,.08);
  color:var(--text);
}
.topnav-link.active{
  background:rgba(230,75,60,.12);
  color:var(--primary-strong);
  box-shadow:inset 0 -2px 0 var(--primary);
}
.topnav-search{
  width:min(300px, 100%);
  flex:0 0 auto;
}
.topnav-search input{
  width:100%;
  min-height:40px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#faf6f4;
  padding:0 14px;
  outline:none;
  font:inherit;
  font-size:13px;
}
.topnav-search input:focus{
  border-color:rgba(230,75,60,.5);
  box-shadow:0 0 0 4px rgba(230,75,60,.12);
  background:#fff;
}

.brand{display:flex;align-items:center;gap:14px}
.brand-icon{
  width:44px;height:44px;border-radius:12px;object-fit:cover;
  box-shadow:0 10px 24px rgba(230,75,60,.18);
}
.brand-copy{display:flex;flex-direction:column}
.brand-copy strong{font-size:17px;line-height:1}
.brand-copy small{margin-top:6px;font-size:12px;color:var(--muted)}
.topbar-user{
  display:flex;
  align-items:center;
  gap:12px;
}
.user-pill{
  display:flex;
  align-items:center;
  cursor:pointer;
  background:transparent;
  border:0;
  padding:0;
  box-shadow:none;
}
.user-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  background:var(--surface-2);
  border:2px solid #fff;
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
  transition:transform .2s ease;
}
.user-avatar:hover{
  transform:scale(1.05);
}
.user-meta{
  display:none !important;
}
.pill-action{
  display:none !important;
}
.action-btn,.filter-chip{
  border:0;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.action-btn:hover,.filter-chip:hover,.btn:hover{transform:translateY(-1px)}

.toolbar,.offer-card,.loading-panel,.empty-state,.detail-page-card{
  background:rgba(255,255,255,.78);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:16px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
}

.btn-primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  color:#fff;
  box-shadow:0 16px 30px rgba(230,75,60,.24);
}

.btn-secondary{
  background:rgba(255,255,255,.9);
  border-color:var(--line);
  color:var(--text);
}

.btn.small{padding:12px 16px;border-radius:14px}

.google-icon-btn{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
  cursor:pointer;
  padding:0;
}
.google-icon-btn svg{
  width:22px;
  height:22px;
  display:block;
}

#openComposerBtn::before{
  content:none;
}
.mobile-composer-btn{
  display:none !important;
}

.profile-composer-grid{
  display:grid;
  grid-template-columns:1fr 1.3fr;
  gap:16px;
  margin-bottom:16px;
}

.feed-section{padding:8px 0 38px}
.profile-panel,.composer-panel{
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:28px;
  padding:20px;
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.panel-head h2{
  margin:0;
  font-size:22px;
  letter-spacing:-.03em;
}
.panel-note{
  color:var(--muted);
  font-size:13px;
}
.profile-grid,.composer-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.field{
  display:grid;
  gap:8px;
}
.field-full{
  grid-column:1 / -1;
}
.field span{
  font-size:13px;
  font-weight:800;
  color:var(--muted);
}
.field input,.field textarea,.field select{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  min-height:48px;
  border-radius:16px;
  padding:12px 14px;
  outline:none;
  font:inherit;
  resize:vertical;
}
.field textarea{
  min-height:auto;
}
.field input:focus,.field textarea:focus,.field select:focus{
  border-color:rgba(230,75,60,.5);
  box-shadow:0 0 0 4px rgba(230,75,60,.12);
}
.composer-actions{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.toolbar{
  border-radius:26px;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:sticky;
  top:90px;
  z-index:20;
}
.search-wrap{flex:1}
.search-input{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  min-height:52px;
  border-radius:18px;
  padding:0 18px;
  outline:none;
}
.search-input:focus{border-color:rgba(230,75,60,.5);box-shadow:0 0 0 4px rgba(230,75,60,.12)}

.toolbar-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.chip-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.filter-chip{
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-weight:800;
}
.filter-chip.active{
  background:var(--primary);
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 24px rgba(230,75,60,.20);
}

.feed-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:16px 2px 18px;
  color:var(--muted);
  font-size:13px;
}

.loading-panel,.empty-state{
  border-radius:24px;
  padding:22px;
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}
.loading-panel p,.empty-state p{margin:6px 0 0;color:var(--muted)}

.loading-spinner{
  width:44px;height:44px;border-radius:999px;
  border:4px solid rgba(230,75,60,.15);
  border-top-color:var(--primary);
  animation:spin .9s linear infinite;
}

@keyframes spin{to{transform:rotate(360deg)}}

.feed-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}

.offer-card{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  min-height:100%;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor:pointer;
}
.offer-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 60px rgba(114, 62, 56, .14);
  border-color:rgba(230,75,60,.14);
}
.card-click{
  position:absolute;
  inset:0;
  opacity:0;
  z-index:1;
  pointer-events:none;
}

.offer-media-wrap{
  position:relative;
  aspect-ratio:1 / 1;
  background:linear-gradient(180deg,#fff,#f8f1ee);
  overflow:hidden;
}

.offer-media{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}
.offer-card:hover .offer-media{
  transform:scale(1.03);
}

.temp-pill{
  position:absolute;
  left:14px;
  bottom:14px;
  min-width:66px;
  text-align:center;
  padding:8px 10px;
  border-radius:14px;
  font-weight:900;
  font-size:13px;
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.offer-body{
  position:relative;
  z-index:2;
  padding:15px;
}
.offer-publisher{
  display:none;
}
.image-store-chip{
  display:none;
}
.offer-temp-col{
  display:none;
}

.offer-topline,.price-row,.meta-row,.stats-row,.card-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.offer-topline{
  justify-content:space-between;
  margin-bottom:10px;
}

.store-badge,.time-badge,.discount-badge,.coupon-badge,.stat-mini{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.store-badge{
  background:var(--surface-2);
  padding:0;
  overflow:hidden;
}
.store-identity{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  padding:0 10px;
}
.store-identity.compact{
  min-height:28px;
  padding:0 9px;
  gap:5px;
}
.store-logo{
  width:16px;
  height:16px;
  border-radius:4px;
  object-fit:contain;
  background:#fff;
  flex:0 0 auto;
}
.store-identity.compact .store-logo{
  width:14px;
  height:14px;
  border-radius:3px;
}
.store-name{
  line-height:1;
  white-space:nowrap;
}
.verified-badge{
  width:14px;
  height:14px;
  flex:0 0 auto;
  display:inline-block;
  background:url("/assets/ic_verified.png") center/contain no-repeat;
}
.store-identity.compact .verified-badge{
  width:13px;
  height:13px;
}
.time-badge{background:#fff;color:var(--muted);border:1px solid var(--line)}
.discount-badge{background:var(--green-soft);color:var(--green)}
.coupon-badge{
  background:#fff3db;
  color:#9a5d00;
  border:1px dashed rgba(154, 93, 0, 0.4);
  cursor:pointer;
  outline:none;
  font-family:inherit;
  transition:background .2s ease, transform .2s ease;
}
.coupon-badge:hover{
  background:#ffe8be;
  transform:translateY(-1px);
}
.coupon-badge.copied{
  background:var(--green-soft);
  color:var(--green);
}
.stat-mini{
  background:#fff;
  border:1px solid var(--line);
  color:var(--muted);
}

.offer-title{
  margin:0 0 8px;
  font-size:17px;
  line-height:1.24;
  letter-spacing:-.02em;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.offer-description{
  margin:0 0 12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.price-row{
  margin-bottom:10px;
}
.price-main{
  font-size:24px;
  line-height:1;
  letter-spacing:-.04em;
}
.price-original{
  color:var(--muted);
  text-decoration:line-through;
  font-weight:700;
}

.meta-row,.stats-row{margin-bottom:10px}

.card-actions{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.action-btn{
  position:relative;
  z-index:3;
  min-height:38px;
  padding:0 8px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--line);
  font-weight:800;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor:pointer;
  outline:none;
}
.action-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(114, 62, 56, .12);
}
.action-btn:active{
  transform:translateY(0) scale(0.96);
}
.vote-icon{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.vote-icon svg{
  width:20px;
  height:20px;
  display:block;
}
.action-vote,
.detail-vote-btn{
  padding:0;
}
.action-upvote{
  color:#FF6B35;
  background:#fffcfb;
  border-color:rgba(255,107,53,.18);
}
.action-upvote:hover{
  background:#fff6f2;
  border-color:rgba(255,107,53,.32);
}
.action-downvote{
  color:#00a2ff;
  background:#fbfdff;
  border-color:rgba(0,162,255,.18);
}
.action-downvote:hover{
  background:#f2f9ff;
  border-color:rgba(0,162,255,.32);
}
.action-share{
  padding:0;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#fff,#fff6f3);
}
.action-share:hover{
  color:var(--primary);
  border-color:rgba(230,75,60,.18);
  box-shadow:0 8px 20px rgba(230,75,60,.12);
}
.action-share.copied{
  color:var(--green);
  background:linear-gradient(180deg,#fff,#edf9f2);
  border-color:rgba(31,143,95,.18);
}
.share-icon{
  width:20px;
  height:20px;
  padding:0;
}
.share-icon svg{
  width:20px;
  height:20px;
  display:block;
}
.action-open{
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  color:#fff;
  border-color:transparent;
  box-shadow:0 8px 18px rgba(230,75,60,.2);
}
.action-open:hover{
  box-shadow:0 12px 24px rgba(230,75,60,.3);
  color:#fff;
}
.action-save.saved{
  background:linear-gradient(135deg,#2ecc71,#27ae60);
  color:#fff;
  border-color:transparent;
  box-shadow:0 8px 18px rgba(46,204,113,.24);
}
.action-save.saved:hover{
  box-shadow:0 12px 24px rgba(46,204,113,.32);
  color:#fff;
}
.action-upvote.active,
.detail-vote-btn.active#detailUpvoteBtn,
.detail-vote-btn.active.action-upvote {
  background:linear-gradient(135deg,#ff8c00,#ff3c00) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 8px 18px rgba(255,60,0,.28) !important;
}
.action-downvote.active,
.detail-vote-btn.active#detailDownvoteBtn,
.detail-vote-btn.active.action-downvote {
  background:linear-gradient(135deg,#00b0ff,#0070f3) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 8px 18px rgba(0,112,243,.28) !important;
}

@media (min-width: 641px){
  .feed-grid{
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:16px;
  }
  .offer-card{
    border-radius:24px;
    background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,250,248,.86));
  }
  .offer-media-wrap{
    aspect-ratio:1 / .82;
  }
  .offer-body{
    padding:16px 16px 15px;
  }
  .offer-topline{
    align-items:flex-start;
    gap:8px;
  }
  .store-badge{
    max-width:100%;
  }
  .time-badge{
    margin-left:auto;
    flex:0 0 auto;
  }
  .offer-title{
    min-height:42px;
  }
  .offer-description{
    min-height:39px;
  }
  .price-row{
    align-items:baseline;
    gap:8px;
  }
  .meta-row{
    gap:8px;
  }
  .stats-row{
    gap:8px;
  }
  .card-actions{
    grid-template-columns:40px 40px minmax(0,1fr) 40px minmax(0,1.2fr);
    gap:8px;
    align-items:center;
  }
  .action-vote,
  .action-share{
    width:40px;
    min-width:40px;
    padding:0;
  }
  .action-save{
    padding:0 12px;
  }
  .action-open{
    padding:0 14px;
    font-size:11px;
    letter-spacing:-.01em;
    box-shadow:0 12px 22px rgba(230,75,60,.18);
  }
}

@media (min-width: 1280px){
  .feed-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

.scroll-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:54px;
  height:54px;
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  color:#fff;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 18px 30px rgba(230,75,60,.26);
  z-index:60;
}
.mobile-bottom-nav{
  display:none;
}

.new-promo-banner{
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  padding: 12px 24px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(230,75,60,.18);
  animation: slideDownFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.new-promo-banner:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230,75,60,.24);
}
.new-promo-banner:active{
  transform: translateY(0);
}
@keyframes slideDownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-page{
  padding:16px 0 48px;
}
.profile-page{
  padding:16px 0 48px;
}
.detail-page-top{
  margin-bottom:18px;
}
.detail-page-card,.profile-page-card{
  border-radius:28px;
  padding:32px;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(20px);
  border:1px solid rgba(230,75,60,0.06);
  box-shadow:0 30px 80px rgba(114, 62, 56, 0.1);
}
.detail-grid{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap:32px;
  align-items:start;
}
.detail-image-wrap{
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}
.detail-image-wrap:hover{
  transform:scale(1.01);
}
.detail-image-wrap img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}
.detail-side{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.detail-title{
  margin:0;
  font-size:28px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--text);
}
.detail-desc{
  margin:0;
  color:var(--muted);
  font-size:14.5px;
  line-height:1.7;
  background:rgba(255, 255, 255, 0.4);
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line);
}
.detail-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0;
}
.detail-price{
  font-size: 32px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin: 0;
}
.detail-price-original{
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 700;
  font-size: 16px;
}
.detail-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:8px;
}
.detail-vote-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.detail-vote-row .action-btn {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 16px;
  padding: 0;
}

.comments-box{
  margin-top:18px;
  border-top:1px solid var(--line);
  padding-top:18px;
}
.comment-form{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.comment-form textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  padding:14px 16px;
  font:inherit;
  outline:none;
}
.comment-form textarea:focus{
  border-color:rgba(230,75,60,.5);
  box-shadow:0 0 0 4px rgba(230,75,60,.12);
}
.comment-form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.comments-list{
  display:grid;
  gap:12px;
  margin-top:12px;
}
.comment-item{
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(34, 24, 22, 0.02);
  align-items: start;
}
.comment-avatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.comment-content{
  flex: 1;
  min-width: 0;
}
.comment-header{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.comment-author{
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.comment-author-badge{
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comment-time{
  font-size: 11px;
  color: var(--muted);
}
.comment-text{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}

.composer-modal{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:20px;
}
.composer-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(32,16,14,.48);
  backdrop-filter:blur(10px);
}
.composer-modal-card{
  position:relative;
  z-index:1;
  width:min(840px,100%);
  max-height:min(88vh,920px);
  overflow:auto;
  border-radius:30px;
  padding:22px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(34,24,22,.24);
}
.composer-modal-head{
  position:sticky;
  top:0;
  z-index:2;
  padding-bottom:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.98) 82%, rgba(255,255,255,0));
}
.composer-close{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.profile-page-layout{
  display:grid;
  gap:18px;
}
.profile-hero-card,.profile-offers-card{
  background:rgba(255,255,255,.82);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:28px;
  padding:22px;
}
.profile-hero-head{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:center;
}
.profile-hero-avatar{
  width:104px;
  height:104px;
  border-radius:28px;
  object-fit:cover;
  background:var(--surface-2);
  box-shadow:0 14px 30px rgba(230,75,60,.18);
}
.profile-overline{
  display:inline-flex;
  margin-bottom:8px;
  font-size:12px;
  font-weight:900;
  color:var(--primary);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.profile-hero-copy h1{
  margin:0 0 8px;
  font-size:34px;
  line-height:1.02;
  letter-spacing:-.04em;
}
.profile-badge{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  margin-bottom:10px;
  padding:0 12px;
  border-radius:999px;
  background:#fff3db;
  color:#9a5d00;
  font-size:12px;
  font-weight:900;
}
.profile-hero-copy p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}
.profile-link-row,.profile-mini-stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.profile-link-row{
  margin-top:14px;
}
.profile-link-chip{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  background:#fff6f3;
  border:1px solid rgba(230,75,60,.12);
  color:var(--primary-strong);
  font-size:12px;
  font-weight:800;
}
.profile-link-chip.muted{
  color:var(--muted);
  border-color:var(--line);
  background:#fff;
}
.profile-mini-stats{
  margin-top:18px;
}
.profile-mini-stat{
  min-width:160px;
  flex:1 1 180px;
  padding:16px 18px;
  border-radius:20px;
  background:linear-gradient(180deg,#fff,#fff8f6);
  border:1px solid var(--line);
}
.profile-mini-stat strong{
  display:block;
  font-size:24px;
  line-height:1;
  margin-bottom:6px;
}
.profile-mini-stat span{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.profile-offer-list{
  display:grid;
  gap:12px;
}
.profile-page-actions{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.profile-offer-item{
  width:100%;
  display:grid;
  grid-template-columns:80px 1fr;
  gap:14px;
  align-items:center;
  padding:12px;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  text-align:left;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.profile-offer-item:hover{
  transform:translateY(-2px);
  border-color:rgba(230,75,60,.14);
  box-shadow:0 18px 34px rgba(34,24,22,.08);
}
.profile-offer-item img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:16px;
  background:var(--surface-2);
}
.profile-offer-item strong{
  display:block;
  margin-bottom:6px;
  font-size:15px;
  line-height:1.35;
}
.profile-offer-item span{
  color:var(--muted);
  font-size:13px;
}

@media (max-width: 1080px){
  .detail-grid{grid-template-columns:1fr}
  .hero-stats-inline{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-composer-grid{grid-template-columns:1fr}
  .status-card{padding:20px}
}

@media (max-width: 860px){
  .topnav-inner{
    flex-direction:column;
    align-items:stretch;
    min-height:auto;
    padding:8px 0 10px;
  }
  .topnav-search{
    width:100%;
  }
  .toolbar{
    position:static;
    flex-direction:column;
    align-items:stretch;
  }
  .toolbar-actions{
    justify-content:space-between;
    flex-direction:column;
    align-items:stretch;
  }
  .chip-row{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}
  .hero-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-stats-inline{grid-template-columns:1fr 1fr}
  .profile-grid,.composer-form{grid-template-columns:1fr}
  .card-actions{grid-template-columns:1fr 1fr 1fr}
}

@media (max-width: 640px){
  .container{width:min(calc(100% - 16px),1240px)}
  body{
    padding-bottom:0;
  }
  .topbar{
    background:rgba(252,246,243,.94);
    backdrop-filter:none !important;
  }
  .topbar-inner{
    min-height:60px;
    gap:8px;
    align-items:center;
    flex-wrap:nowrap;
  }
  .topnav-wrap{
    position:sticky;
    top:60px;
    z-index:38;
    background:rgba(252,246,243,.95);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(34,24,22,.06);
  }
  .topnav-inner{
    padding:0;
  }
  .topnav{
    display:flex !important;
    overflow-x:auto;
    white-space:nowrap;
    -webkit-overflow-scrolling:touch;
    gap:8px;
    padding:8px 16px;
    scrollbar-width:none;
  }
  .topnav::-webkit-scrollbar {
    display:none;
  }
  .topnav-link{
    display:inline-block;
    flex:0 0 auto;
    font-size:13px;
    font-weight:700;
    padding:6px 12px;
    border-radius:10px;
    background:transparent;
    border:0;
    color:var(--muted);
    cursor:pointer;
    transition:background .2s ease, color .2s ease;
  }
  .topnav-link.active{
    background:var(--primary-soft);
    color:var(--primary-strong);
  }
  .brand{min-width:0;gap:10px}
  .brand{
    flex:1;
  }
  .brand-icon{width:38px;height:38px;border-radius:10px}
  .brand-copy strong{font-size:15px}
  .brand-copy small{display:none}
  .topbar-user{
    width:auto;
    margin-left:auto;
    justify-content:flex-end;
    flex-wrap:nowrap;
    gap:8px;
    flex:0 0 auto;
  }
  .topbar-user .btn.small{
    min-height:40px;
    padding:10px 12px;
    border-radius:12px;
    font-size:12px;
    white-space:nowrap;
  }
  #openComposerBtn{
    display:none !important;
  }
  .mobile-composer-btn{
    display:flex !important;
    position:fixed;
    right:16px;
    bottom:16px;
    width:48px;
    height:48px;
    min-height:48px;
    padding:0;
    border-radius:50%;
    font-size:32px;
    font-weight:600;
    color:#fff;
    z-index:90;
    box-shadow:0 10px 24px rgba(230,75,60,.35);
    background:linear-gradient(135deg,var(--primary),var(--primary-strong));
    border: none;
    align-items: center;
    justify-content: center;
    cursor:pointer;
    line-height:1;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .mobile-composer-btn:active{
    transform:scale(0.95);
  }
  .google-icon-btn{
    width:40px;
    height:40px;
    border-radius:12px;
    flex:0 0 auto;
  }
  .google-icon-btn svg{
    width:20px;
    height:20px;
  }
  .user-pill{
    flex:0 0 auto;
    background:transparent;
    border:0;
    padding:0;
    box-shadow:none;
  }
  .user-avatar{
    width:34px;
    height:34px;
  }
  .status-card,.toolbar,.offer-body,.detail-page-card{padding-left:0;padding-right:0}
  .hero-stats-inline{
    display:none;
  }
  .profile-composer-grid{
    display:none;
  }
  .hero-stats{
    grid-template-columns:1fr;
  }
  .hero-stats-inline{
    grid-template-columns:1fr;
    margin-bottom:14px;
  }
  .profile-panel,.composer-panel{
    padding:16px;
  }
  .panel-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .stat-card{
    min-height:auto;
    padding:16px;
  }
  .search-input{
    min-height:44px;
    font-size:13px;
    border-radius:14px;
  }
  .feed-meta{
    flex-direction:column;
    align-items:flex-start;
    margin-top:14px;
    margin-bottom:12px;
  }
  .feed-grid{grid-template-columns:1fr; gap: 12px;}
  .offer-card{
    display:grid;
    grid-template-columns:96px 1fr;
    gap: 14px;
    border-radius:18px;
    min-height:0;
    background:#fff;
    border:1px solid rgba(230,75,60,.08);
    box-shadow:0 6px 20px rgba(34,24,22,.04);
    overflow:hidden;
    padding: 12px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .offer-card:active{
    transform: scale(0.985) translateY(1px);
    box-shadow: 0 4px 12px rgba(34,24,22,.02);
  }
  .offer-media-wrap{
    order: unset;
    position:relative;
    width: 96px;
    height: 96px;
    aspect-ratio:1 / 1;
    min-height:auto;
    border-radius:12px;
    overflow:hidden;
    background:#fcf6f3;
    margin: 0;
  }
  .offer-media{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius:12px;
  }
  .offer-body{
    order: unset;
    padding: 0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-width: 0;
  }
  .offer-publisher{
    display:block;
    margin-bottom:2px;
    color:var(--muted);
    font-size:11px;
    font-weight:600;
  }
  .offer-topline{
    margin-bottom:4px;
    gap:6px;
    align-items:center;
    justify-content:flex-start;
    flex-direction:row;
    padding-right:0;
  }
  .time-badge{
    display:inline-flex;
    margin-left:0;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--muted);
    font-size: 11px;
  }
  .offer-title{
    font-size:14px;
    line-height:1.3;
    margin-bottom:6px;
    -webkit-line-clamp:2;
    min-height:auto;
    color: var(--text);
  }
  .offer-description{
    display:none;
  }
  .meta-row{
    display:flex;
    gap:6px;
    margin-bottom:6px;
    order: unset;
  }
  .price-main{
    font-size:18px;
    font-weight:800;
    color:var(--green);
  }
  .price-original{
    font-size:11px;
    color:var(--muted);
    text-decoration:line-through;
  }
  .price-row{
    margin: 0 0 6px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    align-items: baseline;
    gap: 6px;
    order: unset;
    display: flex;
  }
  .store-badge,.time-badge,.discount-badge,.coupon-badge,.stat-mini{
    min-height:20px;
    padding:0 8px;
    font-size:10px;
  }
  .store-badge{
    padding:0;
    background:transparent;
    border:0;
  }
  .store-identity{
    min-height:auto;
    display: inline-flex;
    align-items: center;
    gap:4px;
    background: rgba(34, 24, 22, 0.04);
    padding: 2px 6px;
    border-radius: 6px;
  }
  .store-logo{
    width:14px;
    height:14px;
    border-radius:3px;
  }
  .store-name{
    font-size:11px;
    font-weight:800;
    letter-spacing:.02em;
    text-transform:uppercase;
    color:var(--muted);
  }
  .verified-badge{
    width:12px;
    height:12px;
  }
  .temp-pill{
    position: absolute;
    left: 6px;
    bottom: 6px;
    min-width: unset;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    border: 1px solid rgba(230,75,60,0.06);
  }
  .image-store-chip{
    display:none;
  }
  .stats-row{
    display:flex;
    gap:8px;
    margin:0 0 6px;
    order: unset;
  }
  .offer-temp-col{
    display:none;
  }
  .card-actions{
    display:flex;
    gap:6px;
    align-items:center;
    margin: 6px 0 0;
    order: unset;
  }
  .action-btn{
    min-height:32px;
    border-radius:8px;
    font-size:11px;
    padding:0 8px;
  }
  .action-upvote,
  .action-downvote{
    width:32px;
    min-width:32px;
    padding:0;
  }
  .action-save{
    display:inline-flex;
    padding:0 10px;
    width:auto;
    flex:0 0 auto;
  }
  .action-share{
    position:static;
    width:32px;
    min-width:32px;
    padding:0;
    border:1px solid var(--line);
    background:#fff;
    box-shadow:none;
    z-index:unset;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .action-open{
    flex:1;
    min-width:0;
    padding:0 10px;
    font-size:11px;
    font-weight:900;
    letter-spacing:-.01em;
    box-shadow:0 6px 12px rgba(230,75,60,.12);
  }
  .share-icon,
  .share-icon svg{
    width:16px;
    height:16px;
  }
  .vote-icon,
  .vote-icon svg{
    width:16px;
    height:16px;
  }
  .comment-form textarea{
    min-height:96px;
    padding:12px 14px;
    border-radius:14px;
  }
  .comment-form-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .detail-title{
    font-size:24px;
  }
  .detail-price{
    font-size:30px;
  }
  .detail-group{
    gap:8px;
  }
  .detail-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .detail-actions .btn{
    width:100%;
  }
  .detail-vote-row {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .detail-vote-row .action-btn {
    flex: 1;
    height: 44px;
    min-height: 44px;
    border-radius: 12px;
    padding: 0;
  }
  .profile-page-card{
    padding:16px;
    border-radius:20px;
  }
  .profile-hero-card,.profile-offers-card{
    padding:16px;
    border-radius:20px;
  }
  .profile-hero-head{
    grid-template-columns:1fr;
    gap:12px;
    align-items:flex-start;
  }
  .profile-hero-avatar{
    width:72px;
    height:72px;
    border-radius:22px;
  }
  .profile-hero-copy h1{
    font-size:24px;
  }
  .profile-badge{
    margin-bottom:8px;
    font-size:11px;
  }
  .profile-mini-stats{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .profile-mini-stat{
    min-width:0;
    padding:14px;
    border-radius:16px;
  }
  .profile-offer-item{
    grid-template-columns:60px 1fr;
    gap:10px;
    padding:10px;
    border-radius:16px;
  }
  .profile-offer-item img{
    width:60px;
    height:60px;
    border-radius:12px;
  }
  .profile-offer-item strong{
    font-size:13px;
    margin-bottom:4px;
  }
  .profile-offer-item span{
    font-size:11px;
  }
  .composer-modal{
    padding:10px;
    align-items:end;
  }
  .composer-modal-card{
    width:100%;
    max-height:88vh;
    border-radius:22px 22px 0 0;
    padding:16px;
  }
  .composer-close{
    width:38px;
    height:38px;
    border-radius:12px;
  }
  .scroll-top{
    right:16px;
    bottom:76px;
    width:42px;
    height:42px;
    border-radius:14px;
  }
  .mobile-bottom-nav{
    display:none !important;
  }
}

@media (max-width: 400px){
  .hero h1{font-size:27px}
  .chip-row{grid-template-columns:1fr}
  .stat-card strong{font-size:22px}
  .card-actions{
    display: flex;
    gap: 4px;
  }
  .action-btn{
    min-height:30px;
    font-size:10px;
    padding: 0 6px;
  }
  .action-upvote,
  .action-downvote,
  .action-share{
    width:30px;
    min-width:30px;
  }
  .mobile-composer-btn{
    right:12px;
    bottom:12px;
    width:42px;
    height:42px;
    min-height:42px;
  }
  .scroll-top{
    right:12px;
    bottom:64px;
    width:38px;
    height:38px;
    border-radius:12px;
  }
  .mobile-bottom-nav:not(.hidden){
    display:flex !important;
  }
}
