/* VedicAstro Premium Vedic Theme CSS */
:root {
    --bg-dark: #0b1a24;
    --bg-darker: #071219;
    --bg-card: #122430;
    --bg-card-hover: #193140;
    --bg-input: #0e1e29;
    --accent-teal: #00d5a2;
    --accent-teal-hover: #00bf91;
    --accent-gold: #f5c563;
    --accent-gold-light: #fdf4dc;
    --accent-pink: #f59e0b;
    --accent-cyan: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-gold: #fdf4dc;
    --border-color: rgba(255, 255, 255, 0.09);
    --border-active: #00d5a2;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 213, 162, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
}

.cinzel-title {
    font-family: 'Cinzel', 'Outfit', serif;
    color: var(--accent-gold-light);
    letter-spacing: 0.5px;
}

/* App Mobile Screen Container Frame for Desktop & Mobile */
.app-container {
    width: 100%;
    max-width: 460px;
    min-height: 840px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 213, 162, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

@media (max-width: 520px) {
    body { padding: 0; }
    .app-container {
        border-radius: 0;
        border: none;
        min-height: 100vh;
        box-shadow: none;
    }
}

/* Top App Header */
.app-header {
    padding: 16px 20px 12px 20px;
    background: rgba(11, 26, 36, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.back-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.back-btn:hover {
    transform: translateX(-3px);
}

.app-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
}

.app-brand img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.header-step-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hamburger-menu-btn {
    background: transparent !important;
    border: none !important;
    color: var(--accent-gold-light) !important;
    font-size: 1.35rem !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.hamburger-menu-btn:hover {
    color: var(--accent-teal) !important;
    transform: scale(1.1);
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 7%;
    background: var(--accent-teal);
    border-radius: 10px;
    transition: width 0.35s ease;
}

/* App Main Body */
.app-body {
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.quiz-step {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: fadeInStep 0.16s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.quiz-step.active {
    display: flex;
}

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

.step-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--accent-gold-light);
    font-family: 'Cinzel', serif;
}

.step-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: -8px;
    line-height: 1.5;
}

/* Options Cards */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.option-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.option-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 213, 162, 0.4);
    transform: translateY(-2px);
}

.option-card.selected {
    background: rgba(0, 213, 162, 0.12);
    border-color: var(--accent-teal);
    box-shadow: 0 0 16px rgba(0, 213, 162, 0.2);
}

.option-icon {
    font-size: 1.4rem;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

/* Zodiac 3-Sign Carousel */
.zodiac-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0 25px 0;
}

.zodiac-side-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transform: scale(0.85);
    transition: all 0.3s ease;
}

.zodiac-side-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.zodiac-side-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.zodiac-center-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(1.15);
    transition: all 0.3s ease;
}

.zodiac-center-item img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 213, 162, 0.3));
}

.zodiac-center-item span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    margin-top: 8px;
    font-family: 'Cinzel', serif;
}

/* Date Picker Wheel & Selects */
.date-picker-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.date-selects {
    display: flex;
    gap: 10px;
    width: 100%;
}

.date-selects select:nth-child(1) { flex: 1.35; }
.date-selects select:nth-child(2) { flex: 0.9; }
.date-selects select:nth-child(3) { flex: 1.1; }

.form-select, .form-input {
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    color: #fff;
    padding: 14px 12px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 500;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 10px;
    padding-right: 28px;
}

.form-input {
    background-image: none;
    cursor: text;
    padding-right: 14px;
}

.form-select option {
    background: #0b1a24;
    color: #fff;
    padding: 8px;
}

.form-select:focus, .form-input:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 15px rgba(0, 213, 162, 0.3);
    background-color: #11222e;
}

/* Optional Skip Step Buttons & Helpful Notes */
.btn-skip-step {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
    touch-action: manipulation;
}

.btn-skip-step:hover {
    color: var(--accent-gold-light);
    background: rgba(245, 197, 99, 0.08);
    text-decoration: none;
}

.btn-reset-date {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    touch-action: manipulation;
}

.btn-reset-date:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
}

.date-optional-note {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    width: 100%;
}

.city-input-wrap {
    position: relative;
    width: 100%;
}

.city-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-teal);
    font-size: 1rem;
    pointer-events: none;
}

.city-input {
    padding-left: 38px !important;
}

/* Palm Scan Guide Box */
.palm-scan-guide-box {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 8px 0 16px 0;
    overflow: hidden;
}

.hand-visual-svg, .hand-visual-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45));
    transition: opacity 0.3s ease;
}

.reticle-corner {
    display: none !important;
}

