/* =====================================================================
   GROUPON-STYLE DESIGN SYSTEM  (shared across all pages)
   Warna brand di-override oleh js/brand-config.js via site-settings.js.
   ===================================================================== */
:root {
    --primary-color: #53A318;
    --secondary-color: #6cbf3f;
    --primary-gradient: linear-gradient(135deg, #53A318 0%, #6cbf3f 100%);
    --primary-dark: #3f7d12;
    --primary-soft: rgba(83, 163, 24, 0.10);

    --bg-body: #f6f7f9;
    --surface: #ffffff;
    --text-dark: #1f2b24;
    --text-grey: #6b7772;
    --text-mute: #9aa4a0;
    --border: #e8ecee;
    --border-strong: #d7dde0;

    --star: #ffb400;
    --price: #2b8a00;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-soft: 0 6px 24px rgba(20, 40, 25, 0.06);
    --shadow-card: 0 8px 26px rgba(20, 40, 25, 0.08);
    --shadow-hover: 0 16px 34px rgba(31, 82, 24, 0.16);
    --shadow-head: 0 2px 12px rgba(20, 40, 25, 0.06);

    --container: 1240px;
    --header-h: 72px;
    --font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.gp-container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.gp-main { max-width: var(--container); margin: 0 auto; padding: 22px 20px 40px; }
.hidden { display: none !important; }
/* Selaraskan lebar container lama (grab/profit/profile) dengan header & footer baru */
body .mobile-app-container { max-width: var(--container); margin: 0 auto; }

/* ===================== TOP HEADER ===================== */
.gp-header {
    position: sticky; top: 0; z-index: 200;
    background: var(--surface);
    box-shadow: var(--shadow-head);
    border-bottom: 1px solid var(--border);
}
.gp-header-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 20px;
    height: var(--header-h); display: flex; align-items: center; gap: 22px;
}
.gp-logo {
    font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
    color: var(--primary-color); cursor: pointer; white-space: nowrap; flex-shrink: 0;
    display: flex; align-items: center; gap: 9px;
}
.gp-logo img { height: 34px; width: auto; border-radius: 8px; }
.gp-logo .gp-logo-txt {
    background: var(--primary-gradient);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Search */
.gp-search { flex: 1; max-width: 620px; position: relative; }
.gp-search form { display: flex; align-items: center; }
.gp-search input {
    width: 100%; height: 46px; border: 1.6px solid var(--border-strong);
    border-radius: var(--radius-pill); padding: 0 54px 0 20px; font-family: var(--font);
    font-size: 14.5px; color: var(--text-dark); background: #fff; transition: 0.2s;
}
.gp-search input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--primary-soft); }
.gp-search button {
    position: absolute; right: 5px; top: 5px; width: 36px; height: 36px;
    border: none; border-radius: 50%; background: var(--primary-gradient); color: #fff;
    cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.gp-search button:hover { transform: scale(1.05); }

/* Actions */
.gp-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gp-act {
    position: relative; width: 44px; height: 44px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-grey); cursor: pointer; transition: 0.2s; background: transparent; border: none;
    font-size: 17px; gap: 1px;
}
.gp-act small { font-size: 9px; font-weight: 600; }
.gp-act:hover { color: var(--primary-color); background: var(--primary-soft); }
.gp-act .gp-badge {
    position: absolute; top: 5px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px;
    background: #e5484d; color: #fff; border-radius: 999px; font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* ===================== CATEGORY BAR ===================== */
.gp-catbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h); z-index: 150; }
.gp-catbar-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 20px;
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.gp-catbar-inner::-webkit-scrollbar { display: none; }
.gp-cat {
    flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
    padding: 14px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-grey);
    cursor: pointer; border-bottom: 3px solid transparent; transition: 0.2s; white-space: nowrap;
}
.gp-cat i { font-size: 14px; }
.gp-cat:hover { color: var(--primary-color); }
.gp-cat.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* ===================== HERO ===================== */
.gp-hero {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    margin-bottom: 28px; padding: 54px 46px; color: #fff;
    background:
        radial-gradient(circle at 88% 15%, rgba(255,255,255,0.14), transparent 44%),
        linear-gradient(120deg, #0f2c17 0%, #23561f 52%, #2f7a35 100%);
    box-shadow: 0 20px 46px rgba(31, 82, 24, 0.26);
}
.gp-hero .eyebrow {
    display: inline-block; background: rgba(255,255,255,0.16); color: #eafce0;
    font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    padding: 7px 14px; border-radius: 30px; margin-bottom: 16px;
}
.gp-hero h1 { font-size: 42px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; margin-bottom: 12px; max-width: 560px; }
.gp-hero h1 span { color: #a6ff7a; }
.gp-hero p { font-size: 15px; opacity: 0.92; max-width: 470px; margin-bottom: 24px; line-height: 1.5; }
.gp-hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gp-code { background: rgba(255,255,255,0.14); border: 1px dashed rgba(255,255,255,0.55); padding: 11px 16px; border-radius: 12px; font-size: 13px; letter-spacing: 1px; font-weight: 600; }
.gp-code b { color: #c6ff9e; letter-spacing: 2px; }
.gp-hero-art { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); font-size: 140px; opacity: 0.15; pointer-events: none; }

/* ===================== BUTTONS ===================== */
.btn { font-family: var(--font); font-weight: 700; font-size: 14px; border-radius: 12px; padding: 12px 24px; cursor: pointer; border: none; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: 0 8px 20px rgba(83,163,24,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(83,163,24,0.36); }
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 25px rgba(0,0,0,0.18); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary-color); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--primary-color); background: var(--primary-soft); }
.btn-block { width: 100%; }

