/* ==========================================
   WHOLE LIFE - Holistic Wellness App
   Premium Dark Theme with Gradient Accents
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --accent-primary: #667EEA;
    --accent-secondary: #764BA2;
    
    /* Category colors */
    --color-physical: #FF6B6B;
    --color-nutrition: #FFCD56;
    --color-recovery: #4ECDC4;
    --color-emotional: #667EEA;
    --color-character: #F093FB;
    --color-spiritual: #4FACFE;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Safe areas */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(80px + var(--safe-bottom));
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(79, 172, 254, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--safe-top) + var(--space-md)) var(--space-lg) var(--space-md);
}

.greeting {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--space-lg);
}

/* Wellness Wheel */
.wheel-container {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    margin: var(--space-md) 0;
}

.wellness-wheel {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.2));
}

.wheel-segment {
    cursor: pointer;
    transition: var(--transition-base);
    transform-origin: center;
}

.wheel-segment:hover {
    filter: brightness(1.2);
}

.wheel-segment.active {
    filter: brightness(1.3) drop-shadow(0 0 20px currentColor);
}

.wheel-segment-path {
    fill: none;
    stroke-width: 35;
    stroke-linecap: butt;
    transition: var(--transition-slow);
}

.wheel-segment:hover .wheel-segment-path {
    stroke-width: 38;
}

/* Wheel segment icons */
.wheel-icon {
    font-size: 1.5rem;
    pointer-events: none;
}

/* Center circle */
.center-circle {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.center-text-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    fill: var(--text-muted);
    letter-spacing: 0.2em;
}

.center-text-main {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    fill: var(--text-primary);
    letter-spacing: 0.1em;
}

/* Wheel labels */
.wheel-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.wheel-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
    cursor: pointer;
    transition: var(--transition-base);
}

.wheel-label:hover {
    transform: scale(1.1);
}

.wheel-label-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-label-text {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Check-in Card */
.checkin-card {
    width: 100%;
    max-width: 340px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    backdrop-filter: blur(20px);
}

.checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.checkin-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.checkin-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkin-prompt {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    width: 100%;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-outline {
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: var(--bg-card);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    gap: var(--space-md);
    width: 100%;
    max-width: 340px;
    margin-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(70px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.nav-item:hover {
    color: var(--text-primary);
}

/* Category Screen */
.category-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--bg-primary);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

.category-screen.active {
    transform: translateX(0);
}

.category-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: calc(var(--safe-top) + var(--space-md)) var(--space-lg) var(--space-md);
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
}

.back-btn:hover {
    background: var(--bg-card-hover);
}

.category-title {
    flex: 1;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
}

.category-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.category-score .score-value {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-score .score-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.category-content {
    padding: 0 var(--space-lg) var(--space-2xl);
}

/* Tabs */
.category-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--space-sm);
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* Tab Content */
.tab-content {
    animation: fadeIn var(--transition-base);
}

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

/* Daily Content Card */
.daily-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.daily-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.daily-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.daily-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.daily-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.daily-card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Reflection Input */
.reflection-input {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    resize: none;
    transition: var(--transition-base);
}

.reflection-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.reflection-input::placeholder {
    color: var(--text-muted);
}

/* Check-in Slider */
.checkin-slider {
    margin: var(--space-lg) 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.slider-input {
    width: 100%;
    height: 8px;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    outline: none;
}

.slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.slider-value {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-top: var(--space-md);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Action Items */
.action-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: var(--transition-base);
}

.action-item:hover {
    background: var(--bg-card-hover);
}

.action-checkbox {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.action-item.completed .action-checkbox {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
}

.action-item.completed .action-checkbox::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
}

.action-item.completed .action-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.action-text {
    flex: 1;
    font-size: 0.9rem;
}

/* Progress Chart */
.progress-chart {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.progress-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-period {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-bars {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 100px;
}

.progress-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    min-height: 10px;
}

.progress-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: height var(--transition-slow);
}

.progress-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: calc(90px + var(--safe-bottom));
    right: var(--space-lg);
    z-index: 150;
}

.fab {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: var(--transition-base);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* Community Screen */
.community-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--bg-primary);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

.community-screen.active {
    transform: translateX(0);
}

.community-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: calc(var(--safe-top) + var(--space-md)) var(--space-lg) var(--space-md);
    background: var(--bg-primary);
}

.community-header h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
}

.community-content {
    padding: 0 var(--space-lg) var(--space-2xl);
}

.community-section {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

/* Partner Cards */
.partner-cards {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
}

.partner-cards::-webkit-scrollbar {
    display: none;
}

.partner-card {
    flex-shrink: 0;
    width: 140px;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-align: center;
}

.partner-avatar {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.partner-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.partner-status {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.partner-status.active {
    color: #4ECDC4;
}

/* Challenge Cards */
.challenge-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.challenge-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.challenge-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-physical), var(--color-nutrition));
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.challenge-info {
    flex: 1;
}

.challenge-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.challenge-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.challenge-progress {
    text-align: right;
}

.challenge-percent {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.challenge-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Prayer Cards */
.prayer-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.prayer-card {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.prayer-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.prayer-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-spiritual), var(--accent-primary));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.prayer-author {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
}

.prayer-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.prayer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.prayer-actions {
    display: flex;
    gap: var(--space-md);
}

.prayer-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.prayer-action:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transform: scale(0.95);
    transition: var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Share Modal */
.share-modal {
    position: relative;
}

.share-modal h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.share-option:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.share-icon {
    font-size: 1.75rem;
}

.share-option span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Check-in Modal */
.checkin-modal {
    max-width: 340px;
}

.checkin-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.checkin-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.checkin-step {
    min-height: 200px;
}

.checkin-step h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.checkin-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.checkin-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
}

/* Toast */
.toast {
    position: fixed;
    bottom: calc(100px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    opacity: 0;
    transition: var(--transition-base);
    z-index: 400;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .wheel-container {
        max-width: 400px;
    }
    
    .checkin-card,
    .quick-stats {
        max-width: 400px;
    }
    
    .category-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .community-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* ==========================================
   PHYSICAL HEALTH - Activity Rings & Goals
   ========================================== */

/* Goal Options */
.goal-options {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.goal-option {
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    text-align: left;
}

.goal-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-card-hover);
}

.goal-option.active {
    border-color: var(--color-physical);
    background: rgba(255, 107, 107, 0.1);
}

.goal-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.goal-option-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-physical);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.goal-option-intensity {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.goal-option-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.goal-detail {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.goal-detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Activity Rings (Apple Watch Style) */
.activity-rings-container {
    position: relative;
    display: flex;
    justify-content: center;
    padding: var(--space-lg) 0;
}

.activity-rings {
    width: 200px;
    height: 200px;
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
}

.ring-progress {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-cardio {
    stroke: url(#grad-cardio);
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.5));
}

.ring-strength {
    stroke: url(#grad-strength);
    filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.5));
}

/* Add gradients for rings via JS-injected SVG defs */
.activity-rings-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.rings-week {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Ring Legend */
.ring-legend {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ring-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.ring-legend-dot.cardio {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.ring-legend-dot.strength {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.5);
}

.ring-legend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ring-legend-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ring-legend-value {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ring-legend-percent {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Health Benefits - Learn Tab */
.highlight-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.1));
    border-color: rgba(255, 107, 107, 0.2);
}

.source-text {
    margin-top: var(--space-md);
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
}

.benefit-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-physical), #FF8E53);
    border-radius: 50%;
    font-size: 0.7rem;
    color: white;
    margin-top: 2px;
}

.benefit-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.hidden { display: none !important; }