/* Floating Badges pointing to lines */
.palm-line-badge {
    position: absolute;
    background: rgba(11, 26, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.badge-children { top: 18px; left: 50%; transform: translateX(-50%); }
.badge-career { top: 100px; left: 15px; }
.badge-marriage { top: 100px; right: 15px; }
.badge-change { bottom: 65px; left: 10px; }
.badge-money { bottom: 65px; right: 15px; }

.laser-bar {
    position: absolute;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
    box-shadow: 0 0 15px var(--accent-teal);
    animation: laserMotion 2.8s ease-in-out infinite alternate;
    z-index: 3;
}

@keyframes laserMotion {
    0% { top: 25%; }
    100% { top: 85%; }
}

/* Primary Action Buttons */
.btn-primary-custom {
    background: var(--accent-teal);
    color: #071219;
    border: none;
    border-radius: 30px;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 213, 162, 0.35);
}

.btn-primary-custom:hover {
    background: var(--accent-teal-hover);
    color: #071219;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 213, 162, 0.5);
}

.link-secondary-upload {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    margin-top: 10px;
    transition: opacity 0.2s ease;
}

.link-secondary-upload:hover {
    opacity: 0.85;
    color: #fff;
}

/* Disclaimer Texts */
.scan-disclaimer-text {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.45;
    margin-top: 12px;
}

/* Step 1 Horizontal Gender Grid Cards - Centered & Responsive */
.gender-cards-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 28px auto 20px auto;
    width: 100%;
    max-width: 380px;
    flex-wrap: nowrap;
}

.gender-card {
    flex: 1 1 140px;
    max-width: 165px;
    min-height: 165px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (max-width: 360px) {
    .gender-cards-grid {
        gap: 10px;
        margin: 20px auto 16px auto;
    }
    .gender-card {
        padding: 20px 8px;
        min-height: 150px;
    }
}

.gender-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-teal);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 213, 162, 0.25);
}

.gender-card.selected {
    background: rgba(0, 213, 162, 0.15);
    border-color: var(--accent-teal);
    box-shadow: 0 0 24px rgba(0, 213, 162, 0.4);
}

.gender-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fdf4dc 0%, #f5c563 100%);
    color: #071219;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 16px rgba(245, 197, 99, 0.45);
}

.gender-card-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Cinzel', serif;
}

/* Step 1 Hero Watermark Background */
.step1-hero-bg {
    position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(0, 213, 162, 0.12) 0%, transparent 70%);
    padding: 20px 10px 10px 10px;
    border-radius: 20px;
}

.step1-palm-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

/* Step 1 Footer Policy Links */
.step1-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

.step1-footer a {
    color: var(--accent-gold-light);
    text-decoration: none;
    transition: color 0.2s;
}

.step1-footer a:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* Real-Time PalmScan Frame & Overlay Styles */
.ps-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 8px auto 12px auto;
    border-radius: 24px;
    overflow: hidden;
    background: #071219;
    border: 1px solid rgba(0, 213, 162, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-frame .ps-img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    transition: opacity 0.3s ease;
}

.ps-frame .ps-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.ps-frame .ps-wash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 213, 162, 0.28) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ps-frame.scanning .ps-wash {
    opacity: 1;
    animation: psLaserSweep 2.2s ease-in-out infinite alternate;
}

@keyframes psLaserSweep {
    0% { transform: translateY(-70%); }
    100% { transform: translateY(70%); }
}

/* Palm Lines Glowing Splines */
.ps-frame .pl {
    fill: none;
    stroke: var(--c, #00e5ff);
    stroke-width: 5px !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px var(--c, #00e5ff));
    stroke-dasharray: var(--len, 1400);
    stroke-dashoffset: var(--len, 1400);
    opacity: 0.95;
    animation: plReveal 3.0s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--i, 0) * 0.25s);
}

@keyframes plReveal {
    0% { stroke-dashoffset: var(--len, 1400); }
    100% { stroke-dashoffset: 0; }
}

/* Fingertip Landmark Dots */
.ps-frame .pd {
    fill: #00e5ff;
    stroke: #ffffff;
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 10px #00e5ff);
    opacity: 0;
    transform-origin: center;
    animation: pdPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i, 0) * 0.18s + 0.3s);
}

@keyframes pdPopIn {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

/* Live Progress & Status bar */
.scan-live-progress-box {
    margin-top: 14px;
    text-align: center;
}

.scan-live-progress-box .progress-percent {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 213, 162, 0.6);
}

.scan-live-progress-box .progress-stage-label {
    font-size: 0.9rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-top: 4px;
    min-height: 24px;
}

/* Score Cards in Step 13 (Teaser) */
.scores-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 12px 0;
}

