:root {
    --bg: #020604;
    --panel: rgba(8, 18, 13, .88);
    --panel-strong: rgba(12, 30, 21, .96);
    --ink: #eafff4;
    --muted: #7fa896;
    --line: rgba(36, 255, 150, .18);
    --line-strong: rgba(57, 255, 166, .38);
    --dark: #03100b;
    --accent: #20ff91;
    --accent-2: #78ffd0;
    --danger: #ff5f70;
    --warning: #ffd36a;
    --shadow: 0 28px 90px rgba(0, 0, 0, .55);
    --glow: 0 0 28px rgba(32, 255, 145, .22);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 0%, rgba(32, 255, 145, .18), transparent 31%),
        radial-gradient(circle at 92% 8%, rgba(120, 255, 208, .10), transparent 28%),
        linear-gradient(135deg, #020604 0%, #07130e 42%, #030806 100%);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.025) 50%, transparent 50%),
        linear-gradient(90deg, rgba(255,255,255,.018), transparent 22%, rgba(255,255,255,.018));
    background-size: 100% 4px, 5px 100%;
    mix-blend-mode: screen;
    opacity: .22;
    z-index: 2;
}

a {
    color: inherit;
    text-decoration: none;
}

#matrixRain,
.ambient-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

#matrixRain {
    z-index: 0;
    opacity: .28;
}

.ambient-grid {
    z-index: 1;
    background-image:
        linear-gradient(rgba(32, 255, 145, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 255, 145, .08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.shell {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    color: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: linear-gradient(180deg, rgba(3, 13, 9, .96), rgba(2, 8, 6, .88));
    border-right: 1px solid var(--line);
    box-shadow: 20px 0 70px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    gap: 13px;
    align-items: center;
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #20ff91, #0d8f5d);
    color: #00150c;
    font-weight: 900;
    box-shadow: 0 0 34px rgba(32, 255, 145, .44);
    border: 1px solid rgba(255, 255, 255, .28);
}

.brand strong {
    display: block;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.brand small,
.sidebar-card small,
.muted,
.muted-text {
    color: var(--muted);
}

.nav {
    display: grid;
    gap: 9px;
}

.nav a {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 8px;
    color: #b9d7ca;
    border: 1px solid transparent;
}

.nav a span {
    width: 28px;
    color: rgba(32, 255, 145, .72);
    font-size: 12px;
    font-weight: 900;
}

.nav a.active,
.nav a:hover {
    background: rgba(32, 255, 145, .10);
    border-color: var(--line);
    color: #fff;
    box-shadow: inset 0 0 28px rgba(32, 255, 145, .08);
}

.sidebar-card {
    margin-top: auto;
    padding: 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(32, 255, 145, .12), rgba(7, 21, 15, .72));
    border: 1px solid var(--line);
    display: grid;
    gap: 8px;
    box-shadow: var(--glow);
}

.sidebar-card strong {
    font-size: 24px;
}

.mini-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.main {
    min-width: 0;
    padding: 30px;
}

.topbar,
.section-head,
.product-footer,
.product-topline,
.license-card,
.balance-band,
.form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar {
    margin-bottom: 26px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 8, 6, .62);
    backdrop-filter: blur(18px);
}

.topbar h1,
.section-head h2,
.hero h2,
.detail-panel h2,
.balance-band h2,
.form-head h2 {
    margin: 0;
    letter-spacing: 0;
}

.topbar h1 {
    font-size: clamp(24px, 3vw, 38px);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.top-actions,
.hero-actions,
.row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.button {
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    background: rgba(9, 25, 18, .84);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow);
}

.button.dark,
.button.light {
    background: linear-gradient(135deg, #20ff91, #0bbf78);
    border-color: rgba(32, 255, 145, .86);
    color: #00150c;
}

.button.ghost {
    background: rgba(255,255,255,.03);
}

.button.outline {
    background: transparent;
    color: var(--accent);
    border-color: rgba(32, 255, 145, .48);
}

.button.small {
    min-height: 36px;
    padding: 9px 12px;
    font-size: 13px;
}

.button.full {
    width: 100%;
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: clamp(28px, 4vw, 46px);
    min-height: 420px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(115deg, rgba(2, 9, 6, .94), rgba(6, 26, 17, .82)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: #fff;
    box-shadow: var(--shadow), var(--glow);
}

.hero::after,
.detail-panel::after,
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(32,255,145,.10), transparent);
    transform: translateX(-120%);
    animation: panelSweep 8s linear infinite;
}

@keyframes panelSweep {
    0%, 42% { transform: translateX(-120%); }
    56%, 100% { transform: translateX(120%); }
}

.hero h2 {
    max-width: 930px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1;
}

.hero p:not(.eyebrow) {
    max-width: 720px;
    color: #bdebd9;
    font-size: 17px;
    line-height: 1.75;
}

.hero-metrics {
    display: grid;
    gap: 12px;
    align-content: end;
}

.hero-metrics div,
.product-card,
.checkout-card,
.detail-panel,
.package-card,
.table-panel,
.license-card,
.empty-state,
.auth-card,
.admin-form,
.admin-tile,
.metric-grid div,
.setup-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 24, 18, .92), rgba(4, 12, 8, .92));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .34);
    backdrop-filter: blur(16px);
}

