/* ================================================================
   FOREVER IKS - PHASE 2 HOMEPAGE
   Approved dark engineering / manufacturer UI
   Typography rule: all visible UI text is 14px or smaller.
   ================================================================ */

.home-v2-body {
    background:
        radial-gradient(circle at 76% 13%, rgba(104, 12, 18, .16), transparent 28%),
        linear-gradient(180deg, #080c10 0%, #070a0d 100%);
}

.home-v2-main {
    padding: 0 0 48px !important;
    overflow: hidden;
}

.home-v2-page .home-container {
    max-width: 1240px;
}

.home-v2-page h1,
.home-v2-page h2,
.home-v2-page h3,
.home-v2-page h4,
.home-v2-page h5,
.home-v2-page h6 {
    margin: 0;
    color: var(--fx-text);
    font-family: var(--fx-font);
    font-weight: 600;
    letter-spacing: -.01em;
}

.home-v2-page h1 { font-size: 14px !important; line-height: 1.35; }
.home-v2-page h2 { font-size: 13px !important; line-height: 1.4; }
.home-v2-page h3 { font-size: 12px !important; line-height: 1.4; }
.home-v2-page p { margin: 0; text-align: left; font-size: 11px !important; line-height: 1.65; color: var(--fx-text-soft); }

.v2-kicker,
.v2-section-code,
.v2-mono {
    font-family: var(--fx-mono);
    font-size: 8px !important;
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.v2-hero {
    position: relative;
    min-height: 316px;
    border-bottom: 1px solid var(--fx-line);
    background:
        linear-gradient(90deg, rgba(7, 10, 13, .98) 0%, rgba(9, 13, 17, .94) 48%, rgba(16, 10, 12, .90) 100%);
    isolation: isolate;
}

.v2-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(242, 31, 43, .13) 50%, transparent 50.2%),
        radial-gradient(circle at 77% 52%, rgba(242, 31, 43, .17), transparent 26%);
    pointer-events: none;
    z-index: -1;
}

.v2-hero-grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(151, 169, 181, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(151, 169, 181, .08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.8), transparent 78%);
    pointer-events: none;
}

.v2-hero-inner {
    min-height: 316px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
    align-items: stretch;
    gap: 26px;
}

.v2-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 0 30px;
    position: relative;
    z-index: 2;
}

.v2-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a8b4bc;
    margin-bottom: 12px;
}

.v2-kicker i {
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: var(--fx-red);
    box-shadow: 0 0 12px rgba(242, 31, 43, .52);
}

.v2-hero-copy h1 {
    max-width: 360px;
    margin-bottom: 9px;
    text-transform: none;
}

.v2-hero-copy > p {
    max-width: 465px;
    color: #aebbc3;
}

.v2-hero-assurance {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius-sm);
    overflow: hidden;
    background: rgba(10, 15, 19, .68);
}

.v2-hero-assurance > div {
    min-height: 55px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-right: 1px solid var(--fx-line-soft);
}

.v2-hero-assurance > div:last-child { border-right: 0; }
.v2-hero-assurance svg { width: 17px; height: 17px; color: #dfe6ea; flex: 0 0 auto; }
.v2-hero-assurance span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2-hero-assurance strong { color: var(--fx-text); font-size: 9px; font-weight: 500; white-space: nowrap; }
.v2-hero-assurance small { color: var(--fx-text-muted); font-size: 8px !important; white-space: nowrap; }

.v2-hero-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-hero-visual::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 6%;
    top: 10%;
    bottom: 4%;
    background:
        linear-gradient(125deg, transparent 42%, rgba(242, 31, 43, .18) 42.4%, transparent 43%),
        radial-gradient(circle at 58% 51%, rgba(242, 31, 43, .19), transparent 35%);
    border-left: 1px solid rgba(242, 31, 43, .18);
    pointer-events: none;
}

