:root {
    --rn-teal: #159fb7;
    --rn-teal-bright: #39d8d8;
    --rn-teal-deep: #0e7f94;
    --rn-ink: #1a2b32;
    --rn-muted: #5a717a;
    --rn-screen: #f7fbfc;
    --rn-bezel: #2a3236;
    --rn-bezel-edge: #1c2226;
    --rn-stage-1: #d4eef2;
    --rn-stage-2: #e8f6f8;
    --rn-stage-3: #c5e4ea;
    --rn-phone-w: 390px;
    --rn-phone-h: 680px;
    --rn-line: rgba(26, 43, 50, 0.12);
    --rn-danger: #b42318;
    --rn-card: #ffffff;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "DM Sans", sans-serif;
    color: var(--rn-ink);
    -webkit-font-smoothing: antialiased;
}

body { min-height: 100dvh; }

.rn-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(26, 43, 50, 0.1);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.rn-site-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: 80rem;
    height: 4.5rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.rn-site-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    justify-self: start;
}

.rn-site-brand img {
    display: block;
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.rn-site-links {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    grid-column: 2;
    justify-self: center;
}

.rn-site-links a {
    color: var(--rn-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rn-site-links a:hover {
    color: var(--rn-teal);
}

.rn-site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--rn-teal);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rn-site-cta:hover {
    background: var(--rn-teal-deep);
    color: #fff !important;
    transform: translateY(-1px);
}

.rn-site-cta--drawer {
    margin-top: 0.35rem;
    align-self: flex-start;
}

.rn-site-login {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(26, 43, 50, 0.18);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--rn-ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(26, 43, 50, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rn-site-login:hover {
    border-color: rgba(26, 43, 50, 0.35);
    background: #f8fafb;
    transform: translateY(-1px);
}

.rn-site-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 0;
    justify-self: end;
    grid-column: 3;
    border: 1px solid rgba(26, 43, 50, 0.18);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--rn-ink);
    cursor: pointer;
}

.rn-site-drawer {
    position: fixed;
    inset: 0;
    z-index: 110;
}

.rn-site-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.28s ease;
}

.rn-site-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(18rem, 85%);
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    box-shadow: -12px 0 40px rgba(26, 43, 50, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
}

.rn-site-drawer.is-open .rn-site-drawer__backdrop { opacity: 1; }
.rn-site-drawer.is-open .rn-site-drawer__panel { transform: translateX(0); }

.rn-site-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rn-ink);
}

.rn-site-drawer__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--rn-muted);
    cursor: pointer;
}

.rn-site-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.rn-site-drawer__links a {
    color: var(--rn-ink);
    text-decoration: none;
}

.rn-site-drawer__links a:hover { color: var(--rn-teal); }

.rn-site-login--drawer {
    display: inline-flex;
    margin-top: 2rem;
}

body.rn-site-menu-open { overflow: hidden; }

@media (min-width: 769px) {
    .rn-site-links { display: flex; }
    .rn-site-login { display: inline-flex; }
    .rn-site-menu-btn,
    .rn-site-drawer { display: none !important; }
}

.rn-stage {
    min-height: calc(100dvh - 4.5rem);
    display: grid;
    place-items: center;
    padding: 1.25rem 1rem 1.75rem;
    background:
        radial-gradient(ellipse 80% 60% at 20% 15%, rgba(57, 216, 216, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 80%, rgba(21, 159, 183, 0.28), transparent 50%),
        linear-gradient(160deg, var(--rn-stage-1) 0%, var(--rn-stage-2) 45%, var(--rn-stage-3) 100%);
    opacity: 0;
    animation: rn-stage-in 0.7s ease forwards;
}

.rn-stage-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.75rem);
    width: min(100%, 78rem);
}

.rn-phone-hold {
    position: relative;
    display: grid;
    place-items: center;
    grid-column: 2;
    justify-self: center;
    flex: 0 0 auto;
    width: calc(var(--rn-phone-w) + 13.5rem);
    min-height: calc(var(--rn-phone-h) + 3.5rem);
    overflow: visible;
}

.rn-pitch {
    grid-column: 3;
    justify-self: start;
    align-self: center;
    max-width: 24rem;
    width: 100%;
    padding: 0.25rem 0.25rem 0.25rem 0;
    animation: rn-intro-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.rn-pitch__copy {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: var(--rn-muted);
}

.rn-pitch__copy strong {
    color: var(--rn-ink);
    font-weight: 700;
}

.rn-pitch__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    margin-top: 1.35rem;
}

