:root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --surface-soft: #eaf8f4;
    --text: #111827;
    --muted: #642AF2;
    --line: #dedede;
    --primary: #18a985;
    --primary-dark: #079777;
    --accent: #d81b8a;
    --success: #14883e;
    --warning: #b75b00;
    --danger: #bd1e36;
    --shadow: 0 28px 80px rgba(17, 24, 39, 0.08);
    --radius: 8px;
    --auth-radius: 22px;
}

@font-face {
    font-family: "FindSans Pro";
    src: url("fonts/FindSans%20Pro/FindSansPro-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FindSans Pro";
    src: url("fonts/FindSans%20Pro/FindSansPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FindSans Pro";
    src: url("fonts/FindSans%20Pro/FindSansPro-Medium.ttf") format("truetype");
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FindSans Pro";
    src: url("fonts/FindSans%20Pro/FindSansPro-Bold.ttf") format("truetype");
    font-weight: 801 950;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: "FindSans Pro", "Segoe UI", Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

button,
input {
    font: inherit;
}

.auth-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(24, 169, 133, 0.08), transparent 31rem),
        #f7f7f7;
}

.auth-wrap {
    display: grid;
    min-height: 100dvh;
    padding: 24px 20px;
    place-items: center;
}

.auth-card {
    width: min(100%, 672px);
    padding: 34px 36px 36px;
    border: 1px solid #e4e4e7;
    border-radius: var(--auth-radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-card.narrow {
    width: min(100%, 670px);
}

.auth-logo-link {
    display: block;
    width: 92px;
    height: 92px;
    margin: 0 0 18px;
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.auth-logo-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
    letter-spacing: 0;
}

.brand-mark.small {
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 10px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: 0;
}

h1 {
    max-width: 14em;
    margin-bottom: 14px;
    font-size: clamp(38px, 6vw, 48px);
    font-weight: 950;
}

h2 {
    font-size: clamp(22px, 2.4vw, 28px);
}

.muted {
    color: var(--muted);
}

.auth-switch,
.auth-bottom,
.auth-policy,
.auth-token-email {
    margin: 0;
    color: #737b8b;
    font-size: 21px;
    line-height: 1.35;
}

.auth-switch a,
.auth-bottom a,
.auth-policy a,
.label-row a {
    color: #00a87e;
    font-weight: 600;
}

.auth-form {
    margin-top: 48px;
}

.form-stack {
    display: grid;
    gap: 22px;
}

.form-stack.compact {
    gap: 12px;
}

label {
    display: grid;
    gap: 10px;
    color: #3f4858;
    font-size: 21px;
    font-weight: 700;
}

input {
    min-height: 62px;
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 17px;
    padding: 15px 20px;
    color: var(--text);
    background: #fff;
    outline: none;
    font-size: 21px;
    font-weight: 500;
}

input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 169, 133, 0.16);
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.label-row a {
    font-size: 18px;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    padding: 8px;
    color: #707a8b;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn {
    min-height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 17px;
    padding: 16px 22px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 850;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:focus-visible {
    outline: 3px solid rgba(14, 143, 156, 0.35);
    outline-offset: 2px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 18px 30px rgba(24, 169, 133, 0.24);
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.secondary {
    color: var(--primary-dark);
    background: var(--surface-soft);
}

.btn.ghost {
    color: var(--text);
    background: #eef2f6;
}

.btn.full {
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.notice {
    margin: 24px 0 0;
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 700;
}

.auth-bottom {
    margin-top: 26px;
    text-align: center;
}

.auth-bottom-note {
    margin: 8px 0 0;
    color: #9aa2b1;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}

.auth-policy {
    max-width: 560px;
    margin: 24px auto 0;
    color: #9aa2b1;
    font-size: 18px;
    font-weight: 650;
    text-align: center;
}

.auth-token-email {
    margin-top: 8px;
    font-size: 18px;
}

.notice.success {
    color: #0e5d2c;
    background: #ddf6e7;
}

.notice.error {
    color: #8b1023;
    background: #fde4e9;
}

.dashboard-page {
    background:
        radial-gradient(circle at 16% 8%, rgba(216, 27, 138, 0.11), transparent 30rem),
        radial-gradient(circle at 76% 4%, rgba(24, 169, 133, 0.14), transparent 34rem),
        linear-gradient(180deg, #f7fbfc 0, #eef4f8 46%, #f7f7f7 100%);
    font-family: "FindSans Pro", "Segoe UI", Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 650;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid rgba(214, 225, 233, 0.9);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.05);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(14, 143, 156, 0.14);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: right;
}

.split-brand {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 180px;
    color: #642AF2;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: 0.04em;
    text-shadow: 0 12px 34px rgba(100, 42, 242, 0.16);
}

.split-letter {
    position: relative;
    display: inline-block;
    height: 1em;
    min-width: 0.68em;
    overflow: hidden;
    line-height: 1;
    cursor: default;
}

.split-letter::before {
    content: attr(data-letter);
    visibility: hidden;
}

.split-half {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 260ms ease;
}

.split-top {
    clip-path: inset(0 0 50% 0);
}

.split-bottom {
    clip-path: inset(50% 0 0 0);
}

.split-letter:hover .split-top {
    transform: translateY(-0.16em);
}

.split-letter:hover .split-bottom {
    transform: translateY(0.16em);
}

.split-brand:hover .split-letter:not(:hover) .split-top {
    transform: translateY(-0.04em);
}

.split-brand:hover .split-letter:not(:hover) .split-bottom {
    transform: translateY(0.04em);
}

.topbar-user strong,
.topbar-user span {
    display: block;
}

.topbar-user span {
    color: #642AF2;
    font-size: 14px;
}

.analysis-button {
    min-height: 56px;
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 11px;
    padding: 10px 12px 10px 22px;
    color: #fff;
    background: #f45106;
    box-shadow: 0 14px 28px rgba(244, 81, 6, 0.18);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.08;
    text-align: left;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.analysis-button span {
    display: inline-flex;
    color: inherit;
    font-size: inherit;
}

.analysis-button:hover {
    color: #fff;
    background: #e44805;
    box-shadow: 0 18px 34px rgba(244, 81, 6, 0.26);
    transform: translateY(-1px);
}

.analysis-icon {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 999px;
    color: #f45106 !important;
    background: #fff4ea;
    transition: transform 160ms ease, background-color 160ms ease;
}

.analysis-icon svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.analysis-button:hover .analysis-icon {
    background: #fff;
    transform: translateX(2px);
}

.analysis-button:hover .analysis-icon svg {
    transform: translateX(2px);
}

.order-button-floating {
    display: contents;
}

.order-button-floating .order-track-button {
    position: absolute;
    top: 14px;
    right: clamp(390px, 31vw, 560px);
    z-index: 40;
}

.order-track-button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    padding: 4px;
    color: #fff !important;
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.42), rgba(59, 130, 246, 0.38) 42%, rgba(124, 58, 237, 0.42));
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    transition: transform 190ms ease, filter 190ms ease;
}

.order-track-button * {
    color: #fff !important;
}

.order-track-button::before {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(90deg, #93c5fd 0%, #3b82f6 44%, #8b5cf6 100%);
    box-shadow: 0 16px 34px rgba(59, 130, 246, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.order-track-button::after {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -2;
    border-radius: 999px;
    background: linear-gradient(90deg, #93c5fd, #8b5cf6, #d81b8a, #93c5fd);
    background-size: 240% 100%;
    filter: blur(10px);
    opacity: 0.38;
    animation: gradientMove 3.6s linear infinite;
}

.order-track-button:hover {
    transform: translateY(-2px) scale(1.04);
    filter: saturate(1.08);
}

.order-track-button:active {
    transform: translateY(0) scale(1.01);
}

.order-track-button svg {
    width: 23px;
    height: 23px;
    margin-left: 14px;
    fill: #fff;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.35));
    animation: sparklePulse 1.9s ease-in-out infinite;
}

.order-track-button > span:last-child {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 12px 20px 12px 0;
    font-size: 17px;
    line-height: 1;
}

.order-sparkles {
    pointer-events: none;
    position: absolute;
    inset: -16px;
    z-index: 2;
    opacity: 0;
    transition: opacity 180ms ease;
}

.order-track-button:hover .order-sparkles {
    opacity: 1;
}

.order-sparkles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
    animation: sparkleFloat 1.7s ease-in-out infinite;
}

.order-sparkles span:nth-child(1) {
    left: 28px;
    top: 12px;
    background: #bae6fd;
}

.order-sparkles span:nth-child(2) {
    right: 34px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #fafafa;
    animation-delay: 0.35s;
}

.order-sparkles span:nth-child(3) {
    left: 54px;
    bottom: 8px;
    width: 5px;
    height: 5px;
    background: #a78bfa;
    animation-delay: 0.7s;
}

.order-sparkles span:nth-child(4) {
    right: 68px;
    bottom: 6px;
    width: 7px;
    height: 7px;
    background: #38bdf8;
    animation-delay: 1s;
}

.container {
    width: min(100% - 48px, 1880px);
    margin: 0 auto;
    padding: 34px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.25fr) minmax(360px, 0.9fr) minmax(280px, 0.65fr);
    gap: 18px;
    margin-bottom: 18px;
    align-items: start;
}

.discount-panel,
.stats-card,
.section-card {
    border: 1px solid rgba(214, 225, 233, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.07);
    backdrop-filter: blur(10px);
    animation: cardIn 520ms ease both;
}

.discount-panel {
    position: relative;
    overflow: hidden;
    padding: 26px;
    background:
        radial-gradient(circle at 92% 16%, rgba(216, 27, 138, 0.12), transparent 15rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 248, 0.88));
}

.discount-panel::after {
    content: "";
    position: absolute;
    right: -64px;
    bottom: -74px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(24, 169, 133, 0.18), rgba(216, 27, 138, 0.12));
}

.discount-value {
    margin-bottom: 8px;
    color: #d81b8a;
    font-size: clamp(46px, 6vw, 68px);
    line-height: 0.95;
    font-weight: 950;
}

.discount-progress {
    width: 100%;
    height: 18px;
    margin-top: 18px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e4ebf2;
}

.discount-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e7edf4;
}

.discount-progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.discount-progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-caption {
    margin-top: 10px;
    color: #d81b8a;
    font-size: 18px;
    font-weight: 850;
}

.discount-panel:hover,
.stats-card:hover,
.section-card:hover {
    transform: translateY(-2px);
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.09);
}

.stats-card {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 252, 253, 0.92));
}

