* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-cream: #FDF8F6;
    --bg-blush: #F6E9E4;
    --surface-glass: rgba(255, 255, 255, 0.82);
    --surface-solid: #FFFFFF;
    --rose-primary: #C97A7E;
    --rose-deep: #B5656A;
    --rose-soft: #F3D9DA;
    --champagne: #D4AF7A;
    --sage-green: #5E9E8B;
    --sage-soft: #E4F1EC;
    --text-cocoa: #3D3133;
    --text-muted: #827375;
    --border-silk: rgba(201, 122, 126, 0.22);
    --shadow-soft: 0 14px 36px rgba(138, 92, 96, 0.11);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

body {
    background: #EFE4E0;
    color: var(--text-cocoa);
    font-family: var(--font-sans);
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.app-shell {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 100dvh;
    background: linear-gradient(165deg, var(--bg-cream) 0%, var(--bg-blush) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(84, 56, 58, 0.16);
}

/* Soft Ambient Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 240px;
    height: 240px;
    background: rgba(235, 186, 189, 0.45);
    top: -60px;
    right: -60px;
}

.orb-2 {
    width: 260px;
    height: 260px;
    background: rgba(226, 198, 163, 0.35);
    bottom: 60px;
    left: -80px;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: rgba(169, 212, 199, 0.28);
    top: 42%;
    right: -40px;
}

/* Header */
.club-header {
    position: relative;
    z-index: 10;
    padding: calc(14px + env(safe-area-inset-top)) 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-primary), var(--champagne));
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: var(--text-cocoa);
}

.brand-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--rose-deep);
    background: rgba(201, 122, 126, 0.14);
    padding: 3px 9px;
    border-radius: 20px;
}

.step-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 10px;
    background: rgba(130, 115, 117, 0.25);
    transition: all 0.35s ease;
}

.step-dots .dot.active {
    width: 22px;
    background: var(--rose-primary);
}

/* Screens Navigation */
.screen {
    position: relative;
    z-index: 5;
    flex: 1;
    display: none;
    padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
}

.screen.active {
    display: flex;
    animation: fadeSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.screen-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.center-col {
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding-top: 6px;
}

.space-between {
    justify-content: space-between;
    gap: 12px;
}

.pill-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--rose-deep);
    background: var(--surface-glass);
    border: 1px solid var(--border-silk);
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(201, 122, 126, 0.08);
}

/* Screen 1: VIP Silk Card */
.vip-card-wrapper {
    width: 100%;
    margin: 10px 0;
}

.vip-card {
    position: relative;
    width: 100%;
    border-radius: 28px;
    padding: 24px 22px;
    background: linear-gradient(145deg, #FFFFFF 0%, #F9ECE8 55%, #F2DDD6 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    text-align: left;
    overflow: hidden;
}

.card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmerSweep 5s infinite;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0%, 60% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.vip-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.vip-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--text-muted);
}

.vip-chip {
    width: 34px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(135deg, #E6C99E, #CFA66E);
    opacity: 0.85;
}

.vip-mission {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.24;
    color: var(--text-cocoa);
    margin-bottom: 20px;
}

.vip-mission em {
    font-style: italic;
    color: var(--rose-deep);
}

.vip-card-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid rgba(201, 122, 126, 0.16);
}

.soft-subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 340px;
}

.bio-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.bio-unlock-btn {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1.5px solid var(--rose-primary);
    background: var(--surface-solid);
    color: var(--rose-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(201, 122, 126, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.bio-unlock-btn:active {
    transform: scale(0.93);
    background: var(--rose-soft);
}

.bio-ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(201, 122, 126, 0.35);
    animation: softPulse 2.4s infinite ease-out;
}

@keyframes softPulse {
    0% { transform: scale(0.95); opacity: 0.9; }
    100% { transform: scale(1.22); opacity: 0; }
}

.bio-hint {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Screen 2: Voice Player & Vault */
.voice-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-silk);
    border-radius: 22px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(138, 92, 96, 0.07);
}

.voice-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.curator-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-primary), #E3A5A8);
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.curator-meta {
    flex: 1;
    min-width: 0;
}

.curator-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-cocoa);
}

.curator-role {
    font-size: 11.5px;
    color: var(--text-muted);
}

.voice-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--rose-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 122, 126, 0.3);
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 18px;
    gap: 3px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.waveform span {
    flex: 1;
    height: 5px;
    background: rgba(201, 122, 126, 0.35);
    border-radius: 4px;
    transition: height 0.2s ease, background 0.2s ease;
}

.waveform.playing span {
    background: var(--rose-primary);
    animation: waveDance 0.9s infinite ease-in-out alternate;
}

.waveform.playing span:nth-child(odd) {
    animation-delay: 0.2s;
}

.waveform.playing span:nth-child(3n) {
    animation-delay: 0.45s;
}