.rn-pitch__stores {
    position: relative;
    display: inline-flex;
    padding: 0.35rem 0.45rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 43, 50, 0.08);
}

.rn-pitch__stores img {
    display: block;
    height: 3rem;
    width: auto;
    max-width: 100%;
}

.rn-pitch__store-hit {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48%;
}

.rn-pitch__store-hit--apple { left: 0; }
.rn-pitch__store-hit--google { right: 0; }

.rn-pitch__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    border: 1.5px solid rgba(26, 43, 50, 0.18);
    background: #fff;
    color: var(--rn-ink);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.rn-pitch__contact:hover {
    border-color: var(--rn-teal);
    transform: translateY(-1px);
}

.rn-stage::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23159fb7' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.rn-phone-hand {
    position: absolute;
    z-index: 0;
    left: 50%;
    /* Crop to palm + fingers: push image so wrist is mostly clipped below */
    bottom: -1rem;
    width: min(134%, 700px);
    height: auto;
    max-height: calc(var(--rn-phone-h) * 0.95);
    object-fit: cover;
    object-position: center 28%;
    transform: translateX(-50%) scaleX(1.26);
    transform-origin: center bottom;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 18px 32px rgba(26, 43, 50, 0.2));
    opacity: 0.98;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 12%, #000 100%);
    mask-image: linear-gradient(to top, transparent 0%, #000 12%, #000 100%);
}

.rn-phone {
    position: relative;
    z-index: 1;
    width: var(--rn-phone-w);
    height: var(--rn-phone-h);
    max-height: none;
    padding: 12px;
    border-radius: 44px;
    background: linear-gradient(165deg, #3a4348 0%, var(--rn-bezel) 40%, var(--rn-bezel-edge) 100%);
    box-shadow: 0 28px 56px rgba(26, 43, 50, 0.28);
    opacity: 0;
    transform: translateY(28px);
    animation: rn-phone-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.rn-phone-hold .rn-phone::before,
.rn-phone-hold .rn-phone::after {
    display: block;
}

.rn-phone-hold .rn-island {
    width: 96px;
    height: 28px;
    top: 22px;
}

.rn-phone-hold .rn-screen {
    border-radius: 34px;
}

.rn-phone-hold .rn-statusbar {
    height: 44px;
    padding: 10px 22px 0;
}

.rn-phone::before,
.rn-phone::after {
    content: "";
    position: absolute;
    background: #1a1f22;
    border-radius: 2px;
}

.rn-phone::before {
    left: -3px;
    top: 120px;
    width: 3px;
    height: 28px;
    box-shadow: 0 42px 0 #1a1f22, 0 78px 0 0 #1a1f22;
}

.rn-phone::after {
    right: -3px;
    top: 170px;
    width: 3px;
    height: 64px;
}

.rn-island {
    position: absolute;
    top: 22px;
    left: 50%;
    z-index: 3;
    width: 96px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #0d1113;
    pointer-events: none;
}

.rn-screen {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 34px;
    background: var(--rn-screen);
}

.rn-statusbar {
    position: relative;
    z-index: 4;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 10px 22px 0;
    color: var(--rn-ink);
    pointer-events: none;
    user-select: none;
}

.rn-statusbar__time {
    min-width: 52px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rn-statusbar__icons {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 52px;
    justify-content: flex-end;
}

.rn-statusbar__icons svg {
    display: block;
    fill: currentColor;
}

.rn-screen-body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.rn-panel {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    background: var(--rn-screen);
}

.rn-panel.is-active {
    display: flex;
    animation: rn-panel-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.rn-panel.is-leaving {
    animation: rn-exit-up 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

.rn-panel__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.35rem;
}

.rn-panel__main--start {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding-top: 1.25rem;
    gap: 0.75rem;
}

.rn-panel__main--flush {
    padding: 0;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
}

.rn-footer {
    flex-shrink: 0;
    padding: 0.85rem 1.35rem calc(1.1rem + env(safe-area-inset-bottom));
}

.rn-logo {
    width: min(168px, 52%);
    height: auto;
    display: block;
}

.rn-title {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.rn-title--sm { font-size: 1.45rem; }

.rn-subtitle {
    margin: 0;
    max-width: 18rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--rn-muted);
}

.rn-panel__main--start .rn-subtitle { max-width: none; }

.rn-accent {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rn-teal), var(--rn-teal-bright));
}

.rn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rn-teal) 0%, var(--rn-teal-bright) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.rn-btn:hover { filter: brightness(1.04); }
.rn-btn:active { transform: scale(0.985); }
.rn-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; filter: none; }

