:root{
    --bg:#0a0f1e;
    --surface:#0d1428;
    --surface-2:#0b1226;
    --card:#0c1428;
    --soft:#101a31;
    --ink:#ffffff;
    --muted:#8fa3b6;
    --desc:#a8b7c8;
    --mint:#45ffc8;
    --teal:#12e0cb;
    --badge:#fff200;
    --divider:#1b2540;
    --warning:#efe9b0;
    --star:#ffd54a;
  }

  *{box-sizing:border-box}
  html,body{max-width:100%;overflow-x:hidden}
  body{
    margin:0;
    width:100vw;
    background:var(--bg);
    color:var(--ink);
    font:500 clamp(14px,3.2vw,15px)/1.5 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
  }

  .wrap{
    max-width:1100px;
    margin:0 auto;
    padding:16px;
  }

  .shell{
    background:var(--surface);
    border:1px solid var(--divider);
    border-radius:18px;
    padding:16px;
    position:relative;
    overflow:hidden;
  }

  .top{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
  }

  .brand{
    margin:0;
    font-weight:900;
    font-size:clamp(22px,6vw,30px);
  }
  .brand .x{color:var(--mint)}

  .bonus-global{
    margin-left:auto;
    background:var(--badge);
    color:#111;
    font-weight:900;
    font-size:12px;
    padding:6px 10px;
    border-radius:14px;
  }

  .timer{margin:12px 0 8px}
  .chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    border:1px solid var(--divider);
    background:var(--surface-2);
    font-weight:750;
    font-size:13px;
  }
  .chip b{color:var(--mint)}

  .top-actions{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin:14px 0 10px;
    flex-wrap:wrap;
  }

  .history-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:11px 15px;
    border-radius:12px;
    border:1px solid var(--divider);
    background:var(--surface-2);
    color:#d8e4ef;
    font-weight:800;
    text-decoration:none;
    transition:.25s ease;
    white-space:nowrap;
  }
  .history-link:hover{
    border-color:var(--teal);
    color:var(--mint);
    transform:translateY(-1px);
  }

  .filter-wrap{
    flex:1 1 760px;
    min-width:0;
  }

  .filter-label-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
    flex-wrap:wrap;
  }

  .filter-label{
    color:var(--muted);
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
  }

  .swipe-note{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--muted);
    font-size:12px;
    font-weight:800;
    background:var(--surface-2);
    border:1px solid var(--divider);
    border-radius:999px;
    padding:6px 10px;
    transition:.25s ease;
    white-space:nowrap;
  }
  .swipe-note.hidden{
    opacity:0;
    transform:translateY(-4px);
    pointer-events:none;
  }

  .swipe-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    border-radius:50%;
    background:rgba(69,255,200,.08);
    color:var(--mint);
    font-size:11px;
    position:relative;
    animation:swipePulse 1.8s ease-in-out infinite;
  }
  .swipe-icon::after{
    content:"";
    position:absolute;
    width:18px;
    height:18px;
    border-radius:50%;
    border:1px solid rgba(69,255,200,.28);
    animation:swipeRing 1.8s ease-out infinite;
  }

  @keyframes swipePulse{
    0%,100%{transform:translateX(0)}
    30%{transform:translateX(3px)}
    60%{transform:translateX(-3px)}
  }
  @keyframes swipeRing{
    0%{transform:scale(1);opacity:.8}
    100%{transform:scale(1.65);opacity:0}
  }

  .tabs-shell{position:relative}
  .tabs-shell::before,
  .tabs-shell::after{
    content:"";
    position:absolute;
    top:0;
    bottom:4px;
    width:34px;
    z-index:2;
    pointer-events:none;
    transition:opacity .2s ease;
  }
  .tabs-shell::before{
    left:0;
    background:linear-gradient(to right, var(--surface), rgba(13,20,40,0));
    opacity:0;
  }
  .tabs-shell::after{
    right:0;
    background:linear-gradient(to left, var(--surface), rgba(13,20,40,0));
    opacity:1;
  }
  .tabs-shell.at-start::before{opacity:0}
  .tabs-shell.at-start::after{opacity:1}
  .tabs-shell.at-end::before{opacity:1}
  .tabs-shell.at-end::after{opacity:0}
  .tabs-shell.in-middle::before,
  .tabs-shell.in-middle::after{opacity:1}

  .tabs{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:0 2px 6px;
    scrollbar-width:none;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
  }
  .tabs::-webkit-scrollbar{display:none}

  .tab{
    flex:0 0 auto;
    min-width:max-content;
    height:42px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border-radius:12px;
    border:1px solid var(--divider);
    background:transparent;
    color:#c6d2df;
    font-weight:800;
    cursor:pointer;
    transition:.25s ease;
  }
  .tab:hover{
    border-color:#2a3a5f;
    background:var(--soft);
    transform:translateY(-1px);
  }
  .tab.active,
  .tab[aria-selected="true"]{
    background:var(--teal);
    color:#061218;
    border-color:var(--teal);
    box-shadow:0 8px 18px rgba(18,224,203,.18);
  }
  .tab-icon{
    font-size:13px;
    opacity:.95;
  }

  .panel{padding-top:8px}

  .summary-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin:0 0 14px;
    padding:10px 12px;
    border:1px solid var(--divider);
    border-radius:14px;
    background:var(--surface-2);
    animation:fadeUp .45s ease;
  }

  .summary-left{
    color:#d7e2ed;
    font-weight:800;
    font-size:14px;
  }
  .summary-left b{color:var(--mint)}

  .summary-right{
    color:var(--muted);
    font-size:13px;
    font-weight:700;
  }

  .feed{
    display:grid;
    gap:14px;
  }

  .offer{
    background:var(--card);
    border:1px solid var(--divider);
    border-radius:16px;
    overflow:hidden;
    transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease,opacity .25s ease;
    cursor:pointer;
    outline:none;
    animation:fadeUp .5s ease both;
  }
  .offer:hover,
  .offer:focus-visible{
    transform:translateY(-4px);
    border-color:#28426d;
    box-shadow:0 14px 34px rgba(0,0,0,.22);
  }

  .offer.large .thumb{
    position:relative;
    aspect-ratio:16/9;
    background:#000;
    overflow:hidden;
  }
  .offer.large .thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transform:scale(1);
    transition:transform .55s ease;
  }
  @media(hover:hover){
    .offer.large:hover .thumb img{transform:scale(1.08)}
  }

  .logo{
    position:absolute;
    left:10px;
    bottom:10px;
    width:40px;
    height:40px;
    border-radius:50%;
    background:var(--surface-2);
    border:1px solid var(--divider);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    color:var(--teal);
    box-shadow:0 10px 20px rgba(0,0,0,.22);
  }

  .badge{
    position:absolute;
    right:10px;
    top:10px;
    background:var(--badge);
    color:#111;
    font-weight:1000;
    font-size:12px;
    padding:4px 10px;
    border-radius:10px;
    box-shadow:0 0 0 0 rgba(69,255,200,.55);
    animation:pulse 1.8s ease-out infinite;
  }

  @keyframes pulse{
    0%{box-shadow:0 0 0 0 rgba(69,255,200,.55)}
    65%{box-shadow:0 0 0 16px rgba(69,255,200,0)}
    100%{box-shadow:0 0 0 0 rgba(69,255,200,0)}
  }

  .body{padding:12px 14px 16px}
  .offer-row{
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:space-between;
    margin-bottom:8px;
  }

  .title{
    margin:0;
    color:var(--ink);
    font-weight:850;
    font-size:clamp(15px,4.4vw,18px);
    line-height:1.25;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .reward{
    flex:0 0 auto;
    background:#0f1a30;
    color:var(--mint);
    font-weight:900;
    font-size:14px;
    padding:6px 10px;
    border-radius:10px;
    white-space:nowrap;
    transition:.25s ease;
  }
  .offer:hover .reward{
    transform:scale(1.04);
  }

  .desc{
    margin:0;
    color:var(--desc);
    font-size:clamp(13px,3.8vw,15px);
    line-height:1.45;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .micro-tags{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:10px;
  }

  .micro-tag{
    font-size:11px;
    font-weight:900;
    color:#dff9f4;
    background:rgba(18,224,203,.09);
    border:1px solid rgba(18,224,203,.2);
    border-radius:999px;
    padding:5px 8px;
    transition:.25s ease;
  }

  .meta{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:10px;
  }

  .meta-tag{
    font-size:12px;
    font-weight:800;
    color:#cdd9e5;
    background:var(--soft);
    border:1px solid var(--divider);
    border-radius:999px;
    padding:6px 10px;
    transition:.25s ease;
  }
  .offer:hover .meta-tag{
    border-color:#294267;
  }

  .mini-strip{
    display:grid;
    gap:10px;
    animation:fadeUp .45s ease both;
  }

  .mini-offer{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    background:rgba(12,20,40,.96);
    border:1px solid var(--divider);
    border-radius:16px;
    cursor:pointer;
    transition:.24s ease;
  }
  .mini-offer:hover{
    transform:translateY(-2px);
    border-color:#2d456d;
    box-shadow:0 12px 24px rgba(0,0,0,.16);
  }

  .mini-icon{
    width:56px;
    height:56px;
    border-radius:14px;
    background:linear-gradient(180deg, #122347, #0c1730);
    border:1px solid var(--divider);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--mint);
    font-weight:900;
    font-size:20px;
    flex:0 0 auto;
  }

  .mini-main{
    min-width:0;
    flex:1 1 auto;
  }

  .mini-title{
    margin:0 0 4px;
    color:#fff;
    font-weight:900;
    font-size:15px;
    line-height:1.3;
  }

  .mini-subtitle{
    margin:0;
    color:var(--desc);
    font-size:13px;
    line-height:1.45;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .mini-meta{
    display:flex;
    gap:7px;
    flex-wrap:wrap;
    margin-top:8px;
  }

  .mini-chip{
    font-size:10px;
    font-weight:900;
    color:#dce7f2;
    border:1px solid var(--divider);
    background:#0d1730;
    border-radius:999px;
    padding:4px 8px;
  }

  .mini-side{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
  }

  .mini-reward{
    font-size:12px;
    font-weight:900;
    color:var(--mint);
    background:#0f1a30;
    border:1px solid var(--divider);
    border-radius:10px;
    padding:7px 9px;
    white-space:nowrap;
  }

  .mini-cta{
    font-size:12px;
    font-weight:900;
    color:#061218;
    background:var(--teal);
    border-radius:10px;
    padding:7px 12px;
    white-space:nowrap;
  }

  .offer.hidden,
  .mini-offer.hidden,
  .mini-strip.hidden{
    display:none !important;
  }

  .empty-state{
    display:none;
    margin-top:8px;
    border:1px dashed #2a3a5f;
    border-radius:16px;
    padding:24px;
    text-align:center;
    color:var(--muted);
    background:var(--surface-2);
    font-weight:700;
  }
  .empty-state.show{display:block}

  #history{
    margin-top:24px;
    padding-top:18px;
    border-top:1px solid var(--divider);
  }

  .history-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:12px;
  }

  .history-title{
    margin:0;
    font-size:18px;
    font-weight:900;
  }

  .history-note{
    color:var(--muted);
    font-size:13px;
    font-weight:700;
  }

  .history-box{
    background:var(--surface-2);
    border:1px solid var(--divider);
    border-radius:14px;
    padding:14px;
    color:#d7e2ed;
  }

  .modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(4,8,18,.72);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:0;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.24s ease;
    z-index:999;
  }

  .modal-overlay.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  .offer-modal{
    width:min(100%, 860px);
    height:min(92vh, 980px);
    max-height:92vh;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    background:
      radial-gradient(circle at top right, rgba(69,255,200,.06), transparent 24%),
      linear-gradient(180deg, #111b33 0%, #0b1326 100%);
    border:1px solid #25365e;
    border-bottom:none;
    border-radius:24px 24px 0 0;
    box-shadow:0 20px 60px rgba(0,0,0,.35);
    transform:translateY(32px);
    transition:.24s ease;
  }

  .modal-overlay.show .offer-modal{
    transform:translateY(0);
  }

  .sheet-handle{
    width:54px;
    height:6px;
    border-radius:999px;
    background:rgba(255,255,255,.18);
    margin:10px auto 6px;
  }

  .modal-top{
    position:relative;
    padding:18px 18px 14px;
    border-bottom:1px solid var(--divider);
    background:
      radial-gradient(circle at top right, rgba(69,255,200,.08), transparent 34%),
      linear-gradient(180deg, #111b33 0%, #0d1730 100%);
  }

  .modal-close{
    position:absolute;
    top:14px;
    right:14px;
    width:38px;
    height:38px;
    border:1px solid var(--divider);
    background:#0d152c;
    color:#dce6f0;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:18px;
    font-weight:900;
    transition:.22s ease;
  }
  .modal-close:hover{
    border-color:var(--teal);
    color:var(--mint);
    transform:rotate(90deg);
  }

  .modal-badge-row{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:12px;
    padding-right:52px;
  }

  .modal-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border-radius:999px;
    padding:7px 12px;
    background:var(--surface-2);
    border:1px solid var(--divider);
    color:#d9e4ef;
    font-size:12px;
    font-weight:800;
    animation:fadeUp .35s ease;
  }

  .modal-badge.reward{
    color:#061218;
    background:var(--teal);
    border-color:var(--teal);
    box-shadow:0 10px 24px rgba(18,224,203,.16);
  }

  .modal-title{
    margin:0;
    font-size:clamp(21px,5vw,28px);
    line-height:1.2;
    font-weight:900;
    animation:fadeUp .4s ease;
  }

  .modal-body{
    padding:18px;
    display:grid;
    gap:16px;
  }

  .modal-box{
    background:var(--surface-2);
    border:1px solid var(--divider);
    border-radius:16px;
    padding:15px;
    animation:fadeUp .42s ease both;
  }

  .modal-box-title{
    margin:0 0 12px;
    font-size:13px;
    letter-spacing:.05em;
    text-transform:uppercase;
    color:var(--muted);
    font-weight:900;
  }

  .modal-categories{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }

  .modal-cat{
    display:inline-flex;
    align-items:center;
    padding:7px 11px;
    border-radius:999px;
    background:var(--soft);
    border:1px solid var(--divider);
    color:#dce7f2;
    font-size:12px;
    font-weight:800;
    transition:.22s ease;
  }
  .modal-cat:hover{
    border-color:#2d456d;
    transform:translateY(-1px);
  }

  .requirements-list{
    display:grid;
    gap:10px;
    margin:0;
    padding:0;
    list-style:none;
  }

  .requirements-list li{
    display:flex;
    align-items:flex-start;
    gap:10px;
    color:#dbe5ef;
    line-height:1.5;
    animation:fadeUp .35s ease both;
  }

  .requirements-list li::before{
    content:"✓";
    flex:0 0 auto;
    width:22px;
    height:22px;
    border-radius:50%;
    background:rgba(69,255,200,.12);
    color:var(--mint);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:900;
    margin-top:1px;
  }

  .milestones{
    display:grid;
    gap:10px;
  }

  .milestone-row{
    display:grid;
    grid-template-columns:56px 1fr auto;
    gap:12px;
    align-items:center;
    padding:12px;
    border:1px solid var(--divider);
    border-radius:14px;
    background:var(--soft);
    transition:.24s ease;
    animation:fadeUp .45s ease both;
  }
  .milestone-row:hover{
    border-color:#2d456d;
    transform:translateY(-1px);
  }

  .milestone-step{
    width:56px;
    height:56px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:13px;
    color:#061218;
    background:var(--teal);
    box-shadow:0 12px 24px rgba(18,224,203,.18);
  }

  .milestone-main{min-width:0}

  .milestone-title{
    margin:0 0 4px;
    font-weight:900;
    font-size:14px;
    color:#fff;
  }

  .milestone-sub{
    margin:0;
    color:var(--desc);
    font-size:13px;
    line-height:1.4;
  }

  .milestone-reward{
    white-space:nowrap;
    padding:8px 11px;
    border-radius:12px;
    font-weight:900;
    color:var(--mint);
    background:#0c1428;
    border:1px solid var(--divider);
    font-size:13px;
  }

  .long-copy{
    margin:0;
    color:#dbe5ef;
    line-height:1.7;
    font-size:14px;
  }

  .similar-grid{
    display:grid;
    gap:10px;
  }

  .similar-card{
    background:var(--soft);
    border:1px solid var(--divider);
    border-radius:14px;
    padding:12px;
    transition:.24s ease;
    cursor:pointer;
    animation:fadeUp .45s ease both;
  }
  .similar-card:hover{
    transform:translateY(-2px);
    border-color:#2d456d;
    box-shadow:0 10px 20px rgba(0,0,0,.16);
  }

  .similar-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
  }

  .similar-title{
    margin:0;
    font-weight:900;
    font-size:14px;
    color:#fff;
    line-height:1.35;
  }

  .similar-reward{
    flex:0 0 auto;
    color:var(--mint);
    font-weight:900;
    font-size:12px;
    padding:6px 9px;
    border:1px solid var(--divider);
    border-radius:10px;
    background:#0c1428;
    white-space:nowrap;
  }

  .similar-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }

  .similar-chip{
    font-size:11px;
    font-weight:800;
    color:#dce7f2;
    border:1px solid var(--divider);
    background:#0c1428;
    border-radius:999px;
    padding:5px 8px;
  }

  .similar-empty{
    margin:0;
    color:var(--muted);
  }

  .reviews-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:12px;
  }

  .review-score{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
  }

  .stars{
    color:var(--star);
    letter-spacing:1px;
    font-size:15px;
  }

  .review-score-value{
    font-size:14px;
    font-weight:900;
    color:#fff;
  }

  .review-list{
    display:grid;
    gap:10px;
    margin-bottom:14px;
  }

  .review-item{
    background:var(--soft);
    border:1px solid var(--divider);
    border-radius:14px;
    padding:12px;
    animation:fadeUp .4s ease both;
  }

  .review-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:8px;
  }

  .review-user{
    font-size:13px;
    font-weight:900;
    color:#fff;
  }

  .review-date{
    font-size:12px;
    color:var(--muted);
    font-weight:700;
  }

  .review-text{
    margin:0;
    color:#dbe5ef;
    font-size:13px;
    line-height:1.6;
  }

  .review-form{
    display:grid;
    gap:10px;
    margin-top:4px;
  }

  .review-form input,
  .review-form select,
  .review-form textarea{
    width:100%;
    border:1px solid var(--divider);
    background:#0c1428;
    color:#fff;
    border-radius:12px;
    padding:12px 13px;
    font:inherit;
    outline:none;
    transition:.22s ease;
  }

  .review-form input:focus,
  .review-form select:focus,
  .review-form textarea:focus{
    border-color:var(--teal);
    box-shadow:0 0 0 3px rgba(18,224,203,.08);
  }

  .review-form textarea{
    min-height:100px;
    resize:vertical;
  }

  .review-actions{
    display:flex;
    justify-content:flex-end;
  }

  .review-submit{
    appearance:none;
    border:none;
    cursor:pointer;
    border-radius:12px;
    padding:12px 16px;
    background:var(--teal);
    color:#061218;
    font-weight:900;
    transition:.22s ease;
  }
  .review-submit:hover{
    filter:brightness(1.04);
    transform:translateY(-1px);
  }

  .modal-note{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px 13px;
    border-radius:14px;
    background:rgba(255,242,0,.08);
    border:1px solid rgba(255,242,0,.16);
    color:var(--warning);
    font-size:13px;
    line-height:1.5;
    animation:fadeUp .5s ease;
  }

  .modal-note strong{color:#fff5a8}

  .modal-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    padding:0 18px 18px;
  }

  .btn{
    appearance:none;
    border:none;
    cursor:pointer;
    border-radius:14px;
    padding:14px 18px;
    font-size:14px;
    font-weight:900;
    transition:.24s ease;
  }

  .btn-primary{
    background:var(--teal);
    color:#061218;
    flex:1 1 220px;
    box-shadow:0 12px 28px rgba(18,224,203,.18);
  }
  .btn-primary:hover{
    filter:brightness(1.04);
    transform:translateY(-2px);
  }

  .btn-secondary{
    background:var(--surface-2);
    color:#dce7f2;
    border:1px solid var(--divider);
    flex:1 1 180px;
  }
  .btn-secondary:hover{
    border-color:#2b426e;
    color:var(--mint);
    transform:translateY(-1px);
  }

  .hidden-box{display:none}

  @keyframes fadeUp{
    from{
      opacity:0;
      transform:translateY(10px);
    }
    to{
      opacity:1;
      transform:translateY(0);
    }
  }

  @media (min-width:900px){
    .modal-overlay{
      align-items:center;
      padding:18px;
    }
    .offer-modal{
      height:min(90vh, 980px);
      border-radius:24px;
      border-bottom:1px solid #25365e;
    }
    .sheet-handle{display:none}
    .similar-grid{
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .mini-strip{
      grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .mini-offer{
      flex-direction:column;
      align-items:flex-start;
    }
    .mini-side{
      width:100%;
      flex-direction:row;
      justify-content:space-between;
      align-items:center;
    }
  }

  @media (max-width:640px){
    .top-actions{align-items:stretch}
    .history-link{
      width:100%;
      justify-content:center;
    }
    .swipe-note{
      font-size:11px;
      padding:6px 9px;
    }
    .modal-top,
    .modal-body,
    .modal-actions{
      padding-left:14px;
      padding-right:14px;
    }
    .modal-actions{padding-bottom:14px}
    .btn{width:100%}
    .milestone-row{
      grid-template-columns:48px 1fr;
    }
    .milestone-step{
      width:48px;
      height:48px;
      border-radius:14px;
    }
    .milestone-reward{
      grid-column:1 / -1;
      justify-self:start;
    }
    .mini-offer{
      align-items:flex-start;
    }
  }

  @media (prefers-reduced-motion: reduce){
    .badge,
    .swipe-icon,
    .swipe-icon::after{
      animation:none;
    }
    .offer,
    .offer-modal,
    .modal-overlay,
    .btn,
    .history-link,
    .tab,
    .swipe-note,
    .similar-card,
    .milestone-row,
    .modal-close,
    .modal-box,
    .modal-badge,
    .modal-note,
    .requirements-list li,
    .review-item,
    .mini-offer{
      transition:none;
      animation:none;
    }
  }


  .offerwall-alert{border:1px solid var(--divider);border-radius:16px;padding:18px;background:var(--surface-2);color:#d7e2ed;text-align:center;font-weight:800}
  .offerwall-alert.danger{border-color:rgba(255,90,90,.35);color:#ffd0d0;background:rgba(255,90,90,.08)}
  .offerwall-history-table{width:100%;border-collapse:separate;border-spacing:0 8px;color:#d7e2ed}
  .offerwall-history-table th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:left;padding:8px}
  .offerwall-history-table td{background:var(--soft);border-top:1px solid var(--divider);border-bottom:1px solid var(--divider);padding:12px 8px}
  .offerwall-history-table td:first-child{border-left:1px solid var(--divider);border-radius:12px 0 0 12px}
  .offerwall-history-table td:last-child{border-right:1px solid var(--divider);border-radius:0 12px 12px 0;text-align:right}
  .history-status{display:inline-flex;border-radius:999px;padding:5px 9px;background:#0c1428;border:1px solid var(--divider);font-size:12px;font-weight:900}

/* Mini offer image thumbnail */
.mini-icon.mini-thumb{
  overflow:hidden;
  padding:0;
  background:#0b1226;
}
.mini-icon.mini-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Bootstrap modal compatibility */
.offery-modal-bs .modal-dialog{
  margin:0 auto;
  max-width:min(100%, 860px);
}
.offery-modal-bs .modal-content,
.offery-modal-bs #modalContent{
  background:transparent;
  border:0;
  box-shadow:none;
}
.offery-modal-bs .offer-modal{
  width:100%;
}
.offery-modal-bs .btn-close{
  filter:invert(1);
}
@media (min-width:900px){
  .offery-modal-bs .modal-dialog{
    max-width:min(100%, 860px);
  }
}

  .similar-title-wrap{
    min-width:0;
    display:flex;
    align-items:flex-start;
    gap:10px;
  }

  .similar-thumb{
    flex:0 0 auto;
    width:42px;
    height:42px;
    border-radius:12px;
    overflow:hidden;
    background:#0c1428;
    border:1px solid var(--divider);
  }

  .similar-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }

  .similar-desc{
    margin:4px 0 0;
    color:var(--desc);
    font-size:12px;
    line-height:1.45;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

/* Bootstrap modal scroll/close fix */
.offery-modal-bs{
  --bs-modal-width: 860px;
}
.offery-modal-bs .modal-dialog{
  width: min(100% - 24px, 860px);
  max-width: 860px;
  margin: 12px auto;
}
.offery-modal-bs .modal-content{
  background: transparent;
  border: 0;
  box-shadow: none;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.offery-modal-bs #modalContent{
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
.offery-modal-bs .offer-modal{
  width: 100%;
  max-height: calc(100dvh - 24px);
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: none !important;
}
.offery-modal-bs .modal-top{
  flex: 0 0 auto;
}
.offery-modal-bs .modal-body{
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.offery-modal-bs .modal-actions{
  flex: 0 0 auto;
}
.offery-modal-bs .modal-close{
  z-index: 5;
}
@media (max-width: 899px){
  .offery-modal-bs .modal-dialog{
    align-items: flex-end;
    min-height: calc(100% - 0px);
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .offery-modal-bs .modal-content,
  .offery-modal-bs #modalContent,
  .offery-modal-bs .offer-modal{
    max-height: 92dvh;
  }
  .offery-modal-bs .offer-modal{
    border-radius: 24px 24px 0 0;
  }
}

/* Final modal spacing fixes */
.offery-modal-bs .modal-actions{
  padding: 0 18px calc(32px + env(safe-area-inset-bottom, 0px)) 18px !important;
  margin-bottom: 0 !important;
}
.offery-modal-bs .modal-body{
  padding-bottom: 18px !important;
}
@media (max-width:640px){
  .offery-modal-bs .modal-actions{
    padding: 0 14px calc(34px + env(safe-area-inset-bottom, 0px)) 14px !important;
  }
  .offery-modal-bs .modal-body{
    padding-bottom: 16px !important;
  }
}

/* Modal full-content scroll update */
.offery-modal-bs .modal-dialog{
  width: min(100% - 32px, 860px) !important;
  max-width: 860px !important;
  margin: 48px auto 32px auto !important;
  min-height: 0 !important;
  align-items: center !important;
}
.offery-modal-bs .modal-content{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-height: calc(100dvh - 80px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}
.offery-modal-bs #modalContent{
  width: 100% !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
.offery-modal-bs .offer-modal{
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  overflow: visible !important;
  transform: none !important;
}
.offery-modal-bs .modal-top,
.offery-modal-bs .modal-body,
.offery-modal-bs .modal-actions{
  flex: none !important;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
}
.offery-modal-bs .modal-body{
  overflow: visible !important;
  min-height: 0 !important;
  padding-bottom: 18px !important;
}
.offery-modal-bs .modal-actions{
  padding: 0 18px calc(34px + env(safe-area-inset-bottom, 0px)) 18px !important;
}
@media (max-width: 899px){
  .offery-modal-bs .modal-dialog{
    width: min(100% - 20px, 860px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 24px auto 18px auto !important;
    min-height: 0 !important;
    align-items: center !important;
  }
  .offery-modal-bs .modal-content{
    max-height: calc(100dvh - 42px) !important;
  }
  .offery-modal-bs .offer-modal{
    border-radius: 24px !important;
  }
}
@media (max-width:640px){
  .offery-modal-bs .modal-actions{
    padding: 0 14px calc(36px + env(safe-area-inset-bottom, 0px)) 14px !important;
  }
}

.review-message{
  min-height:18px;
  font-size:13px;
  font-weight:800;
  line-height:1.4;
}
.review-message.success{color:var(--mint)}
.review-message.danger{color:#ff8f8f}
.review-already-submitted{
  margin-top:10px;
  padding:12px 13px;
  border-radius:14px;
  border:1px solid rgba(69,255,200,.16);
  background:rgba(69,255,200,.08);
  color:#dff9f4;
  font-size:13px;
  font-weight:800;
}
.review-item-stars{
  margin-bottom:7px;
  font-size:13px;
}
.review-submit:disabled{
  opacity:.7;
  cursor:not-allowed;
  transform:none!important;
}

/* Keep large-card title and reward on the same line, matching the original design. */
.offer.large .body .offer-row{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  flex-wrap:nowrap !important;
  gap:12px !important;
  width:100% !important;
}
.offer.large .body .title{
  flex:1 1 auto !important;
  min-width:0 !important;
  margin:0 !important;
}
.offer.large .body .reward{
  flex:0 0 auto !important;
  margin-left:auto !important;
  align-self:flex-start !important;
  white-space:nowrap !important;
}


/* Offer card layout fix: do not use Bootstrap .row inside cards. */
.offer.large .body .offer-row{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  flex-wrap:nowrap !important;
  gap:12px !important;
  width:100% !important;
}
.offer.large .body .offer-row .title{
  flex:1 1 auto !important;
  min-width:0 !important;
}
.offer.large .body .offer-row .reward{
  flex:0 0 auto !important;
  margin-left:auto !important;
}
@media (max-width:420px){
  .offer.large .body .offer-row{gap:8px !important;}
  .offer.large .body .offer-row .reward{font-size:12px !important;padding:6px 8px !important;}
}

/* ── Reviews: Load More button ─────────────────────────────────────────── */
.reviews-load-more-wrap {
  text-align: center;
  padding: 12px 0 4px;
}
.reviews-load-more-btn {
  appearance: none;
  border: 1px solid var(--teal, #25e0c7);
  border-radius: 12px;
  padding: 10px 22px;
  background: transparent;
  color: var(--teal, #25e0c7);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: .2s ease;
  width: 100%;
}
.reviews-load-more-btn:hover:not(:disabled) {
  background: var(--teal, #25e0c7);
  color: #061218;
  transform: translateY(-1px);
}
.reviews-load-more-btn:disabled {
  opacity: .5;
  cursor: default;
}
.reviews-remaining {
  font-weight: 400;
  opacity: .75;
  font-size: .82rem;
}