/* GrowFlow Free / Pro access layer */
.gf-mobile-plan-card { display: none; }

.gf-plan-toolbar-button {
    border-color: #b8d6c0 !important;
    background: #f4fbf6 !important;
    color: #0f5132 !important;
}
.gf-plan-toolbar-button strong,
.gf-plan-toolbar-button span { display: block; }
.gf-plan-toolbar-button strong { font-size: 13px; }
.gf-plan-toolbar-button span { margin-top: 2px; font-size: 9px; }

.top-actions {
    align-items: stretch !important;
    max-width: 100% !important;
    padding: 4px !important;
    border: 1px solid #cfe2d3 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #f6fbf7, #ffffff) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 28px rgba(9, 45, 24, .08) !important;
    overflow: hidden !important;
}

.top-actions > button,
.top-actions #towerGuideBtn,
.top-actions #shareAppBtn,
.top-actions button[onclick="openTutorialPopup()"],
.top-actions button[onclick="openSharePopup()"] {
    display: grid !important;
    place-content: center !important;
    justify-items: center !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    height: 50px !important;
    padding: 7px 9px !important;
    border-radius: 9px !important;
    border-color: transparent !important;
    background: #ffffff !important;
    color: #123a25 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    text-align: center !important;
    line-height: 1.1 !important;
    white-space: normal !important;
}
.top-actions > button:hover,
.top-actions > button:focus-visible {
    border-color: #8fd4a5 !important;
    background: #eefaf2 !important;
    color: #06381f !important;
    transform: translateY(-1px) !important;
}
.top-actions > button[onclick="openDiscountPopup()"],
.top-actions #towerGuideBtn,
.top-actions #shareAppBtn {
    background: linear-gradient(135deg, #103d27, #147340) !important;
    color: #ffffff !important;
}
.top-actions > button[onclick="openDiscountPopup()"]:hover,
.top-actions #towerGuideBtn:hover,
.top-actions #shareAppBtn:hover {
    background: linear-gradient(135deg, #0d321f, #168247) !important;
}
.top-actions > button strong,
.top-actions > button span {
    display: block !important;
    margin: 0 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}
.top-actions > button strong { font-size: 12px !important; }
.top-actions > button span { margin-top: 2px !important; font-size: 9px !important; }
.top-actions #towerGuideBtn,
.top-actions #shareAppBtn,
.top-actions button[onclick="openTutorialPopup()"],
.top-actions button[onclick="openSharePopup()"] {
    transform: none !important;
    scale: 1 !important;
    overflow: hidden !important;
}
.top-actions #shareAppBtn::before,
.top-actions #shareAppBtn::after,
.top-actions button[onclick="openSharePopup()"]::before,
.top-actions button[onclick="openSharePopup()"]::after {
    content: none !important;
    display: none !important;
}

.gf-pro-locked { position: relative; }
.gf-pro-locked::after {
    content: "PRO";
    position: absolute;
    top: 4px;
    right: 5px;
    border-radius: 4px;
    padding: 2px 4px;
    background: #102a43;
    color: #fff;
    font-size: 7px;
    font-weight: 900;
}