.rn-btn--ghost {
    background: transparent;
    color: var(--rn-teal);
    border: 1.5px solid var(--rn-teal);
}

.rn-btn--danger {
    background: var(--rn-danger);
}

.rn-btn__spinner {
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rn-spin 0.7s linear infinite;
}

.rn-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--rn-muted);
    text-transform: uppercase;
}

.rn-field { width: 100%; margin-top: 0.85rem; }

.rn-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--rn-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.rn-input-wrap:focus-within {
    border-color: var(--rn-teal);
    box-shadow: 0 0 0 3px rgba(21, 159, 183, 0.18);
}

.rn-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.15rem 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
}

.rn-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--rn-line);
    border-radius: 12px;
    background: #fff;
    color: var(--rn-ink);
    font-family: inherit;
    font-size: 1.02rem;
}

.rn-input-wrap .rn-input {
    border: 0;
    border-radius: 0;
    padding-left: 0.45rem;
}

.rn-input:focus {
    outline: none;
    border-color: var(--rn-teal);
    box-shadow: 0 0 0 3px rgba(21, 159, 183, 0.18);
}

.rn-input-wrap .rn-input:focus { box-shadow: none; }

.rn-hint {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--rn-muted);
}

.rn-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1rem;
    font-size: 0.86rem;
    color: var(--rn-muted);
    text-align: left;
}

.rn-check input { margin-top: 0.2rem; }

.rn-linkish {
    margin-top: 0.85rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rn-teal);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.rn-linkish:disabled { opacity: 0.5; cursor: not-allowed; }

.rn-toast {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    z-index: 20;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--rn-ink);
    color: #fff;
    font-size: 0.88rem;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rn-toast.is-visible { opacity: 1; transform: translateY(0); }
.rn-toast.is-error { background: var(--rn-danger); }

#rnRecaptcha {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* -------- Intro (Flutter introduction) -------- */
.rn-panel--intro {
    background: #fff;
}

.rn-intro {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.rn-intro__hero {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem 0;
}

.rn-intro__hero img {
    width: min(300px, 88%);
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    animation: rn-intro-hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rn-intro__card {
    flex-shrink: 0;
    padding: 1.5rem 1.35rem calc(1.25rem + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 36px 36px 0 0;
    box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.08);
    text-align: left;
    animation: rn-intro-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.rn-intro__title {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rn-ink);
    letter-spacing: -0.01em;
}

.rn-intro__title span {
    color: var(--rn-teal);
}

.rn-intro__copy {
    margin: 0.9rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.54);
}

.rn-btn--intro {
    margin-top: 1.35rem;
    height: 3.5rem;
    border-radius: 14px;
    font-size: 1.05rem;
}

.rn-intro__already {
    margin: 1.1rem 0 0.55rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.54);
}

.rn-btn--outline {
    height: 3.5rem;
    border-radius: 14px;
    background: transparent !important;
    color: var(--rn-teal) !important;
    border: 2px solid var(--rn-teal);
    box-shadow: none;
    font-size: 1.05rem;
    filter: none;
}

.rn-btn--outline:hover,
.rn-btn--outline:focus-visible {
    background: rgba(21, 159, 183, 0.08);
    color: var(--rn-teal);
}

.rn-btn--outline .rn-btn__label {
    color: inherit;
}

/* -------- Auth / Login (Flutter login) -------- */
.rn-panel--auth {
    background: var(--rn-teal);
}

.rn-auth {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom));
    overflow: auto;
}

.rn-auth__card {
    width: 100%;
    padding: 1.65rem 1.35rem 1.4rem;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    animation: rn-panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rn-auth__title {
    margin: 0;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #111;
}

.rn-auth__subtitle {
    margin: 0.35rem 0 1.35rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--rn-muted);
}

.rn-field--auth {
    margin-bottom: 0.85rem;
}

.rn-field--auth .rn-label {
    color: #444;
    font-weight: 500;
}

