/* EatOut AI Restaurant Claim Funnel */

body.eatout-restaurant-funnel-body {
    margin: 0;
    background: #eef2f5;
    overflow: hidden;
}

.er-funnel {
    font-family: 'Inter', sans-serif;
}

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

.er-app {
    width: 100%;
    max-width: 430px;
    margin: -20px auto;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f6f8fb);
}

.er-screen {
    position: absolute;
    inset: 0;
    padding: 28px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: 0.45s ease;
}

.er-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.er-screen--enter {
    opacity: 0;
    transform: translateX(30px);
}

.er-screen--leave {
    opacity: 0;
    transform: translateX(-24px);
    transition: 0.22s ease;
}

.er-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 18px;
    border-radius: 999px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.er-logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00d563;
    box-shadow: 0 0 12px rgba(0, 213, 99, 0.7);
    flex-shrink: 0;
}

.er-funnel h1 {
    font-size: 42px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -2px;
    color: #111827;
    margin: 0 0 18px;
}

.er-green {
    color: #00c853;
}

.er-sub {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.er-hero {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 28px;
    margin-bottom: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: block;
}

.er-button {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #12d65c, #09b44d);
    color: white;
    padding: 20px;
    border-radius: 22px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 20px 40px rgba(18, 214, 92, 0.25);
    transition: 0.25s;
    font-family: inherit;
}

.er-button:hover {
    transform: translateY(-2px);
}

.er-button--dark {
    background: #111827;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.2);
}

.er-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.er-input {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 18px;
    border-radius: 18px;
    color: #111827;
    font-size: 16px;
    margin-bottom: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    font-family: inherit;
}

.er-input:focus {
    outline: none;
    border-color: #00d563;
}

.er-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.45;
}

.er-places-hint {
    margin: -8px 0 12px;
}

.er-search-block {
    margin-bottom: 8px;
}

.er-search-input {
    border-color: #bbf7d0;
    box-shadow: 0 5px 20px rgba(0, 213, 99, 0.08);
}

.er-search-help {
    font-size: 13px;
    color: #6b7280;
    margin: -4px 0 20px;
    line-height: 1.45;
}

.er-details-section {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.er-details-section.is-linked {
    border-color: #bbf7d0;
    box-shadow: 0 10px 25px rgba(0, 213, 99, 0.08);
}

.er-details-heading {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #111827;
}

.er-details-section .er-input,
.er-details-section .er-textarea {
    margin-bottom: 14px;
}

.er-details-section .er-profile-label:first-of-type {
    margin-top: 0;
}

.er-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.er-option {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 22px;
    border-radius: 24px;
    font-weight: 600;
    color: #111827;
    transition: 0.25s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
}

.er-option:hover {
    border-color: #00d563;
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(0, 213, 99, 0.12);
}

.er-option.selected {
    border-color: #00d563;
    background: #f0fdf4;
    color: #111827;
}

.er-option.selected:hover {
    color: #111827;
}

.er-funnel button.er-option {
    color: #111827;
}

.er-review {
    background: white;
    border: 1px solid #edf0f2;
    padding: 24px;
    border-radius: 26px;
    margin-bottom: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.er-stars {
    color: #ffb800;
    font-size: 20px;
    margin-bottom: 12px;
}

.er-review-text {
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
}

.er-avatar-row {
    display: flex;
    margin-bottom: 24px;
}

.er-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -10px;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.er-avatar:first-child {
    margin-left: 0;
}

.er-success-box {
    background: white;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    margin-top: 40px;
}

.er-success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12d65c, #09b44d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 42px;
    color: white;
    box-shadow: 0 20px 40px rgba(18, 214, 92, 0.25);
}

.er-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 40px;
}

.er-card {
    background: white;
    border: 1px solid #edf0f2;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.er-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.er-card-sub {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.er-locked {
    position: relative;
    opacity: 0.55;
    filter: grayscale(0.2);
}

.er-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(3px);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.er-lock-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00d563;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 14px;
    box-shadow: 0 15px 30px rgba(0, 213, 99, 0.25);
}

.er-lock-text {
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.er-unlock-btn {
    background: #111827;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.er-stat {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    margin-top: 16px;
}

.er-stat-label {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 6px;
}

.er-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

.er-stat-green {
    color: #00c853;
}

.er-login-panel {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
}

.er-login-panel p {
    margin: 0 0 12px;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}

.er-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.er-connected-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.er-paywall-note {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .er-funnel h1 {
        font-size: 36px;
    }
}

/* Dashboard shell + sticky bottom nav (matches EatOut member app) */
.er-funnel {
    --er-nav-h: 64px;
    --er-nav-inactive: #3d4f63;
    --er-nav-active: #22a04b;
}

body.er-has-dashboard-nav .er-app {
    padding-bottom: calc(var(--er-nav-h) + env(safe-area-inset-bottom, 0px));
}

body.er-has-dashboard-nav .er-screen {
    padding-bottom: calc(var(--er-nav-h) + env(safe-area-inset-bottom, 0px) + 72px);
}

.er-dashboard-layout {
    height: 100%;
    min-height: 100%;
}

body.er-has-dashboard-nav .er-dashboard {
    padding-bottom: calc(var(--er-nav-h) + env(safe-area-inset-bottom, 0px) + 24px);
}

body.er-has-dashboard-nav .er-profile-page .er-profile-section:last-child {
    margin-bottom: calc(var(--er-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

.er-screen--dashboard {
    /* bottom spacing handled by body.er-has-dashboard-nav .er-screen */
}

.er-nav[hidden] {
    display: none !important;
}

.er-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(100%, 430px);
    max-width: 430px;
    min-height: calc(var(--er-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 10px 24px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #e8ecef;
    z-index: 200;
    box-sizing: border-box;
}

.er-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    background: transparent !important;
    color: var(--er-nav-inactive);
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 2px;
    box-shadow: none !important;
}

.er-nav-btn.is-active {
    color: var(--er-nav-active);
}

.er-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.er-nav-svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.er-role-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.er-role-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.er-role-link span {
    color: #00c853;
    font-size: 18px;
}

.er-premium-banner {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    border-radius: 22px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.er-premium-banner p {
    margin: 0 0 12px;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.er-premium-banner a {
    display: inline-block;
    background: #00d563;
    color: #111827;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
}

.er-stat-value--calls {
    color: #2563eb;
}

.er-profile-page {
    padding-bottom: 0;
}

.er-profile-section {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.er-profile-section h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #111827;
}

.er-profile-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.er-profile-msg {
    font-size: 14px;
    margin: 0 0 12px;
    color: #059669;
}

.er-profile-msg.er-profile-msg--error {
    color: #b91c1c;
}

.er-profile-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
}

.er-profile-legal a {
    color: #6b7280;
    text-decoration: underline;
}

.er-profile-legal__sep {
    color: #d1d5db;
}

.er-profile-signout {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    margin-top: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.er-profile-signout:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.er-profile-delete {
    width: 100%;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
}

.er-profile-delete-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 10px 0 0;
    line-height: 1.5;
}

.er-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.er-modal[hidden] {
    display: none;
}

.er-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.er-modal__panel {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.er-modal__panel h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.er-modal__panel p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
}

.er-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.er-modal__actions button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.er-modal__cancel {
    background: #f3f4f6;
    color: #111827;
}

.er-modal__confirm {
    background: #b91c1c;
    color: #fff;
}