.gf-access-search-shell {
    display: grid;
    gap: 10px;
    border: 1px solid #cde5d2;
    border-radius: 8px;
    padding: 14px;
    background: #f7fcf8;
    box-shadow: 0 8px 22px rgba(15, 65, 35, .06);
}
.gf-access-search-head,
.gf-access-search-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.gf-access-search-head span {
    color: #18864b;
    font-size: 10px;
    font-weight: 900;
}
.gf-access-search-head h2 {
    margin: 3px 0 0;
    color: #0a3821;
    font-size: 20px;
}
.gf-access-search-head > button {
    min-width: 130px;
    border: 1px solid #b6dcc0;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: #0f5132;
}
.gf-access-search-head button b,
.gf-access-search-head button small { display: block; }
.gf-access-search-head button small { margin-top: 2px; color: #62756a; }
.gf-access-search-slot .search-row { margin: 0 !important; }
.quick-profit-check {
    display: grid;
    grid-template-columns: auto minmax(110px, 150px) minmax(110px, 150px) minmax(210px, 1fr);
    align-items: end;
    gap: 8px;
    margin-top: 8px;
    border: 1px solid #d7e6dc;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fbfefc;
    box-shadow: none;
}
.quick-profit-check strong {
    align-self: center;
    color: #153f29;
    font-size: 12px;
}
.quick-profit-check label {
    display: grid;
    gap: 3px;
    color: #53665b;
    font-size: 10px;
    font-weight: 900;
}
.quick-profit-check input {
    min-height: 32px;
    width: 100%;
    border: 1px solid #cfded4;
    border-radius: 7px;
    padding: 6px 8px;
    color: #102a1b;
    font-size: 13px;
}
.quick-profit-check span {
    align-self: center;
    min-width: 0;
    border-radius: 7px;
    padding: 8px 9px;
    background: #f3f7f4;
    color: #53665b;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.quick-profit-good { background: #e9fff1 !important; color: #116d39 !important; }
.quick-profit-maybe { background: #fff7df !important; color: #8a5a0a !important; }
.quick-profit-avoid { background: #fff1f1 !important; color: #9f1d1d !important; }
.gf-scan-size-box {
    display: grid;
    grid-template-columns: auto 118px minmax(160px, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    border: 1px solid #cfe5d6;
    border-radius: 8px;
    padding: 8px 10px;
    background: #f5fbf7;
    color: #153f29;
    font-size: 11px;
    font-weight: 900;
}
.gf-scan-size-box[hidden] { display: none !important; }
.gf-scan-size-box select {
    min-height: 34px;
    border: 1px solid #bcd7c4;
    border-radius: 7px;
    padding: 5px 8px;
    background: #fff;
    color: #102a1b;
    font-weight: 850;
}
.gf-scan-size-box small {
    color: #5d7065;
    font-size: 10px;
    font-weight: 800;
}
.gf-access-search-foot {
    justify-content: flex-start;
    color: #52675b;
    font-size: 10px;
    font-weight: 800;
}
.gf-access-search-foot span::before { content: "\2713"; margin-right: 4px; color: #16a34a; }
.gf-access-search-foot button {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #17643b;
    box-shadow: none;
    font-size: 10px;
    text-decoration: underline;
}

.gf-pricing-popup {
    width: min(1040px, 94vw);
    color: #102a1b;
}
.gf-pricing-popup > header { text-align: center; }
.gf-pricing-popup > header > span {
    color: #168044;
    font-size: 11px;
    font-weight: 900;
}
.gf-pricing-popup h2 {
    margin: 6px 0;
    font-size: 34px;
    letter-spacing: 0;
}
.gf-pricing-popup header p {
    max-width: 680px;
    margin: 0 auto;
    color: #5e6f65;
    line-height: 1.45;
}
.gf-pricing-reason {
    margin: 12px auto 0;
    max-width: 720px;
    border: 1px solid #f3d48a;
    border-radius: 6px;
    padding: 9px 12px;
    background: #fff8e7;
    color: #805b12;
    font-size: 12px;
    font-weight: 800;
}
.gf-plan-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 12px;
    color: #4b6456;
    font-size: 12px;
}
.gf-plan-status strong { color: #0f6b3b; }
.gf-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.gf-pro-two-mode-grid {
    grid-template-columns: .85fr 1.15fr;
}
.gf-price-plan {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    border: 1px solid #d9e4dc;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}
.gf-price-plan.featured {
    border: 2px solid #1aaa59;
    box-shadow: 0 12px 28px rgba(22, 163, 74, .13);
}
.gf-price-plan.current { background: #f2fbf4; }
.gf-plan-ribbon {
    position: absolute;
    top: -11px;
    right: 12px;
    border-radius: 4px;
    padding: 4px 8px;
    background: #f3b82f;
    color: #332400;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.gf-plan-heading span,
.gf-plan-heading strong,
.gf-plan-heading small { display: block; }
.gf-plan-heading span { color: #17643b; font-size: 15px; font-weight: 900; }
.gf-plan-heading strong { margin-top: 8px; color: #0b2617; font-size: 28px; }
.gf-plan-heading small { margin-top: 2px; color: #68776e; }
.gf-price-plan ul {
    display: grid;
    gap: 9px;
    margin: 16px 0;
    padding: 14px 0 0;
    border-top: 1px solid #e3ebe5;
    list-style: none;
}
.gf-price-plan li { position: relative; padding-left: 20px; color: #405247; font-size: 12px; }
.gf-price-plan li::before { content: "\2713"; position: absolute; left: 0; color: #16a34a; font-weight: 900; }
.gf-price-plan > button {
    min-height: 42px;
    border: 1px solid #17643b;
    border-radius: 7px;
    background: #17643b;
    color: #fff;
    box-shadow: none;
    font-weight: 900;
}
.gf-price-plan.featured > button { background: #16a34a; border-color: #16a34a; }
.gf-price-plan > button:disabled { border-color: #cdd8d0; background: #e8efe9; color: #53665a; }
.gf-plan-activation {
    display: grid;
    grid-template-columns: minmax(190px, .8fr) minmax(320px, 1.2fr);
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    border: 1px solid #ccd9e8;
    border-radius: 8px;
    padding: 13px;
    background: #f6f9fc;
}
.gf-plan-activation strong,
.gf-plan-activation span { display: block; }
.gf-plan-activation span { margin-top: 3px; color: #627080; font-size: 11px; }
.gf-plan-key-row { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; }
.gf-plan-key-row input {
    min-width: 0;
    min-height: 42px;
    border: 1px solid #b9c9dc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
}
.gf-plan-key-row button {
    border: 0;
    border-radius: 6px;
    padding: 8px 16px;
    background: #153e63;
    color: #fff;
    font-weight: 900;
}
#gfPlanKeyMessage { grid-column: 2; min-height: 16px; margin: -6px 0 0; font-size: 11px; }
#gfPlanKeyMessage.good { color: #15803d; }
#gfPlanKeyMessage.bad { color: #b91c1c; }
#gfPlanKeyMessage.info { color: #1d4f7a; }
.gf-pro-popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 9px;
    margin-top: 12px;
}
.gf-pro-popup-actions button {
    min-height: 42px;
    border-radius: 7px;
}
.gf-pro-popup-actions button:first-child {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}
.gf-pricing-popup > footer {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 13px;
    color: #66766c;
    font-size: 10px;
    font-weight: 800;
}

.gf-mobile-listing-link,
.gf-open-listing-link {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 7px;
    background: #17643b;
    color: #fff !important;
    font-weight: 900;
    text-decoration: none !important;
}
.gf-open-listing-link { width: 100%; margin-top: 12px; }
.gf-mobile-listing-link { grid-column: 1 / -1; min-height: 38px; }

.gf-ebay-shop-badge img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    background: #fff !important;
}

.gf-shop-specs-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.gf-shop-specs-gallery figure {
    margin: 0;
    border: 1px solid #d7e3da;
    border-radius: 8px;
    padding: 8px;
    background: #f7faf8;
}
.gf-shop-specs-popup .gf-shop-specs-gallery img {
    width: 100% !important;
    height: auto !important;
    max-height: 72vh !important;
    aspect-ratio: 210 / 297 !important;
    border: 0 !important;
    border-radius: 5px !important;
    object-fit: contain !important;
}
.gf-shop-specs-gallery figcaption {
    padding: 7px 4px 2px;
    color: #31503c;
    font-size: 11px;
    font-weight: 900;
}

.gf-mobile-share-sheet {
    display: grid;
    gap: 16px;
    color: #102a1b;
}
.gf-mobile-share-sheet header span {
    color: #168044;
    font-size: 10px;
    font-weight: 900;
}
.gf-mobile-share-sheet h2 {
    margin: 4px 0;
    font-size: 27px;
    letter-spacing: 0;
}
.gf-mobile-share-sheet header p {
    margin: 0;
    color: #607067;
    font-size: 12px;
}
.gf-mobile-share-actions {
    display: grid;
    gap: 8px;
}
.gf-mobile-share-actions button {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 58px;
    border: 1px solid #cad8cf;
    border-radius: 8px;
    padding: 10px 13px;
    background: #fff;
    box-shadow: none;
    color: #173c27;
    text-align: left;
}
.gf-mobile-share-actions button.primary {
    border-color: #158247;
    background: #158247;
    color: #fff;
}
.gf-mobile-share-actions b { font-size: 14px; }
.gf-mobile-share-actions small { margin-top: 3px; opacity: .75; font-size: 10px; }
.gf-mobile-share-message {
    min-height: 16px;
    margin: 0;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
}

.gf-mobile-search-terms-launch {
    display: none;
    position: relative;
    overflow: hidden;
}
.gf-mobile-search-terms-launch::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(34, 197, 94, .16) 42%, transparent 58%);
    transform: translateX(-120%);
}
body[data-access-plan="pro"] .gf-mobile-search-terms-launch::after { display: none; }
.gf-install-popup {
    width: min(720px, 92vw);
    color: #102f1f;
}
.gf-install-hero {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid #b7ebc8;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4fff7 0%, #ffffff 48%, #e9fff1 100%);
}
.gf-install-hero img {
    width: 118px;
    height: 118px;
    border-radius: 26px;
    box-shadow: 0 16px 34px rgba(5, 70, 34, .22);
}
.gf-install-hero span {
    color: #168044;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
}
.gf-install-hero h2 {
    margin: 5px 0 7px;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: 0;
}
.gf-install-hero p {
    margin: 0;
    color: #52675c;
    font-size: 14px;
}
.gf-install-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr);
    gap: 10px;
    margin: 14px 0;
}
.gf-install-actions button {
    min-height: 48px;
    border-radius: 9px;
}
.gf-install-primary {
    border-color: #0f9e4c !important;
    background: #18b75a !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(22, 163, 74, .22) !important;
}
.gf-install-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.gf-install-steps article {
    min-height: 122px;
    padding: 13px;
    border: 1px solid #d8e8dd;
    border-radius: 10px;
    background: #fff;
}
.gf-install-steps b {
    display: block;
    margin-bottom: 6px;
    color: #0f6233;
}
.gf-install-steps p {
    margin: 0;
    color: #5a6b61;
    font-size: 12px;
    line-height: 1.45;
}
.gf-install-mobile-mode .gf-install-steps article:first-child,
.gf-install-steps-attention article:first-child {
    border-color: #20c567;
    background: #effff4;
    box-shadow: inset 4px 0 0 #20c567;
}
.gf-install-status {
    min-height: 18px;
    margin: 12px 0 0;
    color: #168044;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.gf-mobile-install-card {
    display: none;
}
.gf-mobile-search-terms {
    width: min(760px, 92vw);
    color: #163923;
}
.gf-mobile-search-terms > header {
    padding: 4px 4px 15px;
    border-bottom: 1px solid #dce9df;
}
.gf-mobile-search-terms > header > span {
    color: #138549;
    font-size: 10px;
    font-weight: 900;
}
.gf-mobile-search-terms h2 {
    margin: 4px 0;
    font-size: 27px;
    line-height: 1.1;
}
.gf-mobile-search-terms header p {
    margin: 0 0 12px;
    color: #637168;
    font-size: 12px;
}
.gf-mobile-search-terms header label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid #cbdcd0;
    border-radius: 6px;
    background: #f8fbf9;
}
.gf-mobile-search-terms header input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173c26;
    font: inherit;
}
.gf-mobile-term-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 14px;
}
.gf-mobile-term-group h3 {
    margin: 0 0 7px;
    color: #68776d;
    font-size: 10px;
    text-transform: uppercase;
}
.gf-mobile-term-group > div { display: grid; gap: 5px; }
.gf-mobile-term-group[hidden],
.gf-mobile-term-group button[hidden],
.gf-mobile-term-empty[hidden] { display: none !important; }
.gf-mobile-term-group button {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    padding: 7px 9px;
    border: 1px solid #dbe6de;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    color: #173c26;
    text-align: left;
}
.gf-mobile-term-group button:hover,
.gf-mobile-term-group button:focus-visible {
    border-color: #72ca91;
    background: #effbf3;
}
.gf-mobile-term-group button > span {
    grid-row: 1 / 3;
    font-size: 17px;
}
.gf-mobile-term-group button b { font-size: 12px; }
.gf-mobile-term-group button small {
    overflow: hidden;
    color: #718078;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gf-mobile-term-empty {
    margin: 18px 0 2px;
    color: #68776d;
    text-align: center;
}

@media (min-width: 761px) and (max-width: 1650px) {
    .top-header {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }
    .top-header .scan-buttons {
        grid-column: 2;
        grid-row: 1;
    }
    .top-actions {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: repeat(9, minmax(0, 1fr));
        width: 100%;
        align-items: stretch !important;
    }
    .top-actions > button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 760px) {
    /* Mobile blank-space fix: old body padding plus fixed bottom nav created extra scroll height after content. */
    body {
        padding-bottom: 0 !important;
    }
    .app-shell {
        padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }
    .main-area {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .main-area > :last-child {
        margin-bottom: 0 !important;
    }
    .top-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        width: 100% !important;
    }
    .top-actions > button,
    .top-actions #towerGuideBtn,
    .top-actions #shareAppBtn {
        min-height: 44px !important;
        height: 44px !important;
        padding: 6px 8px !important;
    }
    .top-actions > button strong { font-size: 11px !important; }
    .top-actions > button span { font-size: 8px !important; }
}

@media (max-width: 760px) {
    .gf-mobile-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
    .gf-mobile-plan-card {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 52px;
        border: 1px solid #c9dfcf;
        border-radius: 8px;
        padding: 9px 11px;
        background: #f5fbf6;
        box-shadow: none;
        color: #153f29;
        text-align: left;
    }
    .gf-mobile-plan-card span { color: #178047; font-size: 10px; font-weight: 900; text-transform: uppercase; }
    .gf-mobile-plan-card strong { font-size: 12px; }
    .gf-mobile-plan-card small { color: #586b60; font-size: 9px; }
    .gf-mobile-install-card {
        display: grid;
        grid-template-columns: 42px 1fr auto;
        align-items: center;
        gap: 2px 10px;
        width: 100%;
        min-height: 62px;
        border: 1px solid #aeeec2;
        border-radius: 8px;
        padding: 8px 11px;
        background: linear-gradient(135deg, #ecfff2, #ffffff);
        box-shadow: none;
        color: #153f29;
        text-align: left;
    }
    .gf-mobile-install-card img {
        grid-row: 1 / 4;
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    .gf-mobile-install-card span {
        color: #168047;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .gf-mobile-install-card strong { font-size: 12px; }
    .gf-mobile-install-card small { color: #586b60; font-size: 9px; }
    .gf-mobile-install-card::after {
        grid-column: 3;
        grid-row: 1 / 4;
        content: "+";
        color: #18a34a;
        font-size: 24px;
        font-weight: 900;
    }
    .gf-install-popup { width: 100%; }
    .gf-install-hero {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .gf-install-hero img {
        width: 72px;
        height: 72px;
        border-radius: 17px;
    }
    .gf-install-hero h2 { font-size: 24px; }
    .gf-install-hero p { font-size: 12px; }
    .gf-install-actions { grid-template-columns: 1fr; }
    .gf-install-steps { grid-template-columns: 1fr; }
    .gf-install-steps article { min-height: 0; }
    .gf-mobile-search-terms-launch {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 2px 10px;
        width: 100%;
        min-height: 49px;
        padding: 8px 11px;
        border: 1px solid #c9dfcf;
        border-radius: 7px;
        background: #fff;
        box-shadow: none;
        color: #173c26;
        text-align: left;
        animation: gfSearchTermsGlow 3.8s ease-in-out infinite;
    }
    .gf-mobile-search-terms-launch::after {
        animation: gfSearchTermsShimmer 4.8s ease-in-out infinite;
    }
    .gf-mobile-search-terms-launch span {
        color: #158248;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .gf-mobile-search-terms-launch strong { grid-column: 1; font-size: 12px; }
    .gf-mobile-search-terms-launch b {
        grid-column: 2;
        grid-row: 1 / 3;
        font-size: 25px;
        animation: gfSearchTermsArrow 2.4s ease-in-out infinite;
    }
    .gf-mobile-programme {
        width: 100%;
        border: 1px solid #c9dfcf;
        border-radius: 10px;
        background: linear-gradient(135deg, #f7fcf8, #ffffff);
        box-shadow: none;
        overflow: hidden;
    }
    .gf-mobile-programme summary {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 5px 10px;
        min-height: 48px;
        padding: 9px 11px;
        color: #173c26;
        cursor: pointer;
        list-style: none;
    }
    .gf-mobile-programme summary::-webkit-details-marker { display: none; }
    .gf-mobile-programme summary::after {
        content: "+";
        grid-column: 2;
        grid-row: 1 / 3;
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border-radius: 999px;
        background: #e8f7ec;
        color: #13723c;
        font-weight: 900;
    }
    .gf-mobile-programme[open] summary::after { content: "-"; }
    .gf-mobile-programme summary span {
        color: #158248;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .gf-mobile-programme summary strong {
        grid-column: 1;
        font-size: 12px;
    }
    .gf-mobile-app-list {
        display: grid;
        gap: 7px;
        padding: 0 9px 9px;
    }
    .gf-mobile-app-row {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        min-width: 0;
        padding: 8px;
        border: 1px solid #d9e8de;
        border-radius: 9px;
        background: #fff;
    }
    .gf-mobile-app-row.active {
        border-color: #9ce8b3;
        background: #effbf3;
    }
    .gf-mobile-app-row img {
        width: 38px;
        height: 38px;
        border: 1px solid #dce9df;
        border-radius: 10px;
        object-fit: cover;
        background: #fff;
    }
    .gf-mobile-app-row div,
    .gf-mobile-app-row strong,
    .gf-mobile-app-row p {
        min-width: 0;
    }
    .gf-mobile-app-row strong {
        display: block;
        overflow: hidden;
        color: #0d3320;
        font-size: 12px;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .gf-mobile-app-row p {
        display: -webkit-box;
        overflow: hidden;
        margin: 3px 0 0;
        color: #607067;
        font-size: 9px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .gf-mobile-app-row button,
    .gf-mobile-app-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        min-width: 66px;
        padding: 7px 9px;
        border: 1px solid #b7dcc1;
        border-radius: 8px;
        background: #0f6d37;
        box-shadow: none;
        color: #fff;
        font-size: 10px;
        font-weight: 900;
        white-space: nowrap;
    }
    .gf-mobile-app-badge {
        background: #e8f7ec;
        color: #13723c;
    }
    body[data-access-plan="pro"] .gf-mobile-search-terms-launch {
        animation: none;
        box-shadow: none;
    }
    body[data-access-plan="pro"] .gf-mobile-search-terms-launch b { animation: none; }
    .gf-mobile-search-terms { width: 100%; }
    .gf-mobile-search-terms h2 { font-size: 23px; }
    .gf-mobile-term-groups { grid-template-columns: 1fr; gap: 15px; }
    .gf-mobile-term-group button { min-height: 45px; }
    .gf-access-search-shell { padding: 11px; }
    .gf-access-search-head h2 { font-size: 17px; }
    .gf-access-search-head > button { min-width: 105px; padding: 7px; }
    .quick-profit-check {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        padding: 9px;
    }
    .quick-profit-check strong,
    .quick-profit-check span {
        grid-column: 1 / -1;
    }
    .quick-profit-check input { min-height: 34px; font-size: 16px; }
    .quick-profit-check span {
        white-space: normal;
        line-height: 1.25;
    }
    .gf-scan-size-box {
        grid-template-columns: 1fr auto;
        gap: 5px 8px;
        padding: 8px 9px;
    }
    .gf-scan-size-box small {
        grid-column: 1 / -1;
    }
    .gf-access-search-foot { flex-wrap: wrap; }
    .gf-access-search-foot button { margin-left: 0; }
    .gf-pricing-popup { width: 100%; }
    /* Keep the Pro popup above the fixed mobile tab bar and scroll inside the card. */
    .modal-overlay:has(.gf-pricing-popup) {
        align-items: flex-start !important;
        padding: calc(10px + env(safe-area-inset-top)) 10px calc(86px + env(safe-area-inset-bottom)) !important;
        overflow: hidden !important;
    }
    .modal-box:has(.gf-pricing-popup) {
        width: min(100%, 430px) !important;
        max-width: 430px !important;
        max-height: calc(100dvh - 98px - env(safe-area-inset-bottom)) !important;
        margin: 0 auto !important;
        padding: 14px 12px !important;
        border-radius: 18px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .gf-pricing-popup h2 { font-size: 27px; line-height: 1.08; }
    .gf-pricing-popup header p { font-size: 12px; }
    .gf-pricing-grid { grid-template-columns: 1fr; }
    .gf-pro-popup-actions { grid-template-columns: 1fr; }
    .gf-price-plan { padding: 14px; }
    .gf-plan-heading {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2px 12px;
        align-items: end;
    }
    .gf-plan-heading strong { margin: 0; font-size: 23px; }
    .gf-plan-heading small { grid-column: 1 / -1; }
    .gf-price-plan ul { margin: 10px 0; padding-top: 10px; }
    .gf-plan-activation { grid-template-columns: 1fr; }
    .gf-plan-key-row { grid-template-columns: 1fr; }
    .gf-plan-key-row button { min-height: 42px; }
    #gfPlanKeyMessage { grid-column: 1; margin-top: 0; }
    .gf-pricing-popup > footer { flex-wrap: wrap; gap: 6px 14px; }
    .gf-shop-specs-gallery { grid-template-columns: 1fr; }
    .gf-shop-specs-popup .gf-shop-specs-gallery img { max-height: none !important; }
    .gf-whatsapp-picture-btn {
        left: 10px !important;
        right: 10px !important;
        bottom: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        transform: none !important;
        animation: none !important;
        box-sizing: border-box !important;
    }
    .gf-whatsapp-picture-btn:hover { transform: none !important; }
}

@media (max-width: 380px) {
    .gf-access-search-head { align-items: start; }
    .gf-access-search-head > button { min-width: 92px; }
    .gf-access-search-head h2 { font-size: 15px; }
    .gf-pricing-popup h2 { font-size: 24px; }
}

@keyframes gfSearchTermsGlow {
    0%, 100% { border-color: #c9dfcf; box-shadow: none; }
    45% { border-color: #6ee7a0; box-shadow: 0 0 0 2px rgba(34, 197, 94, .12); }
}

@keyframes gfSearchTermsShimmer {
    0%, 58%, 100% { transform: translateX(-120%); }
    72% { transform: translateX(120%); }
}

@keyframes gfSearchTermsArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
    .gf-mobile-search-terms-launch,
    .gf-mobile-search-terms-launch::after,
    .gf-mobile-search-terms-launch b {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    /* Mirror the mobile Pro-popup spacing on tablet widths so fixed tabs stay reachable. */
    .modal-overlay:has(.gf-pricing-popup) {
        align-items: flex-start !important;
        padding: calc(10px + env(safe-area-inset-top)) 10px calc(86px + env(safe-area-inset-bottom)) !important;
        overflow: hidden !important;
    }
    .modal-box:has(.gf-pricing-popup) {
        max-height: calc(100dvh - 98px - env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

/* Premium desktop action bar: compact segmented buttons kept inside the header bounds. */
@media (min-width: 761px) {
    .top-header .top-actions {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)) !important;
        align-items: stretch !important;
        justify-content: end !important;
        gap: 4px !important;
        width: min(100%, 820px) !important;
        max-width: 820px !important;
        padding: 5px !important;
        border: 1px solid #b9dbc3 !important;
        border-radius: 15px !important;
        background: linear-gradient(135deg, rgba(244, 251, 246, .98), rgba(255,255,255,.98)) !important;
        box-shadow: 0 14px 34px rgba(8, 42, 22, .10), inset 0 1px 0 rgba(255,255,255,.95) !important;
        overflow: hidden !important;
    }
    .top-header .top-actions > button,
    .top-header .top-actions #towerGuideBtn,
    .top-header .top-actions #shareAppBtn,
    .top-header .top-actions #gfActivateProButton,
    .top-header .top-actions #gfActivatePaidBtn,
    .top-header .top-actions .gf-plan-toolbar-button {
        display: grid !important;
        grid-template-rows: auto auto !important;
        place-items: center !important;
        align-content: center !important;
        gap: 2px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 5px 7px !important;
        border: 1px solid transparent !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        color: #123825 !important;
        line-height: 1.05 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow: visible !important;
        transform: none !important;
    }
    .top-header .top-actions > button strong,
    .top-header .top-actions > button span {
        display: block !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow: visible !important;
        line-height: 1.05 !important;
        text-overflow: clip !important;
        white-space: normal !important;
        letter-spacing: 0 !important;
    }
    .top-header .top-actions > button strong {
        color: inherit !important;
        font-size: 10.5px !important;
        font-weight: 950 !important;
    }
    .top-header .top-actions > button span {
        color: inherit !important;
        opacity: .78 !important;
        font-size: 8.5px !important;
        font-weight: 850 !important;
    }
    .top-header .top-actions > button:hover,
    .top-header .top-actions > button:focus-visible {
        border-color: #86d49c !important;
        background: #eefaf2 !important;
        color: #06381f !important;
        transform: translateY(-1px) !important;
    }
    .top-header .top-actions button[onclick="openDiscountPopup()"],
    .top-header .top-actions #towerGuideBtn,
    .top-header .top-actions #shareAppBtn {
        border-color: #1b8b4e !important;
        background: linear-gradient(150deg, #07351f, #0d7a42) !important;
        color: #ffffff !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.16) !important;
    }
    .top-header .top-actions #shareAppBtn {
        background: linear-gradient(150deg, #07351f, #168c4a) !important;
    }
    .top-header .top-actions #gfActivateProButton,
    .top-header .top-actions #gfActivatePaidBtn {
        background: linear-gradient(150deg, #f5fbf6, #ffffff) !important;
        border-color: #c9e4d0 !important;
        color: #123825 !important;
    }
    .top-header .top-actions .gf-toolbar-add-app {
        grid-template-columns: 18px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 4px !important;
        text-align: left !important;
    }
    .top-header .top-actions .gf-toolbar-add-app img {
        grid-row: 1 / 3 !important;
        width: 18px !important;
        height: 18px !important;
        border-radius: 5px !important;
        object-fit: cover !important;
    }
    .top-header .top-actions .gf-toolbar-add-app strong,
    .top-header .top-actions .gf-toolbar-add-app span {
        justify-self: start !important;
    }
}

/* Mobile search-unlocked card fix: compact animated success card with no text/button overlap. */
@media (max-width: 768px) {
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 8px 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 10px !important;
        border: 1px solid #21c864 !important;
        border-radius: 16px !important;
        background:
            radial-gradient(circle at 18% 0%, rgba(135, 255, 174, .28), transparent 42%),
            linear-gradient(135deg, #05331f, #08743e) !important;
        color: #ffffff !important;
        box-shadow: 0 12px 28px rgba(5, 79, 42, .22), inset 0 1px 0 rgba(255,255,255,.16) !important;
        text-align: left !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        animation: gfSearchUnlockedArrive .7s ease-out both, gfSearchUnlockedGlow 4.6s ease-in-out 1.1s infinite !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer::after {
        content: "" !important;
        position: absolute !important;
        inset: -45% auto -45% -35% !important;
        display: block !important;
        width: 34% !important;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent) !important;
        transform: skewX(-18deg) translateX(-140%) !important;
        animation: gfSearchUnlockedShimmer 4.8s ease-in-out 1.2s infinite !important;
        pointer-events: none !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-offer-mascot {
        display: grid !important;
        place-items: center !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        margin: 0 !important;
        border: 1px solid rgba(255,255,255,.45) !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,.92) !important;
        box-shadow: 0 6px 15px rgba(0,0,0,.18) !important;
        color: #08743e !important;
        font-size: 20px !important;
        animation: gfSearchUnlockedTick .9s ease-out .15s both !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer > div:not(.gf-search-offer-mascot) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer strong,
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer span {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
        line-height: 1.18 !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer strong {
        font-size: 13px !important;
        color: #ffffff !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer span {
        margin-top: 2px !important;
        color: rgba(255,255,255,.86) !important;
        font-size: 10px !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer button {
        grid-column: 1 / -1 !important;
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 9px 12px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #071225 !important;
        box-shadow: 0 8px 18px rgba(0,0,0,.22) !important;
        color: #ffffff !important;
        font-size: 13px !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
}

@keyframes gfSearchUnlockedArrive {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gfSearchUnlockedGlow {
    0%, 100% { box-shadow: 0 12px 28px rgba(5, 79, 42, .20), inset 0 1px 0 rgba(255,255,255,.16); }
    50% { box-shadow: 0 14px 34px rgba(14, 172, 82, .34), inset 0 1px 0 rgba(255,255,255,.2); }
}

@keyframes gfSearchUnlockedShimmer {
    0%, 58%, 100% { transform: skewX(-18deg) translateX(-140%); }
    74% { transform: skewX(-18deg) translateX(470%); }
}

@keyframes gfSearchUnlockedTick {
    0% { transform: scale(.78) rotate(-10deg); opacity: 0; }
    65% { transform: scale(1.08) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer,
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer::after,
    .gf-search-unlock-shell.is-unlocked .gf-search-offer-mascot {
        animation: none !important;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer {
        grid-template-columns: 54px minmax(0, 1fr) minmax(120px, 170px) !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer > div:not(.gf-search-offer-mascot) {
        min-width: 0 !important;
    }
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer strong,
    .gf-search-unlock-shell.is-unlocked .gf-search-unlock-offer span {
        white-space: normal !important;
    }
}