.rn-input-wrap--auth {
    border-radius: 12px;
    background: #f7f9fa;
    border-color: rgba(0, 0, 0, 0.08);
}

.rn-input-wrap--auth:focus-within {
    border-color: var(--rn-teal);
    box-shadow: 0 0 0 3px rgba(21, 159, 183, 0.15);
}

.rn-input-wrap--auth .rn-input {
    background: transparent;
}

.rn-input-suffix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 0.65rem;
    color: var(--rn-muted);
    flex-shrink: 0;
}

.rn-input-suffix--btn {
    border: 0;
    background: transparent;
    padding: 0.55rem 0.7rem 0.55rem 0.35rem;
    cursor: pointer;
    color: var(--rn-muted);
    position: relative;
    width: 2.5rem;
    flex-shrink: 0;
}

.rn-input-suffix--btn:hover {
    color: var(--rn-teal);
}

.rn-input-suffix--btn .rn-eye {
    display: none;
}

.rn-input-suffix--btn .rn-eye:not([hidden]) {
    display: block;
}

.rn-btn--signin {
    margin-top: 1.1rem;
    height: 3.25rem;
    border-radius: 30px;
    border: 0;
    background: linear-gradient(90deg, #159fb7 0%, #2d0c3e 100%);
    box-shadow: 0 8px 18px rgba(45, 12, 62, 0.22);
    letter-spacing: 0.06em;
}

.rn-btn--signin:hover,
.rn-btn--signin:focus-visible {
    filter: brightness(1.05);
}

.rn-linkish--center {
    display: block;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

@keyframes rn-intro-hero-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rn-intro-card-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* App chrome */
.rn-appbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.55rem 0.9rem;
    background: var(--rn-teal);
    color: #fff;
}

.rn-appbar h2 {
    margin: 0;
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
}

.rn-notes-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.rn-appbar-text-btn {
    flex-shrink: 0;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.rn-appbar-text-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.rn-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    border: 1.5px solid #fff;
    background: #e53935;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.rn-unread-badge[hidden] {
    display: none !important;
}

.rn-unread-badge--drawer {
    margin-left: auto;
}

.rn-notes-hint {
    flex-shrink: 0;
    margin: 0;
    padding: 0.65rem 1rem 0.55rem;
    border-bottom: 1px solid var(--rn-line);
    color: var(--rn-muted);
    font-size: 0.78rem;
    text-align: center;
}

.rn-notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 1rem 0.5rem;
}

.rn-notes-more {
    display: block;
    width: 100%;
    margin: 0.25rem 0 1rem;
    text-align: center;
}

.rn-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    cursor: pointer;
}

.rn-icon-btn--dark {
    background: #fff;
    color: var(--rn-ink);
    box-shadow: 0 4px 14px rgba(26, 43, 50, 0.12);
}

.rn-home {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #dfe8ea;
}

.rn-map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rn-home-top {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    display: flex;
    justify-content: space-between;
}

.rn-home-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 0.9rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(26, 43, 50, 0.1);
}

.rn-home-cta__label {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rn-teal);
}

.rn-home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.rn-drawer-backdrop {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: rgba(10, 20, 24, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.rn-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.rn-drawer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 31;
    display: flex;
    flex-direction: column;
    width: min(78%, 290px);
    padding: 1.4rem 1rem 1.2rem;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(17, 98, 133, 0.96) 0%, rgba(14, 75, 107, 0.96) 100%);
    color: #fff;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rn-drawer::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.rn-drawer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 45% at 90% 8%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(ellipse 70% 40% at 10% 35%, rgba(57, 216, 216, 0.12), transparent 60%);
}

.rn-drawer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 290 800' preserveAspectRatio='none'%3E%3Cpath d='M290 90 C210 210 130 270 0 340 L0 800 L290 800 Z' fill='rgba(255,255,255,0.15)'/%3E%3Cpath d='M290 260 C200 360 105 420 0 540 L0 800 L290 800 Z' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.rn-drawer > * {
    position: relative;
    z-index: 1;
}

.rn-drawer.is-open { transform: translateX(0); }

.rn-drawer__user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin: -0.4rem -1rem 1.1rem;
    padding: 1.15rem 1rem 1.1rem;
    background: rgba(22, 52, 63, 0.7);
    border-bottom: 0;
    text-align: center;
}