.score-card {
    background: rgba(11, 26, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.score-title {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.score-num {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--accent-teal);
    font-family: 'Outfit', sans-serif;
}

.score-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #00d5a2, #0284c7);
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Palm Lines Color-Coded Legend & Floating Tags */
.palm-lines-legend-card {
    background: rgba(11, 26, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    max-width: 440px;
    margin: 14px auto 6px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.legend-header-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.palm-lines-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    animation: fadeInLegend 0.35s ease forwards;
}

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

.legend-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 30, 41, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 8px 10px;
    backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.legend-badge:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.legend-badge.heart-badge { border-left: 4px solid #ff5d8a; }
.legend-badge.head-badge  { border-left: 4px solid #ffc24b; }
.legend-badge.life-badge  { border-left: 4px solid #3cc9f5; }
.legend-badge.fate-badge  { border-left: 4px solid #2fe0a8; }

.legend-badge.scanning-active {
    background: rgba(22, 54, 75, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.legend-badge.scanning-complete {
    border-color: rgba(47, 224, 168, 0.6) !important;
    box-shadow: 0 0 10px rgba(47, 224, 168, 0.25);
}

.legend-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
    overflow: hidden;
}

.legend-line-name {
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.legend-line-desc {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Floating SVG Line Tags on Hand - Hidden so lines are clearly visible */
.pl-tag {
    display: none !important;
}

/* Ultra-Snappy Selection & Mobile Touch Optimization */
.option-card {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.08s ease, border-color 0.1s ease, background 0.1s ease !important;
}

.option-card:active {
    transform: scale(0.97) !important;
    border-color: var(--accent-teal) !important;
}

.option-card.selected {
    border-color: var(--accent-teal) !important;
    background: rgba(0, 229, 255, 0.08) !important;
}

.btn-primary-custom, .goal-pill, .link-secondary-upload {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* ============================================================
   Live Palm Camera & Webcam Viewfinder Modal Styles
   ============================================================ */
.palm-camera-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 10, 16, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    animation: palmCamFadeIn 0.25s ease-out;
}

@keyframes palmCamFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.palm-camera-modal-dialog {
    width: 100%;
    max-width: 440px;
    background: #07131b;
    border: 1px solid rgba(0, 213, 162, 0.35);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 213, 162, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.palm-cam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 26, 36, 0.7);
}

.palm-cam-dot {
    width: 10px;
    height: 10px;
    background: #00d5a2;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d5a2;
    animation: palmCamPulse 1.6s ease-in-out infinite alternate;
}

@keyframes palmCamPulse {
    from { transform: scale(0.9); opacity: 0.7; }
    to { transform: scale(1.2); opacity: 1; }
}

.palm-cam-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.palm-cam-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

.palm-cam-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.palm-cam-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.palm-cam-viewfinder-wrap {
    padding: 12px 14px;
}

.palm-cam-viewfinder {
    position: relative;
    width: 100%;
    height: 360px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

#palm-cam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.palm-cam-reticle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.palm-guide-svg {
    width: 80%;
    height: 85%;
    filter: drop-shadow(0 0 10px rgba(0, 213, 162, 0.5));
}

.palm-guide-path {
    animation: palmGuideDash 4s linear infinite;
}

@keyframes palmGuideDash {
    to { stroke-dashoffset: -40; }
}

.palm-cam-scanline {
    position: absolute;
    top: 15%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e5ff, #00d5a2, transparent);
    box-shadow: 0 0 12px #00e5ff;
    animation: palmCamLaser 2.4s ease-in-out infinite alternate;
}

@keyframes palmCamLaser {
    0% { top: 15%; opacity: 0.3; }
    50% { opacity: 0.9; }
    100% { top: 85%; opacity: 0.3; }
}

.palm-cam-hint {
    position: absolute;
    bottom: 12px;
    background: rgba(3, 10, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.palm-cam-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(11, 26, 36, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
}

.btn-cam-switch, .btn-cam-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cam-switch:hover, .btn-cam-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-cam-snap {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0 10px;
}

.snap-outer-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #00d5a2;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, border-color 0.2s;
    box-shadow: 0 0 15px rgba(0, 213, 162, 0.4);
}

.snap-inner-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d5a2, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 0 10px rgba(0, 213, 162, 0.5);
    transition: transform 0.15s, background 0.2s;
}

.btn-cam-snap:hover .snap-outer-ring {
    transform: scale(1.06);
    border-color: #00e5ff;
}

.btn-cam-snap:active .snap-inner-circle {
    transform: scale(0.92);
}

.snap-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #00d5a2;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .palm-cam-viewfinder {
        height: 320px;
    }
    .palm-camera-modal-dialog {
        max-width: 96vw;
    }
}



