:root {
    --bg: #07070d;
    --bg-soft: #0d0f19;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-2: rgba(255, 255, 255, 0.08);
    --panel-3: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.72);
    --text-faint: rgba(255, 255, 255, 0.48);

    --violet: #8b5cf6;
    --fuchsia: #d946ef;
    --cyan: #22d3ee;
    --blue: #60a5fa;
    --amber: #f59e0b;
    --emerald: #10b981;
    --orange: #fb923c;
    --rose: #fb7185;

    --radius-xs: 12px;
    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 32px 90px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 50px rgba(217, 70, 239, 0.22);

    --phone-width: 390px;
    --phone-height: 820px;
    --ease: 220ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(217, 70, 239, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 24%),
        linear-gradient(180deg, #05060b 0%, #090a12 100%);
}

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

button {
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.tap-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(320px, 1fr);
    gap: 48px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 24px;
}

.phone-shell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    position: relative;
    width: min(100%, var(--phone-width));
    height: var(--phone-height);
    padding: 10px;
    border-radius: 44px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%),
        linear-gradient(145deg, #11131b 0%, #090a11 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 144px;
    height: 28px;
    border-radius: 0 0 22px 22px;
    background: #0b0c12;
    z-index: 20;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 34px;
    background: #090a12;
    border: 1px solid rgba(255,255,255,0.05);
}

.screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.screen--active {
    display: flex;
}

.screen-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.screen-bg--attract {
    background:
        radial-gradient(circle at 50% 10%, rgba(217, 70, 239, 0.28), transparent 30%),
        radial-gradient(circle at 70% 25%, rgba(34, 211, 238, 0.18), transparent 25%),
        linear-gradient(180deg, #0a0912 0%, #121425 58%, #0a0b11 100%);
}

.screen-bg--capture {
    background:
        radial-gradient(circle at 50% 18%, rgba(217, 70, 239, 0.30), transparent 30%),
        linear-gradient(180deg, #1a0d24 0%, #11071b 42%, #090a11 100%);
}

.screen-bg--loading {
    background:
        radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.22), transparent 28%),
        linear-gradient(180deg, #090a11 0%, #111225 52%, #08090f 100%);
}

.screen-topbar,
.screen-body,
.screen-footer {
    position: relative;
    z-index: 2;
}

.screen-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 22px 0;
}

.screen-body {
    flex: 1;
    padding: 18px 22px;
}

.screen-body--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.screen-footer {
    padding: 20px 22px 24px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.eyebrow--center {
    margin-bottom: 16px;
}

.brand-mark-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    margin-bottom: 28px;
}

.brand-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.25) 0%, rgba(217, 70, 239, 0.08) 50%, transparent 70%);
    animation: pulseRing 2.2s ease-in-out infinite;
    filter: blur(2px);
}

.brand-mark {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 30px;
    display: grid;
    place-items: center;
    /* background: linear-gradient(145deg, var(--fuchsia) 0%, var(--violet) 55%, var(--cyan) 100%); */
    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.40),
        0 0 60px rgba(217, 70, 239, 0.20);
}

.brand-mark__logo {
    width: 60px;
    height: 80px;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(255, 255, 255, 0.14));
}

.hero-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.04em;
    max-width: 290px;
}

.hero-title--md {
    font-size: 28px;
}

.hero-copy {
    margin: 14px 0 0;
    max-width: 290px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 20px;
    transition: transform var(--ease), opacity var(--ease), box-shadow var(--ease), background var(--ease);
}

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

.btn--primary {
    color: #090a11;
    background: linear-gradient(145deg, #ffffff 0%, #f2f3ff 100%);
    box-shadow: 0 10px 24px rgba(255,255,255,0.14);
}

.btn--primary:hover {
    box-shadow: 0 16px 32px rgba(255,255,255,0.18);
}

.btn--xl {
    width: 100%;
    min-height: 58px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 800;
}

.btn-arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.capture-orb {
    position: relative;
    width: 156px;
    height: 156px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(217,70,239,0.18) 0%, rgba(217,70,239,0.10) 48%, transparent 72%);
}

.capture-orb::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 999px;
    border: 1px solid rgba(217,70,239,0.24);
    animation: pulseRing 1.8s ease-in-out infinite;
}