.rn-drawer__avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.rn-drawer__user strong {
    display: block;
    font-size: 1.05rem;
}

.rn-drawer__user span {
    font-size: 0.8rem;
    opacity: 0.85;
}

.rn-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rn-drawer nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.rn-drawer button {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.55rem 0.55rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.rn-drawer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.rn-drawer__icon svg {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.rn-drawer__label {
    flex: 1;
    min-width: 0;
}

.rn-drawer button:hover,
.rn-drawer button.is-active {
    background: rgba(255, 255, 255, 0.14);
}

.rn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
}

.rn-services-page {
    gap: 0.85rem !important;
    padding: 1rem 1rem 1.35rem !important;
    overflow: auto;
}

.rn-services-lead {
    margin: 0.15rem 0 0.35rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rn-teal);
}

.rn-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.35rem 0 0.15rem;
}

.rn-section-title span {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rn-teal);
}

.rn-section-title i {
    flex: 1;
    height: 1px;
    background: rgba(26, 43, 50, 0.14);
}

.rn-grid--services {
    padding: 0.35rem 0 0.5rem;
    gap: 0.85rem;
}

.rn-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 0.7rem;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(21, 159, 183, 0.12);
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.rn-service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 22px;
    background: rgba(21, 159, 183, 0.1);
    overflow: hidden;
}

.rn-service-card img,
.rn-service-card__icon img {
    width: 64px;
    height: 56px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    aspect-ratio: auto;
}

.rn-service-card__label,
.rn-service-card span:not(.rn-service-card__icon):not(.rn-service-card__hint) {
    font-size: 0.9rem;
    font-weight: 700;
}

.rn-service-card__hint {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--rn-teal);
}

.rn-offers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem 0 0.5rem;
}

.rn-offer-card {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(21, 159, 183, 0.14);
    box-shadow: 0 6px 14px rgba(21, 159, 183, 0.08);
}

.rn-offer-card__img {
    width: 6.75rem;
    min-height: 6.35rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8f1f3;
}

.rn-offer-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 0.9rem;
    min-width: 0;
}

.rn-offer-card__body strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rn-ink);
}

.rn-offer-card__body span {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--rn-muted);
}

.rn-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 1rem 1.2rem;
}

#rnProducts .rn-panel__main--flush {
    padding-bottom: 0.5rem;
}

.rn-cart-bar {
    flex-shrink: 0;
    padding: 0.85rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(26, 43, 50, 0.12);
    background: #fff;
}

.rn-cart-bar__summary {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.rn-cart-bar__summary[hidden] {
    display: none !important;
}

.rn-cart-bar__summary strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rn-teal-deep);
}

.rn-cart-bar__btn {
    width: 100%;
    box-shadow: 0 8px 20px rgba(21, 159, 183, 0.28);
}

.rn-cart-bar__btn:disabled {
    opacity: 0.45;
    box-shadow: none;
}

.rn-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(26, 43, 50, 0.05);
}

.rn-product img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #e8f1f3;
}

.rn-product__meta { flex: 1; min-width: 0; }
.rn-product__meta strong { display: block; font-size: 0.92rem; }
.rn-product__meta span { font-size: 0.84rem; color: var(--rn-muted); }

.rn-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rn-stepper button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: var(--rn-teal);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.rn-stepper button:disabled { opacity: 0.4; }

.rn-chips {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.75rem 1rem 0.25rem;
}

.rn-chip {
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--rn-line);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.rn-chip.is-active {
    background: var(--rn-teal);
    border-color: var(--rn-teal);
    color: #fff;
}

.rn-empty,
.rn-loading {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--rn-muted);
    font-size: 0.92rem;
}

.rn-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    max-height: 78%;
    display: none;
    flex-direction: column;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -12px 32px rgba(26, 43, 50, 0.16);
}

.rn-sheet.is-open { display: flex; }

.rn-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(10, 20, 24, 0.45);
}

.rn-modal-backdrop[hidden] {
    display: none !important;
}

.rn-modal {
    width: 100%;
    max-height: 78%;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.15rem 1.15rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 -8px 28px rgba(26, 43, 50, 0.16);
}

.rn-modal__handle {
    width: 40px;
    height: 4px;
    margin: 0 auto 1rem;
    border-radius: 99px;
    background: rgba(26, 43, 50, 0.18);
}

