/* SmartMaster FMI Online — CyphRa1n-grade polish */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg: #07080d;
    --card: rgba(15, 17, 26, 0.78);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --dim: #64748b;
}

* { box-sizing: border-box; }

body.fmi-online-page {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}

/* Background */
.fmi-bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 28%, #000 55%, transparent 100%);
}

.fmi-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.fmi-orb-1 {
    top: -8%;
    left: 18%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, transparent 70%);
    animation: fmiFloat 12s ease-in-out infinite alternate;
}

.fmi-orb-2 {
    top: 38%;
    right: 12%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    animation: fmiFloat 15s ease-in-out infinite alternate-reverse;
}

@keyframes fmiFloat {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(40px) scale(1.08); }
}

.fmi-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
}

/* Header */
.fmi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.fmi-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fmi-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fmi-header-icon img {
    width: 22px;
    height: 22px;
}

.fmi-header-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fmi-header-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 30%, #cbd5e1 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fmi-header-ver {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.fmi-header-tag {
    font-size: 0.68rem;
    color: var(--dim);
    margin-top: 2px;
    letter-spacing: 0.04em;
}

.fmi-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fmi-pill-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: var(--muted);
}

.fmi-pill-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.85);
    animation: fmiPulse 2s ease-in-out infinite;
}

.fmi-pill-status.is-offline .dot {
    background: #64748b;
    box-shadow: none;
    animation: none;
}

@keyframes fmiPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.fmi-pill-tg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.22);
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.fmi-pill-tg:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.45);
    color: #ede9fe;
}

.fmi-pill-ghost {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.fmi-pill-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Main */
.fmi-main {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    flex: 1;
}

.fmi-hero {
    text-align: center;
    margin-bottom: 32px;
}

.fmi-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 4.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.fmi-grad-white {
    background: linear-gradient(135deg, #fff 30%, #cbd5e1 75%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fmi-grad-brand {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 45%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fmi-hero p {
    margin: 0 auto;
    max-width: 420px;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--muted);
    font-weight: 500;
}

/* Glass cards */
.fmi-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fmi-glass {
    position: relative;
    overflow: hidden;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px 24px 26px;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.65);
    transition: border-color 0.3s ease;
}

.fmi-glass:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.fmi-glass-glow {
    position: absolute;
    right: -64px;
    top: -64px;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.12);
    filter: blur(32px);
    pointer-events: none;
    transition: background 0.5s;
}

.fmi-glass--step2 .fmi-glass-glow {
    background: rgba(16, 185, 129, 0.12);
}

.fmi-glass:hover .fmi-glass-glow {
    background: rgba(124, 58, 237, 0.2);
}

.fmi-glass--step2:hover .fmi-glass-glow {
    background: rgba(16, 185, 129, 0.22);
}

/* Step header — как у референса */
.fmi-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fmi-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #143a29;
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #4ade80;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fmi-step-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f1f5f9;
}

.fmi-step-text {
    margin: 0 0 18px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #94a3b8;
    font-weight: 500;
}

.fmi-step-text strong {
    color: #fff;
    font-weight: 600;
}

.fmi-step-text strong.u {
    text-decoration: underline;
    text-decoration-color: rgba(139, 92, 246, 0.45);
    text-underline-offset: 4px;
}

.fmi-step-text code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 2px 6px;
    border-radius: 6px;
}

/* Buttons */
.fmi-btn-apple-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.55);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.55) 0%, rgba(124, 58, 237, 0.65) 100%);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.15),
        0 8px 32px rgba(124, 58, 237, 0.35),
        0 0 48px rgba(139, 92, 246, 0.2);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fmi-btn-apple-glow:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.65) 0%, rgba(139, 92, 246, 0.75) 100%);
    border-color: rgba(196, 181, 253, 0.75);
    box-shadow:
        0 0 0 1px rgba(167, 139, 250, 0.25),
        0 12px 40px rgba(124, 58, 237, 0.45),
        0 0 64px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.fmi-btn-apple-glow svg.ext {
    opacity: 0.65;
    color: #c4b5fd;
}

.fmi-warn {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.fmi-warn-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.fmi-warn-icon svg {
    width: 12px;
    height: 12px;
}

.fmi-warn p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(252, 211, 77, 0.92);
    font-weight: 500;
}

.fmi-warn strong { color: #fef3c7; font-weight: 700; }
.fmi-warn code {
    font-family: "JetBrains Mono", monospace;
    color: #fde68a;
    font-size: 0.76rem;
}

.fmi-input-wrap {
    position: relative;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 14, 24, 0.85);
}

.fmi-input {
    width: 100%;
    padding: 12px 96px 12px 4px;
    border-radius: 0;
    border: none;
    background: transparent;
    color: #f1f5f9;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    outline: none;
}

.fmi-input-wrap:focus-within {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.fmi-input::placeholder {
    color: #64748b;
}

.fmi-paste-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.fmi-paste-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fmi-btn-emerald {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 28px;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.75) 0%, rgba(5, 150, 105, 0.85) 100%);
    box-shadow:
        0 8px 28px rgba(16, 185, 129, 0.35),
        0 0 40px rgba(16, 185, 129, 0.15);
    color: #ecfdf5;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fmi-btn-emerald:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.85) 0%, rgba(16, 185, 129, 0.95) 100%);
    border-color: rgba(110, 231, 183, 0.75);
    box-shadow:
        0 12px 36px rgba(16, 185, 129, 0.45),
        0 0 56px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
    color: #fff;
}

