/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    --bg-color: #030712;
    --surface-color: rgba(17, 24, 39, 0.4);
    --surface-hover: rgba(31, 41, 55, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);

    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;

    --accent-color: #00ffcc;
    /* BioMetrix Cyan */
    --accent-gold: #ffcc00;
    /* BioMetrix Gold */
    --accent-glow: rgba(0, 255, 204, 0.15);
    --accent-secondary: #3b82f6;
    /* Premium Blue */

    --border-radius-xl: 24px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    padding-bottom: 80px;
    /* Space for scrolling on mobile */
}

/* =========================================
   LAYOUT
   ========================================= */
.app-container {
    padding-bottom: 80px;
    /* Space for Bottom Nav Bar */
    max-width: 100dvw;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
}

@media (max-width: 600px) {
    .app-container {
        padding: 0px;
        padding-bottom: 80px;
        max-width: 100dvw;
        margin: 0 auto;
        width: 100%;
        min-height: 100vh;
    }
}


/* Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.user-info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.user-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.accent-text {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.date-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    padding: 10px 15px;
    border: 1px solid var(--border-color);
}

.date-widget .day-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-secondary);
}

.date-widget .month-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

/* =========================================
   REST TIMER
   ========================================= */
.rest-timer {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 900;
    transition: var(--transition);
    min-width: 280px;
}

.rest-timer.hidden {
    bottom: -100px;
    opacity: 0;
    pointer-events: none;
}