.stats-card span {
    color: #642AF2;
    font-weight: 900;
}

.stats-card strong {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    letter-spacing: 0;
}

.stats-card small {
    color: var(--muted);
    font-size: 14px;
}

.profile-lines {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.profile-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
}

.profile-card .profile-label {
    color: #000;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-card .profile-title {
    color: #079777;
    font-size: 26px;
    font-weight: 950;
    line-height: 1.1;
}

.profile-card .profile-value {
    color: #F45106;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.profile-card form,
.sync-card form {
    margin-top: 12px;
}

.sync-card .sync-title {
    color: #079777;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.1;
}

.sync-card {
    border-style: dashed;
    border-color: rgba(100, 116, 139, 0.38);
    background:
        repeating-linear-gradient(135deg, rgba(100, 116, 139, 0.035) 0 8px, rgba(255, 255, 255, 0) 8px 16px),
        rgba(255, 255, 255, 0.68);
    box-shadow: none;
    opacity: 0.88;
}

.sync-card .profile-label,
.sync-card .profile-value {
    color: #64748b;
}

.sync-card .profile-row {
    grid-template-columns: 120px minmax(0, 1fr);
}

.sync-card .btn.secondary {
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
    box-shadow: none;
}

.section-card {
    margin-top: 18px;
    padding: 24px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.count-pill {
    min-width: 44px;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--primary-dark);
    background: var(--surface-soft);
    text-align: center;
    font-weight: 900;
}

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

.step {
    min-height: 112px;
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: center;
    gap: 6px;
    border: 1px solid #dfe7ee;
    border-radius: 16px;
    padding: 20px 22px;
    background: #fbfcfe;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.step:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 169, 133, 0.4);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.step.done {
    border-color: rgba(20, 136, 62, 0.28);
    background: #e9f8ef;
}

.step.current {
    border-color: rgba(216, 27, 138, 0.55);
    background:
        radial-gradient(circle at 90% 14%, rgba(216, 27, 138, 0.18), transparent 8rem),
        linear-gradient(135deg, #fff, #fff3fb 54%, #e9fbf7);
    box-shadow: 0 16px 40px rgba(216, 27, 138, 0.13), 0 0 0 4px rgba(216, 27, 138, 0.08);
    transform: translateY(-3px);
}

.current-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff !important;
    background: linear-gradient(90deg, #18a985, #d81b8a);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.step strong {
    color: var(--accent);
    font-size: 30px;
    line-height: 1;
}

.step.done strong {
    color: var(--success);
}

.step span {
    color: #642AF2;
    font-weight: 800;
}

.step em {
    max-width: 24em;
    color: var(--primary-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.3;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid #dfe7ee;
    border-radius: 16px;
}

.deal-list {
    display: grid;
    gap: 16px;
}

.deal-card {
    border: 1px solid #dfe7ee;
    border-radius: 16px;
    padding: 20px;
    background:
        radial-gradient(circle at 98% 0, rgba(24, 169, 133, 0.08), transparent 13rem),
        #fff;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.deal-card:hover {
    border-color: rgba(24, 169, 133, 0.34);
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}

.deal-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.deal-card h3 {
    margin: 0;
    color: #d81b8a;
    font-size: 22px;
    line-height: 1.25;
}

.deal-title-wrap,
.table-title-wrap {
    display: grid;
    gap: 10px;
}

.deal-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
}

.deal-field {
    min-width: 0;
    border-radius: 12px;
    padding: 11px 12px;
    background: #f8fafc;
}

.deal-field.wide {
    grid-column: span 2;
}

.deal-field span {
    display: block;
    margin-bottom: 4px;
    color: #2d2d2d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.deal-field b {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #2d2d2d;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.title-cell {
    min-width: 220px;
    font-weight: 850;
}

.title-cell .table-title-wrap > span {
    color: #d81b8a;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.download-link {
    display: inline-flex;
    max-width: 280px;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(24, 169, 133, 0.22);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--primary-dark);
    background: rgba(234, 248, 244, 0.9);
    font-size: 13px;
    font-weight: 900;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.download-link:hover {
    background: #dff7ef;
    box-shadow: 0 10px 24px rgba(24, 169, 133, 0.14);
    transform: translateY(-1px);
}

.download-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.download-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.warranty-cell {
    font-weight: 900;
}

.warranty-active {
    color: var(--success);
}

.warranty-expired {
    color: var(--danger);
}

.toast {
    position: fixed;
    right: 22px;
    top: 96px;
    z-index: 120;
    min-width: min(360px, calc(100vw - 32px));
    border-radius: 16px;
    padding: 15px 18px 15px 46px;
    font-weight: 850;
    box-shadow: 0 18px 46px rgba(17, 24, 39, 0.14);
    animation: toastOut 3s ease forwards;
}

.toast::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 14%, transparent);
    transform: translateY(-50%);
}