/* ===================== SECTION + DEAL CARDS ===================== */
.deal-section { margin-bottom: 36px; }
.deal-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.deal-section-title { font-size: 22px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.4px; }
.deal-section-title small { display: block; font-size: 13px; font-weight: 500; color: var(--text-grey); margin-top: 3px; letter-spacing: 0; }
.deal-section-link { font-size: 13.5px; font-weight: 700; color: var(--primary-color); cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.deal-section-link:hover { gap: 9px; }

.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.deal-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.deal-card {
    background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-card); cursor: pointer; display: flex; flex-direction: column;
    border: 1px solid var(--border); transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s;
}
.deal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.deal-card-img { position: relative; width: 100%; padding-top: 66%; overflow: hidden; background: #eef1f2; }
.deal-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.deal-card:hover .deal-card-img img { transform: scale(1.06); }
.deal-tag { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.94); color: var(--primary-dark); font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.deal-disc { position: absolute; top: 10px; right: 10px; background: var(--primary-color); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 6px; box-shadow: 0 3px 8px rgba(83,163,24,0.4); }
.deal-fav { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.92); color: #97a0a4; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: 0.2s; }
.deal-fav:hover { color: #e5484d; transform: scale(1.1); }
.deal-card-body { padding: 14px 15px 16px; flex: 1; display: flex; flex-direction: column; }
.deal-merchant { font-size: 11.5px; color: var(--text-mute); font-weight: 600; margin-bottom: 4px; }
.deal-title { font-size: 14.5px; font-weight: 700; color: var(--text-dark); line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.deal-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 10px; }
.deal-stars { color: var(--star); letter-spacing: 0.5px; }
.deal-rc { color: var(--text-grey); }
.deal-loc { font-size: 11.5px; color: var(--text-mute); margin-bottom: 12px; display: flex; align-items: center; gap: 5px; }
.deal-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.deal-price { font-size: 19px; font-weight: 800; color: var(--price); }
.deal-price-old { font-size: 12.5px; color: var(--text-mute); text-decoration: line-through; font-weight: 600; }
.deal-code { font-size: 11px; color: var(--primary-color); font-weight: 700; margin-top: 6px; }

/* ===================== BALANCE STRIP ===================== */
.gp-balancebar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 16px 22px; margin-bottom: 24px; box-shadow: var(--shadow-soft);
}
.gp-balancebar .bb-left b { font-size: 18px; color: var(--text-dark); }
.gp-balancebar .bb-left span { font-size: 12px; color: var(--text-grey); display: block; }
.gp-balancebar .bb-bal { text-align: right; }
.gp-balancebar .bb-bal b { font-size: 20px; color: var(--primary-color); }
.gp-balancebar .bb-bal span { font-size: 12px; color: var(--text-grey); display: block; }
.gp-balancebar .bb-actions { display: flex; gap: 10px; }

/* ===================== TESTIMONIALS ===================== */
.tst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tst-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); cursor: pointer; transition: 0.2s; }
.tst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tst-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tst-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.tst-name { font-weight: 700; font-size: 14px; }
.tst-stars { color: var(--star); font-size: 12px; }
.tst-text { font-size: 13px; color: var(--text-grey); line-height: 1.5; font-style: italic; }