@keyframes waveDance {
    0% { height: 4px; }
    100% { height: 17px; }
}

.live-caption {
    font-size: 12.5px;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-cocoa);
}

/* Progress Ring */
.vault-center {
    display: flex;
    justify-content: center;
    margin: 2px 0;
}

.ring-container {
    position: relative;
    width: 156px;
    height: 156px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: rgba(255, 255, 255, 0.65);
    stroke: rgba(201, 122, 126, 0.16);
    stroke-width: 10;
}

.ring-fill {
    fill: none;
    stroke: var(--sage-green);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-center-text {
    position: absolute;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ring-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.ring-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--sage-green);
    margin: 2px 0;
}

.ring-sub {
    font-size: 10px;
    color: var(--text-muted);
}

/* Soft Toggles */
.toggles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 11px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(138, 92, 96, 0.05);
}

.toggle-item.active {
    background: #FFFFFF;
    border-color: rgba(94, 158, 139, 0.35);
    box-shadow: 0 6px 18px rgba(94, 158, 139, 0.12);
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-cocoa);
}

.toggle-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

.module-checkbox {
    display: none;
}

.soft-switch {
    position: relative;
    width: 44px;
    height: 26px;
    border-radius: 20px;
    background: #E6D8D6;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.soft-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.module-checkbox:checked + .soft-switch {
    background: var(--sage-green);
}

.module-checkbox:checked + .soft-switch::after {
    transform: translateX(18px);
}

/* Primary Soft Button */
.soft-primary-btn {
    width: 100%;
    border: none;
    border-radius: 26px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-deep) 100%);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(181, 101, 106, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-primary-btn:active {
    transform: scale(0.98);
}

/* Screen 3: Stories */
.stories-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stories-bars {
    display: flex;
    gap: 6px;
}

.s-bar {
    flex: 1;
    height: 3.5px;
    border-radius: 4px;
    background: rgba(201, 122, 126, 0.2);
    overflow: hidden;
}

.s-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--rose-primary);
    transition: width 0.3s ease;
}

.s-bar.done span,
.s-bar.active span {
    width: 100%;
}

.story-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rose-soft);
    color: var(--rose-deep);
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-cocoa);
}

.story-tag {
    font-size: 12px;
    color: var(--text-muted);
}

.story-stage {
    position: relative;
    flex: 1;
    background: var(--surface-solid);
    border-radius: 28px;
    padding: 24px 22px;
    border: 1px solid var(--border-silk);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    user-select: none;
}

.tap-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 4;
    cursor: pointer;
}

.tap-left { left: 0; }
.tap-right { right: 0; }

.story-quote-mark {
    font-family: var(--font-serif);
    font-size: 54px;
    line-height: 0.8;
    color: var(--rose-primary);
    opacity: 0.45;
    margin-bottom: 8px;
}

.story-quote {
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--text-cocoa);
    margin-bottom: 22px;
}

.story-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg-cream);
    padding: 12px;
    border-radius: 18px;
}

.metric-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-pill span {
    font-size: 11px;
    color: var(--text-muted);
}

.metric-pill strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-cocoa);
}

.metric-pill.highlight strong {
    color: var(--sage-green);
}

.metric-arrow {
    color: var(--rose-primary);
    font-weight: 700;
}

.stories-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.tap-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Screen 4: Personalized Card & Form */
.section-heading {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-cocoa);
    margin-top: 6px;
}

.section-heading em {
    font-style: italic;
    color: var(--rose-deep);
}

.personal-card {
    position: relative;
    border-radius: 26px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #FFFDFC 0%, #F5E5DF 60%, #ECD3CA 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.p-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.p-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

.p-status {
    font-size: 10px;
    font-weight: 700;
    color: var(--sage-green);
    background: var(--sage-soft);
    padding: 3px 9px;
    border-radius: 12px;
}

.p-card-balance {
    margin-bottom: 18px;
}

.p-bal-label {
    font-size: 11.5px;
    color: var(--text-muted);
}

.p-bal-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--sage-green);
    margin-top: 2px;
}

.p-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.p-holder-label {
    font-size: 9.5px;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
}

.p-holder-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-cocoa);
    margin-top: 2px;
    text-transform: uppercase;
}

.p-card-seal {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--rose-deep);
}

.soft-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-cocoa);
}

.field-group input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1.5px solid rgba(201, 122, 126, 0.25);
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--text-cocoa);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus {
    border-color: var(--rose-primary);
    box-shadow: 0 0 0 4px rgba(201, 122, 126, 0.12);
}

.privacy-note {
    font-size: 11.5px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.35;
}

.final-success {
    background: var(--surface-solid);
    border-radius: 24px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid rgba(94, 158, 139, 0.3);
    box-shadow: var(--shadow-soft);
}

.success-lotus {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--sage-green);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.final-success h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-cocoa);
    margin-bottom: 6px;
}

.final-success p {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-muted);
}