.hero-metrics div {
    padding: 18px;
    color: var(--ink);
}

.hero-metrics strong,
.package-card strong,
.metric-grid strong {
    display: block;
    font-size: 34px;
    color: var(--accent);
    text-shadow: 0 0 18px rgba(32, 255, 145, .28);
}

.hero-metrics span,
.product-card p,
.checkout-card p,
.detail-panel p,
.spec-list,
.license-meta span,
.empty-state p,
.auth-card p,
.balance-band span,
.admin-tile span,
.metric-grid span {
    color: var(--muted);
}

.section-head {
    margin: 34px 0 16px;
}

.section-head a {
    color: var(--accent);
    font-weight: 900;
}

.product-grid,
.package-grid,
.admin-quick,
.metric-grid,
.user-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-grid.wide {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.product-card,
.package-card,
.checkout-card,
.detail-panel,
.table-panel,
.empty-state,
.auth-card,
.admin-form,
.admin-tile,
.metric-grid div {
    padding: 22px;
}

.product-card {
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .44), var(--glow);
}

.product-image,
.detail-image {
    width: 100%;
    object-fit: cover;
    display: block;
    background: #07150f;
    border: 1px solid rgba(32, 255, 145, .16);
    filter: saturate(1.08) contrast(1.08);
}

.product-image {
    height: 188px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.detail-image {
    max-height: 390px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-gallery {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.gallery-main {
    display: block;
}

.gallery-main .detail-image {
    margin-bottom: 0;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gallery-thumbs a {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(32, 255, 145, .22);
}

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

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .84);
}

.lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    border-radius: 8px;
    border: 1px solid rgba(32, 255, 145, .4);
    box-shadow: var(--glow);
}

.product-card h3,
.package-card h3,
.license-card h3 {
    margin: 14px 0 10px;
    font-size: 22px;
}

.product-topline span,
.pill {
    border-radius: 999px;
    background: rgba(32, 255, 145, .12);
    color: var(--accent);
    border: 1px solid rgba(32, 255, 145, .22);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.product-topline strong {
    color: var(--accent-2);
    font-size: 13px;
}

.spec-list {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    font-size: 14px;
}

.spec-list span {
    padding-left: 14px;
    border-left: 2px solid rgba(32,255,145,.34);
}

.detail-layout,
.account-grid,
.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    align-items: start;
}

.admin-layout {
    grid-template-columns: minmax(0, 1fr) minmax(430px, .85fr);
}

.detail-panel {
    overflow: hidden;
}

.detail-panel h2 {
    font-size: clamp(34px, 5vw, 58px);
    margin-top: 16px;
}

.detail-panel p {
    font-size: 17px;
    line-height: 1.82;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.feature-row div {
    padding: 16px;
    border-radius: 8px;
    background: rgba(32, 255, 145, .07);
    border: 1px solid rgba(32, 255, 145, .14);
}

.feature-row strong,
.feature-row span {
    display: block;
}

.feature-row strong {
    color: var(--accent);
}

.feature-row span {
    color: var(--muted);
    margin-top: 4px;
    font-size: 13px;
}

.software-callout {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(32, 255, 145, .34);
    background: linear-gradient(135deg, rgba(32, 255, 145, .16), rgba(2, 8, 6, .48));
    box-shadow: 0 0 28px rgba(32, 255, 145, .10);
}

.software-callout strong {
    color: var(--accent);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.08;
}

.software-callout span {
    color: #dfffee;
    font-weight: 900;
}

.conversion-panel {
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid rgba(32, 255, 145, .18);
    background: rgba(2, 8, 6, .38);
}

.conversion-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    gap: 18px;
    padding: 20px;
}

.conversion-panel h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}

.conversion-panel p {
    margin-bottom: 0;
}

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

.conversion-panel li {
    position: relative;
    padding: 12px 12px 12px 38px;
    border-radius: 8px;
    background: rgba(32, 255, 145, .07);
    border: 1px solid rgba(32, 255, 145, .14);
    color: #cfffe8;
    font-weight: 800;
}

.conversion-panel li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 17px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(32, 255, 145, .62);
}

.platform-compat {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(32, 255, 145, .24);
    background: linear-gradient(180deg, rgba(32, 255, 145, .10), rgba(2, 8, 6, .48));
}