.rn-modal__title {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rn-teal);
}

.rn-modal__body {
    overflow: auto;
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--rn-ink);
    white-space: pre-wrap;
}

.rn-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.rn-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem 0.5rem;
}

.rn-sheet__body {
    overflow: auto;
    padding: 0.5rem 1.1rem 1rem;
}

.rn-cart-section {
    margin-bottom: 0.65rem;
    border: 1px solid var(--rn-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.rn-cart-section__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 0;
    background: rgba(21, 159, 183, 0.08);
    color: var(--rn-teal);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.rn-cart-section__chevron {
    transition: transform 0.2s ease;
}

.rn-cart-section:not(.is-open) .rn-cart-section__chevron {
    transform: rotate(-90deg);
}

.rn-cart-section__body {
    display: none;
    padding: 0.35rem 0.75rem 0.75rem;
}

.rn-cart-section.is-open .rn-cart-section__body {
    display: block;
}

.rn-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--rn-line);
}

.rn-cart-item:last-of-type {
    border-bottom: 0;
}

.rn-cart-item__meta strong {
    display: block;
    font-size: 0.92rem;
}

.rn-cart-item__meta span {
    font-size: 0.82rem;
    color: var(--rn-muted);
}

.rn-cart-section__subtotal {
    margin-top: 0.55rem;
    text-align: right;
    font-size: 0.88rem;
    color: var(--rn-teal);
}

.rn-sheet__totals {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rn-line);
}

.rn-sheet__row--total {
    margin-top: 0.35rem;
    font-size: 1.02rem;
}

.rn-cart-warning {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #b42318;
    line-height: 1.4;
}

.rn-sheet__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.92rem;
}

.rn-sheet__row strong { font-weight: 600; }

.rn-calling {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(180deg, #e8f7f9 0%, #f7fbfc 100%);
}

.rn-pulse {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(21, 159, 183, 0.18);
    display: grid;
    place-items: center;
    animation: rn-pulse 1.6s ease infinite;
}

.rn-pulse span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rn-teal);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

.rn-code-value {
    margin: 0.5rem 0 0.75rem;
    text-align: center;
    font-family: Fraunces, Georgia, serif;
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--rn-teal);
}

.rn-stars {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.rn-stars button {
    border: 0;
    background: transparent;
    color: #d0d7dc;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem;
}

.rn-stars button.is-on {
    color: #ffc107;
}

.rn-status-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--rn-teal);
}

.rn-status-pill.is-arrived { background: #f0a53a; }
.rn-status-pill.is-done { background: #18a66a; }

.rn-order-hero {
    margin: 0.85rem 1rem 0;
    padding: 1.1rem;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #287e8e 0%, #063d59 100%);
}

.rn-order-hero__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.rn-order-hero__cleaner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rn-order-hero__cleaner img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.2);
}

.rn-order-meta {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.85rem;
    font-size: 0.88rem;
    opacity: 0.95;
}

.rn-code-card {
    margin: 0.85rem 1rem;
    padding: 1rem;
    border-radius: 16px;
    color: #fff;
    background: var(--rn-teal);
    border: 0;
    width: calc(100% - 2rem);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.rn-code-card.is-arrived { background: #f0a53a; }
.rn-code-card.is-done { background: #18a66a; cursor: default; }

.rn-code-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1rem;
}

.rn-steps {
    margin: 0.25rem 1rem 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(26, 43, 50, 0.05);
}

.rn-step {
    display: flex;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--rn-muted);
}

.rn-step.is-done,
.rn-step.is-current {
    color: var(--rn-ink);
    font-weight: 600;
}

.rn-step__dot {
    width: 10px;
    height: 10px;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: #d0d7dc;
    flex-shrink: 0;
}

.rn-step.is-done .rn-step__dot { background: #18a66a; }
.rn-step.is-current .rn-step__dot { background: var(--rn-teal); }

.rn-order-card,
.rn-wallet-card {
    margin: 0.75rem 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(26, 43, 50, 0.05);
}

.rn-note-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(26, 43, 50, 0.1);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(26, 43, 50, 0.05);
}

.rn-note-card.is-read {
    background: #f3f6f8;
    box-shadow: none;
}

.rn-note-card.is-unread {
    border-color: rgba(21, 159, 183, 0.28);
    box-shadow: 0 4px 14px rgba(21, 159, 183, 0.12);
}

.rn-note-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.rn-note-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.rn-note-card.is-read h3 {
    font-weight: 500;
}

.rn-note-dot {
    width: 8px;
    height: 8px;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: var(--rn-teal);
    flex-shrink: 0;
}

.rn-note-type {
    margin: 0.35rem 0 0;
    color: var(--rn-teal-deep);
    font-size: 0.75rem;
    font-weight: 600;
}

.rn-note-body {
    margin: 0.45rem 0 0;
    color: var(--rn-ink);
    font-size: 0.88rem;
    line-height: 1.4;
}

.rn-note-time {
    display: block;
    margin-top: 0.55rem;
    color: var(--rn-muted);
    font-size: 0.72rem;
}

.rn-order-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}