.capture-orb__inner {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(217,70,239,0.24), rgba(139,92,246,0.14));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-glow);
}

.capture-orb__icon {
    font-size: 40px;
    color: #f6d4ff;
}

.status-chip {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.loading-dots {
    display: inline-flex;
    gap: 10px;
    margin-top: 18px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--fuchsia), var(--violet));
    animation: loadingBounce 0.9s infinite ease-in-out;
    box-shadow: 0 0 16px rgba(217, 70, 239, 0.28);
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.12s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.24s;
}

/* Wallet */

.wallet-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
    padding: 38px 16px 16px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(139, 92, 246, 0.18) 0%, rgba(10, 10, 16, 0.0) 100%);
    backdrop-filter: blur(10px);
}

.wallet-header__center {
    text-align: center;
}

.wallet-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.wallet-count {
    margin-top: 4px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.wallet-layout {
    display: grid;
    grid-template-rows: 410px 1fr;
    min-height: 0;
    flex: 1;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 18px;
    transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: var(--border-strong);
}

.icon-btn--static {
    cursor: default;
}

.deal-detail {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.deal-detail__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: calc(100% - 170px);
    min-height: 0;
}

.deal-visual {
    height: 156px;
    margin-bottom: 14px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: var(--shadow-soft);
}

.deal-detail__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.deal-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.deal-business {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-soft);
}

.pill {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.deal-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-soft);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.meta-card {
    padding: 11px 10px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}

.meta-card__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.meta-card__value {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: rgba(255,255,255,0.86);
}

.info-stack {
    display: grid;
    gap: 8px;
    min-height: 0;
}

.info-card {
    padding: 12px 12px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.info-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.info-card__icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
}

.info-card__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.conditions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.conditions-list li {
    position: relative;
    padding-left: 15px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-soft);
}

.conditions-list li::before {
    content: "";
    position: absolute;
    top: 0.56em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--fuchsia), var(--cyan));
    box-shadow: 0 0 8px rgba(217,70,239,0.32);
}

.redeem-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-soft);
}

.wallet-cards {
    min-height: 0;
    overflow: hidden;
}

.wallet-cards__inner {
    height: 100%;
    overflow-y: auto;
    padding: 12px 16px 24px;
    display: grid;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.wallet-cards__inner::-webkit-scrollbar {
    width: 8px;
}

.wallet-cards__inner::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
}

.deal-card {
    width: 100%;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 24px;
    text-align: left;
    border: 1px solid var(--border);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    transition:
        transform var(--ease),
        border-color var(--ease),
        background var(--ease),
        box-shadow var(--ease);
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.deal-card:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}

.deal-card.is-selected {
    border-color: rgba(217, 70, 239, 0.42);
    background:
        linear-gradient(145deg, rgba(217,70,239,0.12), rgba(255,255,255,0.05));
    box-shadow:
        0 12px 30px rgba(0,0,0,0.20),
        0 0 0 1px rgba(217, 70, 239, 0.16);
}

.deal-card.is-entering {
    animation: cardIn 320ms ease both;
}

.deal-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--fuchsia), var(--violet));
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.24);
    flex-shrink: 0;
}

.deal-card__body {
    min-width: 0;
}

.deal-card__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.deal-card__title {
    min-width: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    color: #fff;
}