.platform-compat > p {
    margin: 0;
    color: var(--accent-2);
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.platform-compat > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.platform-compat article {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 92px;
    padding: 10px 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(32, 255, 145, .18);
    text-align: center;
}

.platform-compat strong {
    color: var(--ink);
    font-size: 13px;
}

.platform-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #00150c;
    background: linear-gradient(135deg, #20ff91, #78ffd0);
    box-shadow: 0 0 24px rgba(32, 255, 145, .24);
}

.platform-logo svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.platform-windows {
    grid-template-columns: repeat(2, 14px);
    grid-template-rows: repeat(2, 14px);
    gap: 4px;
}

.platform-windows span {
    width: 14px;
    height: 14px;
    background: currentColor;
}

.checkout-card,
.package-card,
.admin-form,
.auth-card {
    display: grid;
    gap: 14px;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    background: rgba(32, 255, 145, .12);
    border: 1px solid rgba(32, 255, 145, .28);
    color: #bfffe0;
    font-weight: 800;
}

.alert.warning {
    background: rgba(255, 211, 106, .12);
    border-color: rgba(255, 211, 106, .3);
    color: var(--warning);
}

.alert.danger {
    background: rgba(255, 95, 112, .12);
    border-color: rgba(255, 95, 112, .3);
    color: var(--danger);
}

.balance-band {
    background: linear-gradient(135deg, rgba(32, 255, 145, .18), rgba(3, 13, 9, .92));
    border: 1px solid var(--line-strong);
    color: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--glow);
}

.balance-band span {
    max-width: 560px;
    color: #a9d5c4;
}

.package-card.popular {
    border-color: var(--line-strong);
    box-shadow: 0 18px 70px rgba(32, 255, 145, .12);
}

.table-panel {
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(32, 255, 145, .11);
    text-align: left;
}

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

tr:hover td {
    background: rgba(32, 255, 145, .035);
}

.license-list {
    display: grid;
    gap: 14px;
}

.license-card {
    padding: 18px;
}

code {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(2, 8, 6, .82);
    border: 1px dashed rgba(32, 255, 145, .38);
    color: var(--accent-2);
    border-radius: 8px;
    cursor: copy;
}

code.copied {
    border-color: var(--accent);
    color: var(--accent);
}

.license-meta {
    display: grid;
    gap: 4px;
    min-width: 150px;
}

.inline-form {
    display: flex;
    gap: 8px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(32, 255, 145, .20);
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
    background: rgba(2, 8, 6, .72);
    color: var(--ink);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(32, 255, 145, .10);
}

textarea {
    resize: vertical;
    line-height: 1.6;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 900;
    color: #dfffee;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: 18px;
    height: 18px;
}

.auth-card {
    max-width: 430px;
}

.admin-tile {
    display: grid;
    gap: 8px;
}

.admin-tile strong {
    font-size: 24px;
}

.settings-form {
    max-width: 860px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.compact-table {
    margin-top: 0;
}

.row-actions form {
    margin: 0;
}

.setup-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.setup-panel {
    width: min(540px, 100%);
    padding: 30px;
}

.intel-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.intel-strip div {
    padding: 16px;
    border-radius: 8px;
    background: rgba(32, 255, 145, .06);
    border: 1px solid rgba(32, 255, 145, .14);
}

.intel-strip strong {
    display: block;
    color: var(--accent);
    margin-bottom: 5px;
}

.matrix-terminal {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(32, 255, 145, .24);
    border-radius: 8px;
    background: rgba(0, 0, 0, .36);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #9fffc8;
    line-height: 1.7;
}

.matrix-terminal span {
    color: var(--accent);
}

.seo-hero {
    background:
        linear-gradient(115deg, rgba(2, 9, 6, .94), rgba(6, 26, 17, .82)),
        url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.seo-lattice,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.seo-lattice a,
.faq-grid article,
.content-page article,
.content-page aside {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 24, 18, .92), rgba(4, 12, 8, .92));
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.seo-lattice a:hover {
    border-color: var(--line-strong);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.seo-lattice strong,
.faq-grid h3,
.content-page h2 {
    color: var(--ink);
}

.seo-lattice strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.seo-lattice span,
.faq-grid p,
.content-page p {
    color: var(--muted);
    line-height: 1.75;
}

.content-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    margin-top: 24px;
}

.content-page h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 46px);
}

.keyword-cloud {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-content: start;
}

.keyword-cloud span {
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--accent);
    background: rgba(32, 255, 145, .09);
    border: 1px solid rgba(32, 255, 145, .20);
    font-weight: 900;
    font-size: 13px;
}

.faq-grid {
    margin-top: 20px;
}

.faq-grid h3 {
    margin: 0 0 10px;
}