/* ===================== FOOTER ===================== */
.gp-footer { background: #10231a; color: #c9d6cf; margin-top: 50px; }
.gp-footer-top { max-width: var(--container); margin: 0 auto; padding: 46px 20px 30px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.gp-footer .f-brand { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.gp-footer .f-tag { font-size: 13px; color: #9db0a6; line-height: 1.6; max-width: 280px; margin-bottom: 16px; }
.gp-footer .f-social { display: flex; gap: 10px; }
.gp-footer .f-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #cfe0d6; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.gp-footer .f-social a:hover { background: var(--primary-color); color: #fff; }
.gp-footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.gp-footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.gp-footer ul a { font-size: 13px; color: #9db0a6; transition: 0.2s; }
.gp-footer ul a:hover { color: #fff; }
.gp-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.gp-footer-bottom .fb-inner { max-width: var(--container); margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #8ba095; }

/* ===================== MOBILE BOTTOM NAV ===================== */
.gp-bottomnav { display: none; }
.gp-bottomnav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 66px; background: #fff; z-index: 900;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.07); align-items: center; justify-content: space-around;
    border-top-left-radius: 18px; border-top-right-radius: 18px;
}
.gp-bn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #b7c0bb; font-size: 10px; font-weight: 600; width: 60px; }
.gp-bn-item i { font-size: 19px; }
.gp-bn-item.active { color: var(--primary-color); }
.gp-bn-center { position: relative; top: -22px; }
.gp-bn-center .gp-bn-fab { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(83,163,24,0.4); }
.gp-bn-center span { font-size: 10px; font-weight: 700; color: var(--primary-color); text-align: center; display: block; margin-top: 2px; }

/* ===================== FLOATING CS ===================== */
.float-cs { position: fixed; bottom: 100px; right: 34px; width: 58px; height: 58px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 10px 25px rgba(37,211,102,0.4); cursor: pointer; z-index: 800; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .gp-footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
    .deal-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    :root { --header-h: 60px; }
    body { padding-bottom: 80px; }
    .gp-header-inner { gap: 12px; flex-wrap: wrap; height: auto; padding: 10px 15px; }
    .gp-logo { font-size: 21px; }
    .gp-logo img { height: 28px; }
    .gp-search { order: 3; flex-basis: 100%; max-width: none; }
    .gp-search input { height: 42px; }
    .gp-actions { margin-left: auto; }
    .gp-catbar { top: 0; }
    .gp-main { padding: 16px 15px 30px; }
    .gp-hero { padding: 30px 22px; border-radius: 16px; }
    .gp-hero h1 { font-size: 26px; }
    .gp-hero p { font-size: 13px; margin-bottom: 18px; }
    .gp-hero-art { font-size: 84px; right: 12px; opacity: 0.12; }
    .deal-grid, .deal-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .deal-section-title { font-size: 18px; }
    .deal-price { font-size: 17px; }
    .gp-bottomnav { display: flex; }
    .float-cs { bottom: 84px; right: 18px; width: 50px; height: 50px; font-size: 22px; }
    .gp-footer-top { grid-template-columns: 1fr 1fr; }
    .gp-balancebar { padding: 14px 16px; }
    .gp-balancebar .bb-actions { width: 100%; }
    .gp-balancebar .bb-actions .btn { flex: 1; padding: 10px; }
}
@media (max-width: 480px) {
    .deal-grid, .deal-grid.cols-4 { gap: 12px; }
    .tst-grid { grid-template-columns: 1fr; }
    .gp-footer-top { grid-template-columns: 1fr; }
}