.fmi-btn-emerald:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fmi-footnote {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.68rem;
    color: #64748b;
}

.fmi-alert {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(244, 63, 94, 0.35);
    background: rgba(76, 5, 25, 0.45);
    color: #fecdd3;
    font-size: 0.8rem;
    line-height: 1.45;
}

.fmi-alert.show { display: block; }

/* Overlay loading */
.fmi-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(7, 8, 13, 0.88);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.fmi-overlay.show { display: flex; }

.fmi-overlay-inner {
    text-align: center;
    padding: 24px;
}

.fmi-loader-ring {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.fmi-loader-ring::before,
.fmi-loader-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid rgba(16, 185, 129, 0.2);
}

.fmi-loader-ring::after {
    border-color: #34d399 transparent transparent transparent;
    animation: fmiSpin 0.85s linear infinite;
}

@keyframes fmiSpin {
    to { transform: rotate(360deg); }
}

.fmi-overlay-inner h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.fmi-overlay-inner p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

/* Result */
.fmi-result {
    display: none;
    margin-top: 24px;
    padding-top: 8px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fmi-result.show { display: block; }

.fmi-result-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.fmi-result-kicker {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 12px;
}

.fmi-result-ref {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    color: #67e8f9;
    margin-bottom: 16px;
    user-select: all;
}

.fmi-code-box {
    position: relative;
    overflow: hidden;
    margin: 0 auto 20px;
    max-width: 320px;
    padding: 22px 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.08);
    cursor: pointer;
}

.fmi-code-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: translateX(-100%);
    animation: fmiShimmer 3s infinite;
}

@keyframes fmiShimmer {
    to { transform: translateX(100%); }
}

.fmi-result-code {
    position: relative;
    z-index: 1;
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    background: linear-gradient(90deg, #34d399, #2dd4bf, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: all;
}

.fmi-result-note {
    margin: 0 auto 16px;
    max-width: 38ch;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--muted);
}

.fmi-aftercare {
    margin: 0 auto 18px;
    max-width: 100%;
    padding: 16px 16px 14px;
    border-radius: 14px;
    border: 1px solid rgba(6, 182, 212, 0.28);
    background: rgba(6, 182, 212, 0.06);
    text-align: left;
}

.fmi-aftercare h3 {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #67e8f9;
}

.fmi-aftercare-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.76rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.fmi-aftercare-list li + li {
    margin-top: 8px;
}

.fmi-aftercare-list strong {
    color: #f1f5f9;
    font-weight: 600;
}

.fmi-aftercare-list a {
    color: #67e8f9;
    text-decoration: none;
    font-weight: 600;
}

.fmi-aftercare-list a:hover {
    text-decoration: underline;
}

.fmi-aftercare-foot {
    margin: 10px 0 0;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #94a3b8;
}

.fmi-aftercare-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fmi-aftercare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.12);
    color: #a5f3fc;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.fmi-aftercare-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(103, 232, 249, 0.5);
    color: #ecfeff;
}

.fmi-aftercare-btn--alt {
    border-color: rgba(167, 139, 250, 0.35);
    background: rgba(139, 92, 246, 0.12);
    color: #ddd6fe;
}

.fmi-aftercare-btn--alt:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(196, 181, 253, 0.5);
    color: #f5f3ff;
}

.fmi-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.fmi-result-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.fmi-result-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fmi-result-btn--tg {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border: none;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.fmi-result-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.fmi-result-links button,
.fmi-result-links a {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.72rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.fmi-result-links button:hover,
.fmi-result-links a:hover {
    color: #fff;
}

.fmi-result-links .sep {
    color: #475569;
}

/* Features */
.fmi-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.fmi-feature {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: border-color 0.2s;
}

.fmi-feature:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.fmi-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.fmi-feature:nth-child(2) .fmi-feature-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.fmi-feature:nth-child(3) .fmi-feature-icon {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
}

.fmi-feature h3 {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.fmi-feature p {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--dim);
    font-weight: 500;
}

/* Footer */
.fmi-footer {
    max-width: 680px;
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.fmi-footer a {
    color: #a78bfa;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
}

.fmi-footer a:hover { color: #c4b5fd; }

.fmi-footer-copy {
    margin: 10px 0 0;
    font-size: 0.68rem;
    color: #475569;
}

@media (max-width: 640px) {
    .fmi-glass {
        padding: 20px 18px 22px;
        border-radius: 20px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fmi-features {
        grid-template-columns: 1fr;
    }

    .fmi-result-grid {
        grid-template-columns: 1fr;
    }

    .fmi-header-actions .fmi-pill-ghost {
        display: none;
    }

    .fmi-paste-btn {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 8px;
        justify-content: center;
    }

    .fmi-input-wrap {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .fmi-input {
        padding-right: 4px;
    }
}