.toast.success {
    color: #0e5d2c;
    background: #ddf6e7;
}

.toast.error {
    color: #8b1023;
    background: #fde4e9;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.status.active {
    color: #07545d;
    background: #dbf4f7;
}

.status.completed {
    color: #0e5d2c;
    background: #ddf6e7;
}

.status.refused {
    color: #8b1023;
    background: #fde4e9;
}

.empty-state {
    border: 1px dashed #d8e3ec;
    border-radius: 16px;
    padding: 28px;
    color: var(--muted);
    background: linear-gradient(135deg, #fbfcfe, #f5fbfa);
    font-weight: 700;
    text-align: center;
}

.site-credit {
    margin: -40px auto 34px;
    padding: 0 16px;
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.site-credit a {
    margin-left: 8px;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

@keyframes sparklePulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.12);
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.45;
    }
    50% {
        transform: translateY(-7px) rotate(70deg);
        opacity: 1;
    }
}

@keyframes toastOut {
    0%, 78% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    to {
        background-position: 240% 0;
    }
}

@media (max-width: 1020px) {
    .hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discount-panel {
        grid-column: 1 / -1;
    }

    .profile-card,
    .sync-card {
        grid-column: 1 / -1;
    }

    .deal-fields {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .deal-field.wide {
        grid-column: span 1;
    }
}

@media (max-width: 1380px) {
    .split-brand {
        display: none;
    }

    .order-button-floating .order-track-button {
        right: 390px;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .dashboard-page {
        padding-bottom: 88px;
    }

    .auth-card {
        padding: 24px;
    }

    .topbar,
    .topbar-user {
        align-items: stretch;
    }

    .topbar {
        position: static;
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px 12px;
    }

    .split-brand {
        display: none;
    }

    .brand {
        width: 100%;
        gap: 10px;
        font-size: 17px;
        line-height: 1.1;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .topbar-user {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        text-align: left;
    }

    .topbar-user form {
        flex: 0 0 auto;
    }

    .analysis-button {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        padding: 9px 10px 9px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .analysis-icon {
        width: 30px;
        height: 30px;
    }

    .topbar-user .btn.ghost {
        min-height: 48px;
        border-radius: 14px;
        padding: 11px 15px;
        font-size: 16px;
    }

    .order-button-floating {
        display: block;
        pointer-events: none;
        position: fixed;
        left: 50%;
        right: auto;
        bottom: max(12px, env(safe-area-inset-bottom));
        transform: translateX(-50%);
        z-index: 90;
        width: max-content;
        max-width: calc(100vw - 24px);
        padding: 0;
        contain: layout paint;
    }

    .order-button-floating .order-track-button {
        pointer-events: auto;
        position: relative;
        top: auto;
        right: auto;
        width: auto;
        max-width: calc(100vw - 24px);
        min-width: 218px;
        min-height: 50px;
        margin: 0 auto;
        overflow: hidden;
        box-shadow: 0 12px 28px rgba(59, 130, 246, 0.26);
    }

    .order-track-button::after {
        inset: 0;
        filter: none;
        opacity: 0.18;
    }

    .order-sparkles {
        display: none;
    }

    .order-track-button > span:last-child {
        padding: 10px 18px 10px 0;
        font-size: 15px;
    }

    .order-track-button svg {
        width: 20px;
        height: 20px;
        margin-left: 12px;
    }

    .container {
        width: min(100% - 24px, 1880px);
        padding: 18px 0 34px;
    }

    .hero-grid,
    .discount-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-grid {
        margin-bottom: 12px;
    }

    .deal-card-head {
        display: grid;
    }

    .deal-fields {
        grid-template-columns: 1fr;
    }

    .profile-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .section-card,
    .discount-panel,
    .stats-card {
        border-radius: 16px;
        padding: 16px;
    }

    .discount-value {
        font-size: 48px;
    }

    .muted,
    .progress-caption {
        font-size: 15px;
    }

    .section-card {
        margin-top: 12px;
    }

    .section-head {
        align-items: center;
        margin-bottom: 14px;
    }

    h2 {
        font-size: 24px;
    }

    .step {
        min-height: 96px;
        padding: 18px;
    }

    .deal-card {
        padding: 14px;
    }

    .deal-card h3 {
        font-size: 20px;
    }

    .deal-field {
        padding: 10px;
    }

    .table-scroll {
        border-radius: 14px;
    }

    .table-scroll table {
        min-width: 900px;
    }

    .table-scroll th:nth-child(7),
    .table-scroll td:nth-child(7) {
        min-width: 108px;
        white-space: nowrap;
    }

    .table-scroll th:nth-child(8),
    .table-scroll td:nth-child(8) {
        min-width: 96px;
        white-space: nowrap;
    }

    .download-link {
        max-width: 100%;
    }

    .site-credit {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