.organic-snapshot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px auto;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, rgba(32, 255, 145, .13), rgba(4, 12, 8, .92));
    box-shadow: var(--glow);
}

.organic-snapshot h2 {
    margin: 0 0 8px;
}

.organic-snapshot p {
    color: var(--muted);
    margin: 0;
}

.organic-snapshot-metrics {
    display: grid;
    gap: 10px;
}

.organic-snapshot-metrics span {
    padding: 12px;
    border: 1px solid rgba(32, 255, 145, .18);
    border-radius: 8px;
    background: rgba(2, 8, 6, .42);
    color: var(--muted);
}

.organic-snapshot-metrics strong {
    color: var(--accent);
    font-size: 24px;
}

.campaign-list {
    display: grid;
    gap: 14px;
}

.campaign-card {
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(32, 255, 145, .16);
    background: rgba(2, 8, 6, .36);
}

.campaign-card h3 {
    margin: 14px 0 8px;
}

.campaign-card p,
.campaign-card small {
    color: var(--muted);
}

.campaign-card a {
    color: var(--accent);
    font-weight: 900;
}

.progress-shell {
    height: 10px;
    margin: 14px 0 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(32, 255, 145, .14);
}

.progress-shell span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20ff91, #78ffd0);
    box-shadow: 0 0 18px rgba(32, 255, 145, .45);
}

.rank-result {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.rank-orb,
.rank-plan {
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(10, 24, 18, .94), rgba(4, 12, 8, .94));
    box-shadow: var(--glow);
}

.rank-orb {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 300px;
}

.rank-orb span,
.rank-orb small {
    color: var(--muted);
}

.rank-orb strong {
    display: block;
    margin: 12px 0;
    font-size: clamp(68px, 10vw, 120px);
    color: var(--accent);
    line-height: .9;
    text-shadow: 0 0 34px rgba(32, 255, 145, .45);
}

.rank-plan h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
}

.plan-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.plan-actions form {
    margin: 0;
}

.google-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    margin-top: 22px;
}

.google-browser {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: #f8fafc;
    color: #1f2937;
    box-shadow: var(--shadow), var(--glow);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e5e7eb;
    border-bottom: 1px solid #d1d5db;
}

.browser-bar span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #ef4444;
}

.browser-bar span:nth-child(2) {
    background: #f59e0b;
}

.browser-bar span:nth-child(3) {
    background: #22c55e;
}

.browser-bar strong {
    margin-left: 10px;
    color: #667085;
    font-size: 13px;
}

.google-face {
    padding: 28px 28px 12px;
    border-bottom: 1px solid #edf0f3;
}

.google-logo {
    margin-bottom: 16px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
}

.google-logo span:nth-child(1),
.google-logo span:nth-child(4) {
    color: #4285f4;
}

.google-logo span:nth-child(2),
.google-logo span:nth-child(6) {
    color: #ea4335;
}

.google-logo span:nth-child(3) {
    color: #fbbc05;
}

.google-logo span:nth-child(5) {
    color: #34a853;
}

.google-search-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(680px, 100%);
    padding: 13px 17px;
    border: 1px solid #d6d9df;
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .10);
}

.google-search-line span {
    position: relative;
    min-height: 20px;
}

.google-search-line span::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 18px;
    margin-left: 4px;
    background: #1f2937;
    vertical-align: middle;
    animation: blinkCursor .8s steps(1) infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

.google-search-line em {
    color: #4285f4;
    font-style: normal;
    font-size: 22px;
}

.google-results {
    display: grid;
    gap: 12px;
    padding: 20px 28px 28px;
}

.serp-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
}

.serp-row.target-site {
    border-color: #20ff91;
    box-shadow: 0 0 0 4px rgba(32, 255, 145, .18), 0 14px 34px rgba(16, 185, 129, .22);
}

.serp-rank {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 900;
}

.serp-row cite {
    color: #15803d;
    font-style: normal;
    font-size: 13px;
}

.serp-row h3 {
    margin: 4px 0;
    color: #1a0dab;
    font-size: 19px;
}

.serp-row p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .shell,
    .hero,
    .detail-layout,
    .account-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .product-grid,
    .package-grid,
    .admin-quick,
    .metric-grid,
    .user-panel-grid,
    .intel-strip,
    .seo-lattice,
    .faq-grid,
    .content-page,
    .organic-snapshot,
    .rank-result,
    .google-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main,
    .sidebar {
        padding: 18px;
    }

    .topbar,
    .section-head,
    .license-card,
    .balance-band {
        align-items: stretch;
        flex-direction: column;
    }

    .hero {
        padding: 24px;
        min-height: 0;
    }

    .feature-row,
    .form-grid,
    .conversion-panel {
        grid-template-columns: 1fr;
    }

    .inline-form {
        flex-direction: column;
    }
}