.deal-card__distance {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.deal-card__business {
    margin-top: 5px;
    font-size: 13px;
    color: var(--text-soft);
}

.deal-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.deal-card__tag,
.deal-card__expiry {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    font-size: 11px;
    color: var(--text-faint);
}

/* Dynamic visual blocks injected by JS */
.visual-inside,
.visual-map {
    position: relative;
    width: 100%;
    height: 100%;
}

.visual-inside {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    overflow: hidden;
}

.visual-inside__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

.visual-inside__center {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.visual-inside__badge {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
}

.visual-inside__bottom {
    display: grid;
    gap: 6px;
    min-height: 0;
}

.visual-inside__title {
    font-size: 20px;
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.visual-inside__copy {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
}

.visual-map {
    background:
        linear-gradient(145deg, rgba(15,23,42,1) 0%, rgba(30,41,59,0.95) 100%);
    overflow: hidden;
}

.visual-map__grid {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.visual-map__grid::before,
.visual-map__grid::after {
    content: "";
    position: absolute;
    inset: 0;
}

.visual-map__grid::before {
    background:
        linear-gradient(90deg, transparent 0 22%, rgba(255,255,255,0.12) 22% 22.6%, transparent 22.6% 58%, rgba(255,255,255,0.10) 58% 58.6%, transparent 58.6% 100%),
        linear-gradient(180deg, transparent 0 34%, rgba(255,255,255,0.12) 34% 34.7%, transparent 34.7% 68%, rgba(255,255,255,0.08) 68% 68.6%, transparent 68.6% 100%);
}

.visual-map__grid::after {
    background:
        linear-gradient(14deg, transparent 0 46%, rgba(255,255,255,0.10) 46% 46.5%, transparent 46.5% 100%),
        linear-gradient(-12deg, transparent 0 58%, rgba(255,255,255,0.08) 58% 58.4%, transparent 58.4% 100%);
}

.visual-map__content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.visual-map__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
}

.visual-map__stage {
    position: relative;
    flex: 1;
    margin: 12px 0;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    overflow: hidden;
}

.visual-map__you,
.visual-map__pin {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.visual-map__you {
    left: 24%;
    top: 62%;
    width: 16px;
    height: 16px;
    background: rgba(217,70,239,0.95);
    box-shadow: 0 0 0 10px rgba(217,70,239,0.12);
}

.visual-map__pin {
    right: 18%;
    top: 26%;
    width: 22px;
    height: 22px;
    background: rgba(34,211,238,0.95);
    box-shadow: 0 0 0 10px rgba(34,211,238,0.10);
}

.visual-map__pin::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
}

.visual-map__path {
    position: absolute;
    left: 29%;
    top: 52%;
    width: 120px;
    height: 60px;
    border-top: 2px dashed rgba(103, 232, 249, 0.55);
    border-right: 2px dashed rgba(103, 232, 249, 0.38);
    border-radius: 0 42px 0 0;
    transform: rotate(-12deg);
    transform-origin: left center;
}

.visual-map__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.visual-map__business {
    font-size: 20px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.visual-map__copy {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
}

.visual-map__distance {
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(34,211,238,0.16);
    background: rgba(34,211,238,0.10);
    color: #d9fbff;
    font-size: 12px;
    font-weight: 800;
}

/* Presentation rail */

.demo-rail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-rail__badge {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(217,70,239,0.24);
    background: rgba(217,70,239,0.10);
    color: #efc6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.demo-rail__title {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.05em;
    max-width: 680px;
}

.demo-rail__copy {
    margin: 0;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-soft);
}

.demo-rail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    max-width: 760px;
}

.demo-note {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.demo-note__title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
}

.demo-note__body {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-soft);
}

.demo-venue-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-soft);
    font-size: 13px;
}

.demo-venue-meta strong {
    color: #fff;
}

.demo-venue-meta__divider {
    opacity: 0.45;
}

/* Responsive */

@media (max-width: 1080px) {
    .tap-app {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 28px;
    }

    .demo-rail {
        width: min(100%, 760px);
    }

    .demo-rail__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    body {
        background: #06070d;
    }

    .tap-app {
        padding: 0;
        gap: 0;
        max-width: none;
    }

    .phone-shell {
        width: 100%;
    }

    .phone-frame {
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        background: #090a12;
    }

    .phone-notch {
        top: 0;
        width: 140px;
        border-radius: 0 0 20px 20px;
    }

    .phone-screen {
        border-radius: 0;
        border: 0;
    }

    .screen-topbar {
        padding-top: max(22px, env(safe-area-inset-top));
    }

    .screen-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .wallet-header {
        padding-top: calc(34px + env(safe-area-inset-top));
    }

    .wallet-cards__inner {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .demo-rail {
        display: none;
    }
}

@media (max-width: 420px) {
    .wallet-layout {
        grid-template-rows: 440px 1fr;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .deal-detail__content {
        height: calc(100% - 170px);
        gap: 12px;
    }

    .deal-title {
        font-size: 19px;
    }
}

/* Animations */

@keyframes pulseRing {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes loadingBounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.42;
    }
    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

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