:root {
    --blue: #118dca;
    --blue-2: #0b76b7;
    --navy: #082033;
    --navy-2: #06445c;
    --bg: #f3f8fe;
    --card: #ffffff;
    --line: #dde8f2;
    --muted: #6e7d8f;
    --success: #12a66a;
    --warning: #f59e0b;
    --shadow: 0 14px 34px rgba(8, 32, 51, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--navy);
    font-family: Inter, Arial, Helvetica, sans-serif;
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

.phone-shell {
    margin: 0 auto;
    max-width: 480px;
    min-height: 100vh;
    padding: 22px 18px 96px;
}

.home-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.eyebrow {
    color: var(--blue-2);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 3px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 26px;
    line-height: 1.1;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 15px;
    line-height: 1.25;
}

p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.icon-button,
.filter-button {
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--blue);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.filter-button {
    font-size: 12px;
    font-weight: 900;
    width: 78px;
}

.hero-card {
    align-items: flex-end;
    background: linear-gradient(135deg, var(--blue), var(--navy-2));
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: #fff;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 18px;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 8px;
}

.hero-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.15;
    margin-top: 6px;
}

.hero-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.hero-action,
.product-card button,
.analysis-card button,
.send-link {
    background: #fff;
    border: 0;
    border-radius: 12px;
    color: var(--blue-2);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 40px;
    padding: 11px 14px;
    text-decoration: none;
    white-space: nowrap;
}

.search-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 78px;
    margin-bottom: 14px;
}

.search-row input {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    min-height: 44px;
    padding: 0 14px;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
}

.form-card.compact {
    margin-top: 16px;
}

label {
    color: var(--navy);
    display: grid;
    font-size: 13px;
    font-weight: 900;
    gap: 6px;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 84px;
}

.form-card button {
    background: var(--blue);
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    min-height: 44px;
}

.check {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.check input {
    min-height: auto;
    width: auto;
}

.pills {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding-bottom: 3px;
}

.pills button {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    min-height: 36px;
    padding: 0 14px;
    white-space: nowrap;
}

.pills .active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.section-title {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin: 8px 0 12px;
}

.section-title a {
    color: var(--blue-2);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.product-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
}

.product-card,
.analysis-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.product-card {
    min-width: 0;
    padding: 12px;
}

.product-image {
    align-items: center;
    border-radius: 15px;
    color: #fff;
    display: flex;
    font-size: 32px;
    font-weight: 900;
    height: 112px;
    justify-content: center;
    margin-bottom: 10px;
}

.product-image.blue {
    background: linear-gradient(135deg, #4db7e9, var(--blue-2));
}

.product-image.dark {
    background: linear-gradient(135deg, #0b5671, var(--navy));
}

.tag {
    background: #eaf6fd;
    border-radius: 999px;
    color: var(--blue-2);
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 8px;
    padding: 4px 8px;
}

.product-card p {
    margin: 8px 0 4px;
}

.product-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 12px;
}

.product-card button {
    background: var(--blue);
    color: #fff;
    width: 100%;
}

.analysis-list {
    display: grid;
    gap: 12px;
}

.analysis-card {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px;
}

.analysis-card .status {
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}

.analysis-card.approved .status {
    color: var(--success);
}

.analysis-card.pending .status {
    color: var(--warning);
}

.analysis-card button {
    background: var(--blue);
    color: #fff;
}

.send-link {
    background: var(--blue);
    color: #fff;
}

.bottom-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    bottom: 0;
    box-shadow: 0 -10px 28px rgba(8, 32, 51, 0.1);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, 1fr);
    left: 50%;
    max-width: 480px;
    padding: 10px 12px 14px;
    position: fixed;
    transform: translateX(-50%);
    width: 100%;
    z-index: 20;
}

.bottom-nav a {
    align-items: center;
    border-radius: 12px;
    color: var(--navy-2);
    display: flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    text-decoration: none;
}

.bottom-nav a.active {
    color: var(--blue);
}

.bottom-nav a.primary {
    background: var(--blue);
    color: #fff;
    font-size: 26px;
    margin: 0 auto;
    width: 48px;
}

.hidden {
    display: none !important;
}

.toast {
    background: var(--navy);
    border-radius: 12px;
    bottom: 84px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    left: 50%;
    max-width: 440px;
    padding: 12px 14px;
    position: fixed;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 30;
}

@media (min-width: 760px) {
    body {
        background: linear-gradient(180deg, #eaf4fb, var(--bg));
    }

    .phone-shell {
        padding-top: 34px;
    }
}