.v2-hero-visual img {
    width: min(650px, 104%);
    max-width: none;
    transform: translate(4%, 4%) scale(1.05);
    filter: grayscale(.55) sepia(.16) hue-rotate(300deg) saturate(1.35) brightness(.64) contrast(1.22);
    opacity: .92;
    mix-blend-mode: screen;
    mask-image: linear-gradient(90deg, transparent 1%, #000 18%, #000 85%, transparent 100%);
}

.v2-signal-ring {
    position: absolute;
    left: 50%;
    top: 63%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(242, 31, 43, .26);
    border-radius: 50%;
    pointer-events: none;
}

.ring-one { width: 520px; height: 150px; }
.ring-two { width: 640px; height: 210px; opacity: .42; }

.v2-visual-status {
    position: absolute;
    right: 18px;
    top: 24px;
    width: 154px;
    padding: 8px 10px;
    border: 1px solid rgba(151, 169, 181, .16);
    border-left-color: rgba(242, 31, 43, .5);
    background: rgba(7, 11, 14, .66);
    backdrop-filter: blur(8px);
}

.v2-visual-status span,
.v2-visual-status strong {
    display: block;
    font-family: var(--fx-mono);
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: .12em;
}

.v2-visual-status span { color: var(--fx-text-muted); margin-bottom: 3px; }
.v2-visual-status strong { color: #d9e0e4; }

.v2-control-wrap {
    position: relative;
    z-index: 4;
    margin-top: -34px;
    scroll-margin-top: 96px;
}

.v2-control-panel {
    border: 1px solid #2d3941;
    border-radius: var(--fx-radius);
    background: linear-gradient(180deg, rgba(16, 24, 30, .985), rgba(10, 16, 20, .99));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
    overflow: hidden;
}

.v2-control-tabs {
    min-height: 45px;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--fx-line);
    background: rgba(5, 9, 12, .50);
}

.v2-control-tab {
    position: relative;
    min-width: 155px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    color: #a9b5bc;
    border-right: 1px solid var(--fx-line);
    font-size: 10px !important;
    font-weight: 500;
    background: transparent;
}

.v2-control-tab svg { width: 16px; height: 16px; }
.v2-control-tab:hover { color: #fff; background: rgba(255,255,255,.018); }
.v2-control-tab.is-active { color: #fff; background: rgba(242,31,43,.055); }
.v2-control-tab.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 2px;
    background: var(--fx-red);
}

.v2-find-link {
    margin-left: auto;
    min-width: 175px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 0 15px;
    color: #8f9da6;
    font-size: 9px !important;
}
.v2-find-link svg { width: 13px; height: 13px; }
.v2-find-link:hover { color: #fff; }

.v2-control-content { padding: 19px 20px 16px; }
.v2-control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.v2-section-code { display: block; color: #7f909b; margin-bottom: 5px; }
.v2-control-heading h2 { margin-bottom: 4px; }
.v2-control-heading p { max-width: 630px; color: #9cacb5; }

.v2-live-indicator {
    flex: 0 0 auto;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid rgba(53,201,138,.18);
    border-radius: var(--fx-radius-xs);
    background: rgba(53,201,138,.055);
    color: #a7d9c4;
    font-family: var(--fx-mono);
    font-size: 8px !important;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.v2-live-indicator i { width: 5px; height: 5px; border-radius: 50%; background: var(--fx-green); box-shadow: 0 0 8px rgba(53,201,138,.48); }

.v2-selected-service {
    margin-bottom: 11px;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px 5px 10px;
    border: 1px solid rgba(242,31,43,.18);
    border-left: 2px solid var(--fx-red);
    background: rgba(242,31,43,.045);
    border-radius: var(--fx-radius-xs);
}
.v2-selected-service span { color: #8f9da6; font-size: 9px; }
.v2-selected-service strong { color: #e8eef1; font-size: 10px; font-weight: 500; }
.v2-selected-service button { margin-left: auto; color: #8998a1; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 4px; }
.v2-selected-service button:hover { color: #fff; background: rgba(255,255,255,.04); }
.v2-selected-service button svg { width: 13px; height: 13px; }

.v2-device-form > label { display: block; margin-bottom: 7px; color: #dfe5e9; font-size: 10px; font-weight: 500; }
.v2-device-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 9px; }
.v2-serial-input {
    min-height: 43px;
    display: flex;
    align-items: center;
    border: 1px solid #2d3a43;
    border-radius: var(--fx-radius-sm);
    background: #0a1015;
    overflow: hidden;
    transition: border-color var(--fx-transition), box-shadow var(--fx-transition);
}
.v2-serial-input:focus-within { border-color: rgba(242,31,43,.64); box-shadow: 0 0 0 3px rgba(242,31,43,.07); }
.v2-serial-input > span { width: 44px; align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--fx-line); color: #8697a2; }
.v2-serial-input svg { width: 16px; height: 16px; }
.v2-serial-input input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 0; outline: 0; background: transparent; color: #edf2f5; font-size: 11px !important; }
.v2-serial-input input::placeholder { color: #667782; }

.v2-secondary-btn,
.v2-primary-btn {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border-radius: var(--fx-radius-sm);
    font-size: 10px !important;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--fx-transition);
}
.v2-secondary-btn { border: 1px solid #2d3a43; background: #111a20; color: #d0d8dd; }
.v2-secondary-btn:hover { border-color: #43545f; background: #162129; color: #fff; }
.v2-primary-btn { min-width: 138px; border: 1px solid #ff3c47; background: linear-gradient(180deg, #f62934, #d8131e); color: #fff; box-shadow: 0 8px 20px rgba(242,31,43,.13); }
.v2-primary-btn:hover { background: linear-gradient(180deg, #ff3540, #e41622); border-color: #ff6068; }
.v2-primary-btn:disabled { opacity: .65; cursor: wait; }
.v2-secondary-btn svg, .v2-primary-btn svg { width: 16px; height: 16px; }

.v2-control-meta {
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #82929d;
}
.v2-control-meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; }
.v2-control-meta svg { width: 14px; height: 14px; color: var(--fx-green); }
.v2-mono { color: #667783; white-space: nowrap; }

.v2-result-section { margin-top: 10px !important; }
.v2-result-section .home-result.show {
    margin: 0;
    border: 1px solid #29363f;
    border-radius: var(--fx-radius);
    background: linear-gradient(180deg, #11191f, #0b1116);
    box-shadow: var(--fx-shadow-soft);
}
.v2-result-section .home-result-title { font-size: 11px !important; font-weight: 500; }
.v2-result-section .home-info span { font-family: var(--fx-mono); font-size: 8px !important; letter-spacing: .08em; text-transform: uppercase; color: #71828e; }
.v2-result-section .home-info strong { font-size: 10px !important; font-weight: 500; }
.v2-result-section .home-btn { font-size: 10px !important; border-radius: var(--fx-radius-sm); }

.v2-section { padding: 42px 0 0; scroll-margin-top: 86px; }
.v2-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.v2-section-head.compact { align-items: flex-start; }
.v2-section-head h2 { margin-bottom: 4px; }
.v2-section-head p { max-width: 620px; color: #8f9da7; }

.v2-service-search {
    width: min(320px, 100%);
    min-height: 37px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius-sm);
    background: #0a1014;
}
.v2-service-search:focus-within { border-color: #44545e; }
.v2-service-search svg { width: 14px; height: 14px; color: #687983; }
.v2-service-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e5ebee; font-size: 10px !important; }
.v2-service-search input::placeholder { color: #687983; }

.v2-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v2-service-card {
    min-height: 184px;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid #26343d;
    border-radius: var(--fx-radius);
    background:
        linear-gradient(135deg, rgba(242,31,43,.025), transparent 38%),
        linear-gradient(180deg, #10181e, #0b1116);
    position: relative;
    overflow: hidden;
    transition: transform var(--fx-transition), border-color var(--fx-transition), background var(--fx-transition);
}
.v2-service-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 92px; height: 92px; border: 1px solid rgba(151,169,181,.06); transform: rotate(45deg); }
.v2-service-card:hover { transform: translateY(-2px); border-color: #3b4a54; background: linear-gradient(180deg, #121c23, #0c1318); }
.v2-service-card.is-filtered-out { display: none; }
.v2-service-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid rgba(242,31,43,.24); border-radius: 6px; background: rgba(242,31,43,.06); color: #ee4b54; }
.v2-service-icon svg { width: 17px; height: 17px; }
.v2-service-body { flex: 1; position: relative; z-index: 1; }
.v2-service-body > span { display: block; margin-bottom: 4px; color: #6f818d; font-family: var(--fx-mono); font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; }
.v2-service-body h3 { margin-bottom: 6px; }
.v2-service-body p { color: #93a1aa; font-size: 9.5px !important; }
.v2-service-action { text-decoration:none; position: relative; z-index: 2; width: fit-content; display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: #d6dfe4; font-size: 9px !important; font-weight: 500; }
.v2-service-action:hover { color: #ff5b64; }
.v2-service-action svg { width: 12px; height: 12px; }

.v2-no-services { margin-top: 10px; padding: 12px; border: 1px dashed #34434d; border-radius: var(--fx-radius-sm); color: #84949e; font-size: 10px; }
.v2-no-services a { margin-left: 8px; color: #e5ebee; text-decoration: underline; text-underline-offset: 3px; }

.v2-catalog-note {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid #25323a;
    border-left: 2px solid #566872;
    border-radius: var(--fx-radius-sm);
    background: rgba(15,22,27,.68);
}
.v2-catalog-note > div:first-child { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #2e3a42; border-radius: 5px; color: #8fa0aa; }
.v2-catalog-note svg { width: 16px; height: 16px; }
.v2-catalog-note strong { display: block; color: #d9e0e4; font-size: 9px; font-weight: 500; margin-bottom: 2px; }
.v2-catalog-note p { font-size: 9px !important; color: #7f8f99; }

.v2-process-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #25323a; border-radius: var(--fx-radius); overflow: hidden; background: #0c1217; }
.v2-process-grid article { min-height: 142px; position: relative; padding: 16px 14px 14px; border-right: 1px solid #25323a; }
.v2-process-grid article:last-child { border-right: 0; }
.v2-step-number { position: absolute; right: 10px; top: 9px; font-family: var(--fx-mono); font-size: 8px; color: #596a75; letter-spacing: .08em; }
.v2-step-icon { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 12px; border: 1px solid rgba(242,31,43,.22); border-radius: 50%; color: #f24b55; background: rgba(242,31,43,.045); }
.v2-step-icon svg { width: 15px; height: 15px; }
.v2-process-grid h3 { margin-bottom: 5px; }
.v2-process-grid p { font-size: 9px !important; color: #83939d; }

.v2-find-panel {
    display: grid;
    grid-template-columns: .74fr 1.26fr;
    gap: 20px;
    padding: 19px;
    border: 1px solid #29363e;
    border-radius: var(--fx-radius);
    background:
        linear-gradient(110deg, rgba(242,31,43,.035), transparent 32%),
        linear-gradient(180deg, #10171c, #0a1014);
    overflow: hidden;
}
.v2-find-copy { padding: 6px 10px 6px 2px; align-self: center; }
.v2-find-copy h2 { margin-bottom: 6px; }
.v2-find-copy p { max-width: 390px; color: #92a1aa; }
.v2-outline-link { width: fit-content; min-height: 34px; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0 11px; border: 1px solid #34434c; border-radius: 5px; color: #dfe6ea; font-size: 9px !important; }
.v2-outline-link:hover { border-color: #52636d; background: rgba(255,255,255,.02); }
.v2-outline-link svg { width: 12px; height: 12px; }
.v2-find-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.v2-find-card { min-height: 176px; padding: 11px; border: 1px solid #26333c; border-radius: var(--fx-radius-sm); background: rgba(8,13,17,.68); display: flex; flex-direction: column; }
.v2-find-thumb { height: 62px; overflow: hidden; border: 1px solid #283741; border-radius: 4px; margin-bottom: 9px; background: #080d11; }
.v2-find-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) contrast(1.05); }
.v2-find-graphic { height: 62px; display: grid; place-items: center; margin-bottom: 9px; border: 1px solid #27343d; border-radius: 4px; color: #9aabb5; background: linear-gradient(145deg, #111a20, #090f13); }
.v2-find-graphic svg { width: 23px; height: 23px; }
.v2-find-card > span { color: #697b87; font-family: var(--fx-mono); font-size: 7.5px; text-transform: uppercase; letter-spacing: .09em; }
.v2-find-card h3 { margin: 4px 0; }
.v2-find-card p { font-size: 8.7px !important; color: #84949e; }
.v2-find-card button { width: fit-content; display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 8px; color: #e1e8ec; font-size: 8.5px !important; }
.v2-find-card button:hover { color: #ff5963; }
.v2-find-card button svg { width: 11px; height: 11px; }

/* Keep existing OCR/preview system aligned with Phase 2 styling. */
.home-ocr-box,
.home-preview-box { border-radius: var(--fx-radius) !important; border-color: #33424c !important; background: #0d1419 !important; }
.home-ocr-box strong,
.scan-status h3 { font-size: 11px !important; font-weight: 500 !important; }
.home-ocr-box span,
.scan-status p { font-size: 9px !important; }
.home-preview-close { background: rgba(7,10,13,.86) !important; border: 1px solid #34434d !important; }

@media (max-width: 1000px) {
    .v2-hero-inner { grid-template-columns: 1fr .9fr; }
    .v2-hero-assurance { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .v2-hero-assurance > div:nth-child(2) { border-right: 0; }
    .v2-hero-assurance > div:nth-child(-n+2) { border-bottom: 1px solid var(--fx-line-soft); }
    .v2-service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .v2-find-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .home-v2-main { padding-bottom: 32px !important; }
    .v2-hero { min-height: 0; }
    .v2-hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 0; padding-top: 20px !important; }
    .v2-hero-copy { padding: 14px 0 11px; }
    .v2-hero-copy > p { max-width: none; }
    .v2-hero-assurance { margin-top: 16px; }
    .v2-hero-visual { min-height: 176px; margin-top: 4px; }
    .v2-hero-visual img { width: 118%; transform: translate(4%, 4%) scale(1.12); }
    .v2-visual-status { right: 4px; top: 8px; width: 142px; }
    .ring-one { width: 360px; height: 100px; }
    .ring-two { width: 440px; height: 142px; }

    .v2-control-wrap { margin-top: -18px; }
    .v2-control-tabs { display: grid; grid-template-columns: 1fr 1fr; min-height: 42px; }
    .v2-control-tab { min-width: 0; padding: 0 8px; border-right: 1px solid var(--fx-line); }
    .v2-find-link { grid-column: 1 / -1; min-height: 31px; justify-content: center; border-top: 1px solid var(--fx-line); padding: 0 8px; }
    .v2-control-tab.is-active::after { left: 8px; right: 8px; }
    .v2-control-content { padding: 15px 13px 12px; }
    .v2-control-heading { margin-bottom: 12px; }
    .v2-live-indicator { display: none; }
    .v2-device-row { grid-template-columns: 1fr 1fr; }
    .v2-serial-input { grid-column: 1 / -1; }
    .v2-primary-btn, .v2-secondary-btn { width: 100%; min-width: 0; padding: 0 9px; }
    .v2-control-meta { align-items: flex-start; flex-direction: column; }
    .v2-mono { display: none; }

    .v2-section { padding-top: 30px; }
    .v2-section-head { align-items: stretch; flex-direction: column; gap: 11px; margin-bottom: 12px; }
    .v2-service-search { width: 100%; }
    .v2-service-grid { grid-template-columns: 1fr; }
    .v2-service-card { min-height: 154px; }
    .v2-process-grid { grid-template-columns: 1fr 1fr; }
    .v2-process-grid article:nth-child(2) { border-right: 0; }
    .v2-process-grid article:nth-child(-n+2) { border-bottom: 1px solid #25323a; }
    .v2-find-panel { padding: 14px; }
    .v2-find-methods { grid-template-columns: 1fr; }
    .v2-find-card { min-height: 145px; }
}

@media (max-width: 430px) {
    .v2-hero-assurance { grid-template-columns: 1fr; }
    .v2-hero-assurance > div { border-right: 0 !important; border-bottom: 1px solid var(--fx-line-soft); }
    .v2-hero-assurance > div:last-child { border-bottom: 0; }
    .v2-device-row { grid-template-columns: 1fr; }
    .v2-secondary-btn, .v2-primary-btn, .v2-serial-input { grid-column: 1; }
    .v2-process-grid { grid-template-columns: 1fr; }
    .v2-process-grid article { border-right: 0; border-bottom: 1px solid #25323a; }
    .v2-process-grid article:last-child { border-bottom: 0; }
}

/* Phase 4: service logo rendering */
.v2-service-icon.has-service-logo{background:#0a1116;border-color:#2b3942;overflow:hidden}.v2-service-icon.has-service-logo img{width:100%;height:100%;object-fit:contain;padding:7px;box-sizing:border-box;display:block}

/* =========================================================
   Phase 5 homepage cleanup
   ========================================================= */
.home-v2-body .v2-hero{min-height:250px!important}
.home-v2-body .v2-hero-inner{min-height:250px!important}
.home-v2-body .v2-hero-copy{padding:30px 0!important}
.home-v2-body .v2-hero-assurance{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.home-v2-body .v2-control-wrap{margin-top:-1px!important}
.home-v2-body .v2-control-content{padding-top:14px!important}
.home-v2-body .v2-section{padding-top:30px!important;padding-bottom:30px!important}
.home-v2-body .v2-catalog-note{padding:10px 12px!important}
.home-v2-body .v2-catalog-note p{margin-top:2px!important}
.home-v2-body .v2-process-grid article{min-height:112px!important}
.home-v2-body .v2-find-panel{padding:14px!important}
@media(max-width:820px){
  .home-v2-body .v2-hero-assurance{grid-template-columns:1fr!important}
}

/* =========================================================
   Phase 6.2 homepage service-card compact redesign
   ========================================================= */
.home-v2-body .v2-services .v2-section-head{margin-bottom:12px!important}
.home-v2-body .v2-service-grid{gap:12px!important}
.home-v2-body .v2-service-card{
  min-height:168px!important;
  padding:12px!important;
  border-color:#293741!important;
  background:linear-gradient(180deg,#0f171d,#0b1116)!important;
}
.home-v2-body .v2-service-card::after{display:none!important}
.home-v2-body .v2-service-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px;position:relative;z-index:1}
.home-v2-body .v2-service-icon{
  width:46px!important;
  height:46px!important;
  min-width:46px;
  margin:0!important;
  border-radius:8px!important;
  background:rgba(242,31,43,.08)!important;
}
.home-v2-body .v2-service-icon svg{width:20px!important;height:20px!important}
.home-v2-body .v2-service-icon.has-service-logo img{padding:5px!important}
.home-v2-body .v2-service-title{min-width:0;display:flex;flex-direction:column;gap:3px;padding-top:1px}
.home-v2-body .v2-service-title > span{display:block;color:#71828d;font-family:var(--fx-mono);font-size:7.5px!important;letter-spacing:.08em;text-transform:uppercase}
.home-v2-body .v2-service-title h3{margin:0!important;line-height:1.35!important}
.home-v2-body .v2-service-body{display:flex;flex:1;position:relative;z-index:1}
.home-v2-body .v2-service-body p{
  margin:0!important;
  color:#91a0a9!important;
  font-size:9.3px!important;
  line-height:1.55!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-v2-body .v2-service-action{
  width:100%;
  justify-content:space-between;
  min-height:34px;
  margin-top:11px!important;
  padding:0 11px;
  border:1px solid #2e3b45;
  border-radius:7px;
  background:#0d1419;
  color:#e5ecef!important;
  font-size:9px!important;
}
.home-v2-body .v2-service-action:hover{border-color:#485862;background:#101920;color:#ff6068!important}
.home-v2-body .v2-service-action svg{width:13px!important;height:13px!important}
.home-v2-body .v2-catalog-note{margin-top:12px!important}
@media(max-width:960px){
  .home-v2-body .v2-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .home-v2-body .v2-service-grid{grid-template-columns:1fr!important;gap:10px!important}
  .home-v2-body .v2-service-card{min-height:auto!important;padding:11px!important}
  .home-v2-body .v2-service-head{gap:9px!important;margin-bottom:9px!important}
  .home-v2-body .v2-service-icon{width:42px!important;height:42px!important;min-width:42px!important}
  .home-v2-body .v2-service-body p{-webkit-line-clamp:3}
  .home-v2-body .v2-service-action{min-height:33px!important;padding:0 10px!important}
}

/* =========================================================
   Phase 7 public Device Check + scanner reset
   ========================================================= */
.home-v2-body #validationResult.v3-check-result{
  max-width:none!important;
  width:100%!important;
  margin:18px 0 0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.home-v2-body .v3-result-shell{
  border:1px solid #26343d;
  border-radius:10px;
  background:linear-gradient(180deg,#0d151a,#091015);
  overflow:hidden;
}
.home-v2-body .v3-result-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:16px 17px 14px;
  border-bottom:1px solid #25323a;
}
.home-v2-body .v3-result-kicker{
  display:block;
  margin-bottom:4px;
  color:#62d39b;
  font-family:var(--fx-mono);
  font-size:7.5px!important;
  letter-spacing:.12em;
}
.home-v2-body .v3-result-header h3{margin:0 0 4px!important;font-size:13px!important;font-weight:600!important}
.home-v2-body .v3-result-header p{margin:0!important;max-width:650px;color:#8f9da7;font-size:9.5px!important;line-height:1.55!important}
.home-v2-body .v3-result-serial{
  min-width:190px;
  padding:9px 11px;
  border:1px solid #283640;
  border-radius:7px;
  background:#0a1116;
}
.home-v2-body .v3-result-serial span{display:block;color:#70828e;font-family:var(--fx-mono);font-size:7px!important;letter-spacing:.09em;text-transform:uppercase}
.home-v2-body .v3-result-serial strong{display:block;margin-top:3px;color:#eef3f5;font-family:var(--fx-mono);font-size:10px!important;font-weight:500!important}
.home-v2-body .v3-result-summary{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border-bottom:1px solid #25323a;
  background:#0a1116;
}
.home-v2-body .v3-result-summary>div{padding:10px 12px;border-right:1px solid #25323a}
.home-v2-body .v3-result-summary>div:last-child{border-right:0}
.home-v2-body .v3-result-summary span{display:block;color:#71838f;font-size:8px!important}
.home-v2-body .v3-result-summary strong{display:block;margin-top:3px;color:#e8eef1;font-size:11px!important;font-weight:600!important}
.home-v2-body .v3-result-legend{display:flex;flex-wrap:wrap;gap:14px;padding:10px 16px;border-bottom:1px solid #25323a;color:#81919a;font-size:8.5px!important}
.home-v2-body .v3-result-legend span{display:inline-flex;align-items:center;gap:6px}
.home-v2-body .v3-result-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}
.home-v2-body .v3-result-legend i.expired{background:#ef3f49}.home-v2-body .v3-result-legend i.active{background:#28c879}.home-v2-body .v3-result-legend i.never{background:#5e8fe9}
.home-v2-body .v3-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
.home-v2-body .v3-service-card{
  min-width:0;
  padding:12px;
  border:1px solid #283640;
  border-radius:8px;
  background:#0c1419;
}
.home-v2-body .v3-service-card.status-expired{border-color:rgba(239,63,73,.4);background:linear-gradient(180deg,rgba(239,63,73,.045),#0c1419 42%)}
.home-v2-body .v3-service-card-head{display:flex;align-items:center;gap:9px}
.home-v2-body .v3-service-logo{width:36px;height:36px;min-width:36px;display:grid;place-items:center;border:1px solid #2b3942;border-radius:7px;background:#091015;color:#dce6eb;font-size:11px!important;font-weight:600;overflow:hidden}
.home-v2-body .v3-service-logo img{width:100%;height:100%;display:block;object-fit:contain;padding:4px;box-sizing:border-box}
.home-v2-body .v3-service-name{min-width:0;flex:1}
.home-v2-body .v3-service-name>span{display:block;color:#6e818d;font-family:var(--fx-mono);font-size:7px!important;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-v2-body .v3-service-name h4{margin:2px 0 0!important;color:#edf2f4;font-size:10.5px!important;font-weight:600!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-v2-body .v3-status-badge{min-height:24px;display:inline-flex;align-items:center;padding:0 8px;border-radius:999px;font-size:8px!important;font-weight:600!important;white-space:nowrap}
.home-v2-body .v3-status-badge.expired{background:rgba(239,63,73,.14);color:#ff6770;border:1px solid rgba(239,63,73,.28)}
.home-v2-body .v3-status-badge.active{background:rgba(40,200,121,.12);color:#5cdda0;border:1px solid rgba(40,200,121,.24)}
.home-v2-body .v3-status-badge.never{background:rgba(94,143,233,.12);color:#7ba6f2;border:1px solid rgba(94,143,233,.24)}
.home-v2-body .v3-status-badge.info{background:#141e25;color:#a8b5bc;border:1px solid #2d3a43}
.home-v2-body .v3-service-meta{margin-top:10px;color:#b7c2c8;font-size:9px!important}
.home-v2-body .v3-service-description{margin:5px 0 0!important;color:#788a95!important;font-size:8.5px!important;line-height:1.5!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-v2-body .v3-plan-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:11px}
.home-v2-body .v3-plan-option{display:block;cursor:pointer}
.home-v2-body .v3-plan-option input{position:absolute;opacity:0;pointer-events:none}
.home-v2-body .v3-plan-option>span{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid #2d3b44;border-radius:6px;background:#091015;transition:.15s ease}
.home-v2-body .v3-plan-option strong{color:#dfe7eb;font-size:8.5px!important;font-weight:600!important}
.home-v2-body .v3-plan-option small{color:#8ea0aa;font-size:7.8px!important;white-space:nowrap}
.home-v2-body .v3-plan-option input:checked+span{border-color:#e33a44;background:rgba(227,58,68,.08);box-shadow:inset 2px 0 #ef3f49}
.home-v2-body .v3-renew-btn{width:100%;min-height:34px;margin-top:8px;border:1px solid #f02d39;border-radius:6px;background:#ef2733;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 11px;font-size:9px!important;font-weight:600!important;cursor:pointer}
.home-v2-body .v3-renew-btn:hover{background:#ff3540}
.home-v2-body .v3-price-request{margin-top:10px;padding:9px 10px;border:1px solid #433033;border-radius:6px;background:#151013;display:flex;align-items:center;justify-content:space-between;gap:10px}
.home-v2-body .v3-price-request span{color:#9da8ae;font-size:8.5px!important}
.home-v2-body .v3-price-request a{color:#ff626b;text-decoration:none;font-size:8.5px!important;font-weight:600}
.home-v2-body .v3-info-only{margin-top:10px;padding:9px 10px;border:1px solid #283740;border-radius:6px;background:#091015;color:#82939d;font-size:8.5px!important}
.home-v2-body .v3-info-only.active{border-color:rgba(40,200,121,.2);color:#7fc4a1}.home-v2-body .v3-info-only.never{border-color:rgba(94,143,233,.2);color:#8ca9d9}
.home-v2-body .v3-result-footnote{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #25323a;background:#091015;color:#758792;font-size:8px!important}
.home-v2-body .v3-result-footnote a{color:#c6d1d7;text-decoration:none}.home-v2-body .v3-result-footnote a:hover{color:#ff6068}
.home-v2-body .v3-empty-services{grid-column:1/-1;padding:14px;border:1px dashed #31404a;border-radius:7px;color:#81919a;font-size:9px!important;text-align:center}

/* Scanner now matches the graphite/red service UI. */
.home-v2-body .home-ocr-loading,.home-v2-body .home-preview{background:rgba(3,7,10,.86)!important;backdrop-filter:blur(7px)}
.home-v2-body .home-ocr-box,.home-v2-body .home-preview-box{border:1px solid #33414a!important;border-radius:10px!important;background:#0b1318!important;box-shadow:0 24px 70px rgba(0,0,0,.45)!important}
.home-v2-body .home-ocr-box strong,.home-v2-body .scan-status h3{font-size:11px!important;font-weight:600!important;color:#edf3f5!important}
.home-v2-body .home-ocr-box span,.home-v2-body .scan-status p{font-size:8.5px!important;color:#82939d!important}
.home-v2-body .home-ocr-spinner,.home-v2-body .scan-spinner{border-color:#26343d!important;border-top-color:#ef3340!important}
.home-v2-body .home-preview-close{background:#10191f!important;border:1px solid #34434d!important;color:#e7eef1!important}
.home-v2-body .scan-line{background:linear-gradient(90deg,transparent,#f02f3b,transparent)!important;box-shadow:0 0 14px rgba(240,47,59,.6)!important}
.home-v2-body .scan-corner{border-color:#ef3340!important}

@media(max-width:820px){
  .home-v2-body .v3-result-header{flex-direction:column;padding:13px}
  .home-v2-body .v3-result-serial{width:100%;min-width:0}
  .home-v2-body .v3-result-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-v2-body .v3-result-summary>div{border-bottom:1px solid #25323a}
  .home-v2-body .v3-result-summary>div:nth-child(2n){border-right:0}
  .home-v2-body .v3-result-summary>div:last-child{grid-column:1/-1;border-bottom:0}
  .home-v2-body .v3-services-grid{grid-template-columns:1fr;padding:10px}
  .home-v2-body .v3-result-footnote{align-items:flex-start;flex-direction:column}
}
@media(max-width:430px){
  .home-v2-body .v3-service-card{padding:10px}
  .home-v2-body .v3-service-card-head{align-items:flex-start}
  .home-v2-body .v3-status-badge{margin-left:auto}
  .home-v2-body .v3-plan-list{grid-template-columns:1fr}
  .home-v2-body .v3-result-legend{flex-direction:column;gap:7px}
}

/* =========================================================
   Phase 8 last checked receiver reminder
   ========================================================= */
.home-v2-body .v3-last-check{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  padding:9px 10px;
  border:1px solid #2b3942;
  border-radius:7px;
  background:linear-gradient(180deg,#0c1419,#091015);
}
.home-v2-body .v3-last-check[hidden]{display:none!important}
.home-v2-body .v3-last-check-icon{
  width:30px;
  height:30px;
  min-width:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(239,51,64,.24);
  border-radius:6px;
  background:rgba(239,51,64,.06);
  color:#f0545e;
  font-size:14px!important;
}
.home-v2-body .v3-last-check-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.home-v2-body .v3-last-check-copy>span{color:#71838e;font-family:var(--fx-mono);font-size:7px!important;letter-spacing:.09em}
.home-v2-body .v3-last-check-copy>strong{color:#e8eef1;font-size:9.5px!important;font-weight:600!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-v2-body .v3-last-check-copy>small{color:#788b96;font-size:8px!important}
.home-v2-body .v3-last-check-copy>small b{color:#aebbc2;font-family:var(--fx-mono);font-weight:500!important}
.home-v2-body .v3-last-check-actions{display:flex;align-items:center;gap:6px}
.home-v2-body .v3-last-check-actions button{
  min-height:30px;
  padding:0 10px;
  border:1px solid #384751;
  border-radius:6px;
  background:#10191f;
  color:#dfe7eb;
  font-size:8.5px!important;
  font-weight:600!important;
  cursor:pointer;
}
.home-v2-body .v3-last-check-actions button:hover{border-color:#8a323a;color:#fff}
.home-v2-body .v3-last-check-actions .is-clear{width:30px;padding:0;color:#84959e;font-size:14px!important;font-weight:400!important}
@media(max-width:620px){
  .home-v2-body .v3-last-check{align-items:flex-start;flex-wrap:wrap}
  .home-v2-body .v3-last-check-copy{min-width:calc(100% - 44px)}
  .home-v2-body .v3-last-check-actions{width:100%;padding-left:40px}
  .home-v2-body .v3-last-check-actions button:first-child{flex:1}
}

/* =========================================================
   Phase 10 mobile-first final polish
   Homepage controls / serial guide / overflow resilience
   ========================================================= */
.home-v2-body,.home-v2-page,.home-v2-main{overflow-x:hidden!important}
.home-v2-body .home-container,.home-v2-body .v2-control-panel,.home-v2-body .v2-find-panel,.home-v2-body .v2-service-card{min-width:0!important}
.home-v2-body .v2-service-title h3,.home-v2-body .v2-service-body p,.home-v2-body .v2-find-card p{overflow-wrap:anywhere!important}

@media(max-width:620px){
  .home-v2-body .home-container{padding-left:12px!important;padding-right:12px!important}
  .home-v2-body .v2-hero-inner{padding-top:12px!important}
  .home-v2-body .v2-hero-copy{padding:12px 0 9px!important}
  .home-v2-body .v2-hero-assurance{margin-top:10px!important}
  .home-v2-body .v2-hero-visual{min-height:148px!important}
  .home-v2-body .v2-control-wrap{margin-top:0!important}

  .home-v2-body .v2-control-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:42px 34px!important;
    min-height:76px!important;
    height:auto!important;
    overflow:hidden!important;
  }
  .home-v2-body .v2-control-tab{
    min-width:0!important;
    width:100%!important;
    padding:0 7px!important;
    justify-content:center!important;
    font-size:9px!important;
  }
  .home-v2-body .v2-control-tab span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .home-v2-body .v2-find-link{
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%!important;
    min-height:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    padding:0 8px!important;
    border-top:1px solid var(--fx-line)!important;
    white-space:nowrap!important;
    font-size:8.5px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .home-v2-body .v2-control-content{padding:12px 10px 10px!important}
  .home-v2-body .v2-control-heading{margin-bottom:10px!important}
  .home-v2-body .v2-control-heading h2{font-size:11px!important}
  .home-v2-body .v2-control-heading p{font-size:8.5px!important;line-height:1.5!important}
  .home-v2-body .v2-device-row{grid-template-columns:1fr!important;gap:8px!important}
  .home-v2-body .v2-serial-input,.home-v2-body .v2-secondary-btn,.home-v2-body .v2-primary-btn{grid-column:1!important;width:100%!important}
  .home-v2-body .v2-serial-input input{height:40px!important}
  .home-v2-body .v2-secondary-btn,.home-v2-body .v2-primary-btn{min-height:40px!important}
  .home-v2-body .v2-control-meta{gap:5px!important;padding-top:8px!important}

  .home-v2-body .v2-section{padding-top:22px!important;padding-bottom:22px!important}
  .home-v2-body .v2-section-head{gap:8px!important;margin-bottom:9px!important}
  .home-v2-body .v2-service-search{height:38px!important}
  .home-v2-body .v2-service-grid{gap:8px!important}
  .home-v2-body .v2-service-card{padding:10px!important}
  .home-v2-body .v2-service-action{min-height:36px!important}

  .home-v2-body .v2-process-grid{grid-template-columns:1fr!important;gap:0!important}
  .home-v2-body .v2-process-grid article{min-height:auto!important;padding:11px!important;border-right:0!important;border-bottom:1px solid #25323a!important}
  .home-v2-body .v2-process-grid article:last-child{border-bottom:0!important}

  .home-v2-body .v2-find-panel{padding:10px!important;gap:10px!important}
  .home-v2-body .v2-find-copy{padding:0!important}
  .home-v2-body .v2-find-copy p{font-size:8.7px!important;line-height:1.5!important}
  .home-v2-body .v2-outline-link{min-height:34px!important;margin-top:10px!important}
  .home-v2-body .v2-find-methods{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .home-v2-body .v2-find-card{
    min-height:0!important;
    display:grid!important;
    grid-template-columns:84px minmax(0,1fr)!important;
    grid-template-rows:auto auto 1fr auto!important;
    column-gap:10px!important;
    row-gap:2px!important;
    padding:9px!important;
    align-items:start!important;
  }
  .home-v2-body .v2-find-thumb,.home-v2-body .v2-find-graphic{
    grid-column:1!important;
    grid-row:1/5!important;
    width:84px!important;
    height:66px!important;
    min-height:66px!important;
    margin:0!important;
    align-self:start!important;
  }
  .home-v2-body .v2-find-thumb img{object-fit:cover!important}
  .home-v2-body .v2-find-card>span,.home-v2-body .v2-find-card h3,.home-v2-body .v2-find-card p,.home-v2-body .v2-find-card button{grid-column:2!important;min-width:0!important}
  .home-v2-body .v2-find-card>span{grid-row:1!important}
  .home-v2-body .v2-find-card h3{grid-row:2!important;margin:2px 0!important;font-size:9.5px!important}
  .home-v2-body .v2-find-card p{grid-row:3!important;margin:0!important;font-size:8px!important;line-height:1.42!important}
  .home-v2-body .v2-find-card button{grid-row:4!important;margin:3px 0 0!important;padding:0!important;min-height:24px!important}

  .home-v2-body .v3-last-check{padding:8px!important;gap:8px!important}
  .home-v2-body .v3-last-check-actions{padding-left:38px!important}
  .home-v2-body #validationResult.v3-check-result{margin-top:10px!important}
  .home-v2-body .v3-result-header{padding:10px!important;gap:9px!important}
  .home-v2-body .v3-result-summary>div{padding:8px 9px!important}
  .home-v2-body .v3-services-grid{padding:8px!important;gap:8px!important}
  .home-v2-body .v3-service-card{padding:9px!important}
}

@media(max-width:390px){
  .home-v2-body .home-container{padding-left:10px!important;padding-right:10px!important}
  .home-v2-body .v2-control-tab{font-size:8.4px!important}
  .home-v2-body .v2-find-link{font-size:8px!important}
  .home-v2-body .v2-find-card{grid-template-columns:74px minmax(0,1fr)!important;column-gap:8px!important}
  .home-v2-body .v2-find-thumb,.home-v2-body .v2-find-graphic{width:74px!important;height:60px!important;min-height:60px!important}
}