.rn-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(21, 159, 183, 0.12);
    color: var(--rn-teal-deep);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.rn-wallet-balance {
    font-family: Fraunces, Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--rn-teal-deep);
}

.rn-tx {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-top: 1px solid var(--rn-line);
    font-size: 0.88rem;
}

.rn-appbar--teal {
    background: linear-gradient(135deg, #169fb7 0%, #0e7487 100%);
}

.rn-icon-btn--light {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.rn-sheet__foot {
    flex-shrink: 0;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rn-line);
    background: #fff;
}

.rn-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.rn-feedback--compact {
    padding: 1.5rem 0.5rem;
}

.rn-feedback__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rn-ink);
}

.rn-feedback__msg {
    margin: 0;
    max-width: 18rem;
    color: var(--rn-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.rn-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1rem 1.25rem;
}

.rn-req-card {
    overflow: hidden;
    border: 1px solid rgba(26, 43, 50, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(26, 43, 50, 0.05);
}

.rn-req-card__main {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.rn-req-card__status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.rn-req-card__status--ok { background: rgba(24, 166, 106, 0.12); color: #15804d; }
.rn-req-card__status--warn { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.rn-req-card__status--bad { background: rgba(185, 35, 24, 0.1); color: #b42318; }
.rn-req-card__status--muted { background: rgba(90, 113, 122, 0.12); color: #5a717a; }
.rn-req-card__status--teal { background: rgba(21, 159, 183, 0.12); color: var(--rn-teal-deep); }

.rn-req-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.rn-req-card__status-text { flex: 1; }
.rn-req-card__code {
    font-weight: 600;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

.rn-req-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 0.95rem 0.85rem;
}

.rn-req-card__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.rn-req-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.rn-req-chip--direct {
    background: #e6f7f5;
    color: #0f766e;
}

.rn-req-chip--pickup {
    background: #fff4e8;
    color: #c2410c;
}

.rn-req-card__date,
.rn-req-card__cleaner {
    color: var(--rn-muted);
    font-size: 0.82rem;
}

.rn-req-card__amount {
    flex-shrink: 0;
    color: var(--rn-teal-deep);
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rn-req-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0 0.95rem 0.9rem;
}

.rn-req-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(26, 43, 50, 0.14);
    border-radius: 10px;
    background: #fff;
    color: var(--rn-ink);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.rn-req-action--primary {
    border-color: transparent;
    background: var(--rn-teal);
    color: #fff;
}

.rn-req-action.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

#rnWallet .rn-panel__main--flush {
    background: #f4f8fb;
}

.rn-wallet-hero {
    margin: 0.9rem 1rem 0;
    padding: 1.2rem 1.15rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #18a4bd 0%, #0e7487 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(14, 116, 135, 0.28);
}

.rn-wallet-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rn-wallet-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.rn-wallet-hero__pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 600;
}

.rn-wallet-hero .rn-wallet-balance {
    margin-top: 0.35rem;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
}

.rn-wallet-hero__note {
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
}

.rn-wallet-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: calc(100% - 2rem);
    min-height: 3.4rem;
    margin: 0.85rem 1rem 0;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(21, 159, 183, 0.2);
    border-radius: 16px;
    background: #fff;
    color: var(--rn-ink);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26, 43, 50, 0.05);
}

.rn-wallet-add__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: rgba(21, 159, 183, 0.12);
    color: var(--rn-teal);
    font-size: 1.1rem;
    line-height: 1;
}

.rn-wallet-section {
    margin: 1.15rem 1rem 1.4rem;
}

.rn-wallet-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rn-wallet-section__head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.rn-wallet-count {
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(26, 43, 50, 0.1);
    border-radius: 999px;
    background: #fff;
    color: var(--rn-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.rn-tx-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.55rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(26, 43, 50, 0.04);
}

.rn-tx-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #6e7f90;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rn-tx-avatar.is-credit { background: #18a66a; }

.rn-tx-meta {
    flex: 1;
    min-width: 0;
}

.rn-tx-meta strong {
    display: block;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rn-tx-right {
    text-align: right;
    flex-shrink: 0;
}

.rn-tx-right strong {
    display: block;
    font-size: 0.88rem;
}

.rn-tx-right strong.is-credit { color: #18a66a; }

.rn-tx-status {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--rn-muted);
}

.rn-tx-status--completed { color: #18a66a; }
.rn-tx-status--failed,
.rn-tx-status--invalid { color: var(--rn-danger); }

#rnWalletMore {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

@keyframes rn-stage-in { to { opacity: 1; } }
@keyframes rn-phone-in { to { opacity: 1; transform: translateY(0); } }
@keyframes rn-panel-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rn-exit-up { to { opacity: 0; transform: translateY(-36px); } }
@keyframes rn-spin { to { transform: rotate(360deg); } }
@keyframes rn-pulse {
    0% { transform: scale(0.92); opacity: 0.85; }
    70% { transform: scale(1.08); opacity: 0.35; }
    100% { transform: scale(0.92); opacity: 0.85; }
}

@media (max-width: 900px) {
    .rn-site-header {
        display: none !important;
    }
    .rn-stage {
        padding: 0;
        display: block;
        min-height: 100dvh;
        background: var(--rn-screen);
    }
    .rn-stage::before { display: none; }
    .rn-stage-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        grid-template-columns: none;
        width: 100%;
        gap: 0;
    }
    .rn-phone-hold {
        grid-column: auto;
        width: 100%;
        min-height: 0;
        display: block;
        overflow: hidden;
    }
    .rn-pitch {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
        padding: 1.5rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid rgba(26, 43, 50, 0.08);
        animation: none;
    }
    .rn-phone-hand {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .rn-phone {
        position: relative;
        width: 100%;
        height: 100dvh;
        max-height: none;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        transform: none;
        animation: none;
    }
    .rn-phone::before,
    .rn-phone::after,
    .rn-island,
    .rn-statusbar {
        display: none !important;
    }
    .rn-screen,
    .rn-phone-hold .rn-screen {
        border-radius: 0 !important;
        min-height: 100%;
        padding-top: 0;
    }
    .rn-appbar {
        padding-top: calc(0.55rem + env(safe-area-inset-top));
        border-radius: 0;
    }
    .rn-pitch {
        max-width: none;
        padding: 1.5rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid rgba(26, 43, 50, 0.08);
        animation: none;
    }
    .rn-pitch__copy {
        font-size: 1.05rem;
    }
    .rn-pitch__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .rn-pitch__stores {
        justify-content: center;
        width: 100%;
    }
    .rn-pitch__stores img {
        margin: 0 auto;
        height: 3.15rem;
    }
    .rn-pitch__contact {
        width: 100%;
    }
}

/* Real phones / tablets: never show the decorative hand or phone bezel */
@media (hover: none) and (pointer: coarse) {
    .rn-site-header {
        display: none !important;
    }
    .rn-phone-hand {
        display: none !important;
        visibility: hidden !important;
    }
    .rn-phone-hold {
        width: 100%;
        min-height: 0;
    }
    .rn-phone {
        width: 100%;
        max-width: none;
        height: 100dvh;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .rn-phone::before,
    .rn-phone::after,
    .rn-island,
    .rn-statusbar {
        display: none !important;
    }
    .rn-screen,
    .rn-phone-hold .rn-screen {
        border-radius: 0 !important;
        padding-top: 0;
    }
    .rn-appbar {
        padding-top: calc(0.55rem + env(safe-area-inset-top));
        border-radius: 0;
    }
    .rn-stage {
        padding: 0;
        display: block;
        min-height: 100dvh;
        background: var(--rn-screen);
    }
    .rn-stage-layout {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .rn-pitch {
        max-width: none;
        padding: 1.5rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid rgba(26, 43, 50, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rn-stage, .rn-phone, .rn-panel.is-active {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .rn-panel.is-leaving { display: none; }
}