.rest-timer.done {
    background: rgba(57, 255, 20, 0.1);
    /* Glow red/green */
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.timer-info {
    display: flex;
    flex-direction: column;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.timer-target {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.timer-controls {
    display: flex;
    align-items: center;
}

.timer-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Inter';
    transition: var(--transition);
}

.timer-btn:active {
    transform: scale(0.95);
}

.rest-timer.done .timer-display {
    color: var(--accent-color);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

/* AUTH UI MOVED TO AuthComponent.css */

/* =========================================
   ANALYSIS MODAL (GEMINI SCORE)
   ========================================= */
/* =========================================
   ANALYSIS MODAL (BioMetrix COACH V2)
   ========================================= */
.analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10001;
    /* Above everything */
    padding: 20px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.analysis-modal.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
    /* Slight exit zoom */
}

.analysis-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

/* Header */
.analysis-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coach-avatar {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coach-meta {
    text-align: left;
    flex: 1;
}

.coach-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.coach-title {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
}

.cached-badge {
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

/* Ring */
.score-ring {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
}

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

.score-ring circle {
    fill: transparent;
    stroke-width: 7;
    stroke-linecap: round;
}

.ring-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.ring-value {
    stroke: var(--accent-color);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-text span {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.score-text small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-top: 5px;
}

.analysis-feedback {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-top: 20px;
    text-align: center;
    padding: 0 10px;
}

.analysis-feedback em {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* History */
.analysis-divider {
    width: 100%;
    margin: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.analysis-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #111827;
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analysis-history-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-entry {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.history-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.history-bar-wrap {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.history-bar {
    height: 100%;
    border-radius: 4px;
}

.history-score {
    font-weight: 800;
    font-size: 1rem;
    text-align: right;
}

.history-snippet {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
    margin-top: 5px;
}

.history-loading,
.history-empty {
    padding: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.close-analysis-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.close-analysis-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

@media (max-width: 480px) {
    .analysis-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .score-ring {
        width: 140px;
        height: 140px;
    }

    .score-text span {
        font-size: 3rem;
    }
}

.analysis-trigger-container {
    position: fixed;
    bottom: 80px;
    /* Right above the bottom-nav */
    left: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    z-index: 999;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-analysis {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px var(--accent-glow);
    transition: var(--transition);
}

.btn-analysis:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

/* =========================================
   MULTI-STEP REGISTRATION CSS
   ========================================= */
.step-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

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

.progress-fill {
    height: 100%;
    width: 25%;
    /* Initial value for Step 1 */
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.reg-step {
    display: none;
    flex-direction: column;
    gap: 15px;
    animation: slideIn 0.4s ease forwards;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0px;
}

.step-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-row .input-field {
    flex: 1;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 15px;
}

.btn-prev {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-next {
    flex: 1;
    margin-top: 0;
    /* Override */
}

/* Sports Grid & Pills */
.sports-grid,
.objectives-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.pill.selected {
    background: rgba(57, 255, 20, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.btn-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Dynamic Exp Inputs */
.sport-exp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sport-exp-row span {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.sport-exp-row input {
    width: 80px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.sport-exp-row input:focus {
    border-color: var(--accent-color);
}

.objectives-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 0;
}

.ai-spinner {
    font-size: 3rem;
    color: #00f0ff;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* =========================================
   BIM HELP MODAL (RoutineComponent)
   ========================================= */
.routine-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    padding: 20px;
}

.routine-modal-content {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.routine-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.routine-modal .modal-header h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0;
}

.routine-modal .modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.routine-modal .close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.routine-modal .close-modal:hover {
    color: var(--text-primary);
}

.routine-modal .ai-logo-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 204, 0, 0.12);
    color: var(--accent-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.routine-modal .bim-text-content {
    color: var(--text-primary);
}

.routine-modal .bim-text-content strong {
    color: var(--accent-gold);
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

/* Customizing Select Element to look unified */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* AI OVERLAY MOVED TO AuthComponent.css */

.ai-overlay-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.ai-overlay-text-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-align: left;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s ease forwards;
}

.ai-overlay-text-box strong {
    color: var(--accent-secondary);
    font-weight: 700;
}

#btnOverlayNext {
    font-size: 1.2rem;
    padding: 18px 40px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #00a2ff 100%);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    /* Animated in by fadeInUp */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FASE 5: PAYWALL & PROFILE SUMMARY
   ========================================= */
.paywall-card {
    max-width: 500px;
}

.profile-summary-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-top: 30px;
    text-align: left;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item i {
    font-size: 2rem;
    color: var(--accent-secondary);
    background: rgba(0, 240, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.summary-item strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.paywall-pricing {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.05), rgba(0, 240, 255, 0.05));
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: var(--border-radius-md);
    padding: 20px;
}

.paywall-pricing p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.price-tag {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--accent-color);
}

.price-tag .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.price-tag .amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 20px var(--accent-glow);
}

.price-tag .period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 5px;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-payment {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Inter';
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
}

.stripe-btn {
    background: #635bff;
    color: white;
}

.stripe-btn:hover {
    background: #7b75ff;
    box-shadow: 0 5px 15px rgba(99, 91, 255, 0.4);
}

.paypal-btn {
    background: #ffc439;
    color: #003087;
}

.paypal-btn:hover {
    background: #f4bb33;
    box-shadow: 0 5px 15px rgba(255, 196, 57, 0.3);
}

/* PREMIUM PAYWALL COMPONENT STYLES */
.paywall-premium {
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 25, 0.95), var(--bg-color));
    z-index: 1000;
}

.paywall-card-premium {
    max-width: 500px;
    padding: 40px 30px;
    background: rgba(30, 30, 35, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.auth-bg-orb.orb-1 {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.premium-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

.accent-gold {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.paywall-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    margin-top: 10px;
}

.paywall-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.paywall-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.feature-item i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.feature-item div {
    display: flex;
    flex-direction: column;
}

.feature-item strong {
    font-size: 1rem;
    color: #fff;
    font-family: 'Inter';
}

.feature-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.paywall-pricing-box {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-bottom: 30px;
}

.pricing-header {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.price-tag-premium {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: #ffd700;
}

.price-tag-premium .currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.price-tag-premium .amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.price-tag-premium .period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 10px;
}

.guarantee {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
}

.payment-buttons-premium {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pulse-glow {
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* HIGH CONVERSION PAYWALL ELEMENTS */
.urgency-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 76, 76, 0.15);
    border: 1px solid rgba(255, 76, 76, 0.3);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 0.95rem;
}

.countdown-icon {
    font-size: 1.2rem;
    color: #ff4c4c;
}

.pulse-glow-text {
    animation: textPulse 1s infinite alternate;
}

@keyframes textPulse {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 5px rgba(255, 76, 76, 0.4);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 76, 76, 0.8);
    }
}

.price-strike-container {
    position: relative;
    display: inline-block;
}

.price-strike-container::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #ff4c4c;
    transform: rotate(-10deg);
}

/* SOCIAL PROOF */
.social-proof-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    border-left: 2px solid var(--accent-color);
    padding-left: 10px;
}

.testimonial-item .stars {
    font-size: 0.75rem;
    margin-bottom: 5px;
    font-style: normal;
}

.testimonial-item span {
    display: block;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
}

/* PRICE CENTS */
.price-tag-premium .cents {
    font-size: 0.5em;
    vertical-align: top;
    margin-top: 5px;
    font-weight: 700;
}

/* CONFETTI ANIMATION */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 2501;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: #ffd700;
    opacity: 0.8;
    top: -20px;
    animation-name: fallConfetti;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fallConfetti {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* TOP BANNER PREMIUM */
.top-banner-premium {
    background: linear-gradient(90deg, #111, #222);
    border-bottom: 2px solid var(--accent-color);
    padding: 12px 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.top-banner-premium p {
    margin: 0;
    font-weight: 500;
}

.top-banner-premium .highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.top-banner-premium .urgent-time {
    background: rgba(255, 76, 76, 0.2);
    color: #ff4c4c;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-top: 5px;
}

.top-banner-premium .btn-upgrade {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    text-transform: uppercase;
}

.top-banner-premium .btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-close-banner {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.btn-close-banner:hover {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

/* =========================================
   BOTTOM NAVIGATION
   ========================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    padding-bottom: env(safe-area-inset-bottom, 15px);
    /* Respect iOS safe area */
    z-index: 1000;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 5px;
    transition: all 0.3s ease;
    flex: 1;
}

.bottom-nav .nav-item i,
.bottom-nav .nav-item ion-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item.active {
    color: var(--accent-gold);
}

.bottom-nav .nav-item.active i,
.bottom-nav .nav-item.active ion-icon {
    transform: translateY(-3px) scale(1.1);
    color: var(--accent-gold);
}

.bottom-nav .nav-item:hover:not(.active) {
    color: #fff;
}

.evolution-container {
    padding: 20px;
    padding-bottom: 110px;
    /* Space for bottom nav */
    max-width: 1000px;
    margin: 0 auto;
}

.evolution-container.hidden {
    display: none;
}



/* =========================================
   HEADER ACTIONS & PROFILE BUTTON
   ========================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-header-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-header-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--accent-gold);
}

/* PROFILE UI MOVED TO ProfileComponent.css */

/* =========================================
   WEIGHT PROMPT CARD ANIMATIONS
   ========================================= */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

#weightPromptCard input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.6);
}

#btnLogWeight:hover {
    background: rgba(255, 215, 0, 0.25);
}

/* =========================================
   GAMIFICATION XP MODULE
   ========================================= */

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes starburstPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.3;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.1;
    }
}

.starburst-spin {
    animation: starburstPulse 10s linear infinite;
}

#btnClaimXP {
    position: relative;
    overflow: hidden;
}

#btnClaimXP::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

#btnClaimXP:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 204, 0.4);
}

#btnClaimXP:hover::after {
    left: 150%;
}

/* =========================================
   CUSTOM CONFIRM MODAL
   ========================================= */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
}

.confirm-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal-overlay.active .confirm-card {
    transform: scale(1);
}

.confirm-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--accent-color);
}

.confirm-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.confirm-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 30px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.confirm-btn-danger {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.confirm-btn-danger:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

.confirm-btn-primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.confirm-btn-primary:hover {
    background: #4ff135;
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .analysis-trigger-container {
        left: 38dvw;
        bottom: 60px;
        padding-bottom: 30px;
    }
}