/* ==========================================================================
   DESERT GYM CLIENT - DESIGN SYSTEM & CUSTOM GLASSMORPHIC UI
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
    --bg-primary: #0A0A12;
    --bg-secondary: #121225;
    --bg-card: rgba(22, 22, 45, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #F97316;       /* Neon Desert Orange */
    --primary-gradient: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
    --secondary-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --accent-gradient: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: #030308;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 2. Layout Container (Phone Emulation on Desktop) */
.app-container {
    width: 100%;
    max-width: 440px; /* Perfect smartphone viewport width */
    height: 100vh;
    max-height: 920px; /* Standard tall smartphone height */
    background-color: var(--bg-primary);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 450px) {
    .app-container {
        border-radius: 40px; /* Simulated phone physical borders */
        margin: 20px 0;
        height: calc(100vh - 40px);
    }
}

/* 3. Header Section */
.app-header {
    padding: 24px 20px 16px 20px;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.95) 0%, rgba(10, 10, 18, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    position: relative;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 2px;
    background: var(--primary-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-primary);
}

.user-info .greeting {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.user-info .username {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.badge-btn {
    border-radius: 20px;
    width: auto;
    padding: 0 12px;
    gap: 6px;
}

.points-badge {
    font-size: 13px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.noti-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* 4. Scrollable Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px 100px 20px;
    scroll-behavior: smooth;
}

.app-content::-webkit-scrollbar {
    width: 0; /* Hide scrollbars for app-like feeling */
}

/* 5. SPA Navigation Views */
.app-view {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.app-view.active {
    display: block;
}

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

/* 6. Premium Glassmorphic Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Tags and Labels */
.tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-accent {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.highlight-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* 7. Specific Card: Access Card (QR Code) */
.access-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(13, 13, 33, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.access-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 1;
}

.access-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    z-index: 2;
    position: relative;
}

.title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-group h3 {
    font-size: 18px;
    font-weight: 700;
}

.membership-type {
    font-size: 12px;
    color: var(--text-secondary);
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: var(--transition-smooth);
}

.qr-placeholder svg {
    width: 100%;
    height: 100%;
    fill: var(--text-primary);
}

/* Scanner Animation Line */
.qr-scan-line {
    position: absolute;
    width: calc(100% - 32px);
    height: 2px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0) 0%, rgba(249, 115, 22, 0.8) 50%, rgba(249, 115, 22, 0) 100%);
    box-shadow: 0 0 8px var(--primary);
    top: 16px;
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 16px; }
    50% { top: 176px; }
}

.access-card .card-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

.card-footer .label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.card-footer .value {
    font-size: 14px;
    font-weight: 600;
}

.card-footer .expiry-info {
    text-align: right;
}

/* 8. Widgets Grid & Promotional Cards */
.widget-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.widget-card {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 16px;
}

.widget-card:active {
    transform: scale(0.98);
}

.widget-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.widget-details {
    flex: 1;
}

.widget-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.widget-title {
    font-size: 15px;
    font-weight: 600;
}

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

.widget-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.widget-progress-bar .bar-fill {
    height: 100%;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.widget-arrow {
    color: var(--text-muted);
}

.promo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(25, 25, 40, 0.8) 0%, rgba(35, 15, 50, 0.5) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    cursor: pointer;
}

.promo-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 6px 0 2px 0;
}

.promo-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Gradients helpers */
.primary-gradient { background: var(--primary-gradient); }
.secondary-gradient { background: var(--secondary-gradient); }
.accent-gradient { background: var(--accent-gradient); }
.text-white { color: #FFF; }
.text-accent { color: var(--primary); }

/* 9. Buttons Style */
.btn {
    font-family: var(--font-sans);
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 16px;
    font-size: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-xs {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

.btn-icon-only {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
}

/* 10. Workout View Details */
.view-header {
    margin-bottom: 20px;
}

.view-header h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.view-header .subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.routine-meta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.meta-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item span.material-icons-round {
    font-size: 20px;
}

.meta-item .label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
}

.meta-item .value {
    font-size: 11px;
    font-weight: 600;
}

/* Timer Display Card */
.timer-card {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-color: rgba(249, 115, 22, 0.2);
    margin-bottom: 16px;
}

.timer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-text {
    flex: 1;
    margin-left: 12px;
}

.timer-text .label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.timer-text .value {
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.spin {
    animation: rotate 2s linear infinite;
}

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

/* Exercise Cards list */
.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exercise-card {
    padding: 16px;
}

.exercise-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.exercise-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #121225;
}

.exercise-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exercise-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exercise-info .muscle-group {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exercise-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 2px 0;
}

.exercise-info .equipment {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Exercise Sets Table */
.exercise-sets {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.set-row {
    display: grid;
    grid-template-columns: 50px 1fr 90px 50px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 12px;
}

.set-row.header {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.set-row:last-child {
    border-bottom: none;
}

.set-num {
    font-weight: 700;
    color: var(--primary);
}

.weight-input {
    width: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: var(--transition-smooth);
}

.weight-input:focus {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

/* Custom Checkbox (Set completed) */
.checkbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Checked Set Visual Strike */
.set-completed-row {
    opacity: 0.5;
    background: rgba(16, 185, 129, 0.02);
}

.set-completed-row span:not(.checkmark):not(.set-num) {
    text-decoration: line-through;
}

.exercise-actions {
    display: flex;
    justify-content: flex-end;
}

.action-footer {
    padding: 16px 0;
}

.hidden {
    display: none !important;
}

/* 11. Diet View Styling */
.macros-card {
    padding: 16px;
}

.macros-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}

.macros-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.macro-circle-container {
    width: 110px;
    height: 110px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

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

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8px;
}

.circle-fill {
    fill: none;
    stroke: url(#gradient-color); /* Fallback */
    stroke: var(--primary);
    stroke-width: 8px;
    stroke-linecap: round;
    stroke-dasharray: 251.2; /* 2 * PI * r (r=40) = 251.2 */
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1s ease-out;
}

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

.circle-text .cal-number {
    font-size: 20px;
    font-weight: 800;
}

.circle-text .cal-unit {
    font-size: 9px;
    color: var(--text-muted);
}

.macro-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.macro-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.macro-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.macro-name {
    font-weight: 600;
}

.macro-values {
    color: var(--text-secondary);
}

.bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
}

.bar-fill.protein { background: var(--primary-gradient); }
.bar-fill.carbs { background: var(--accent-gradient); }
.bar-fill.fats { background: var(--secondary-gradient); }

/* Meals list */
.meal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meal-card {
    padding: 16px;
}

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

.meal-time {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

.meal-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.meal-cals {
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.meal-foods {
    list-style-type: none;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 12px;
}

/* 12. Bookings (Calendar & Schedules) */
.calendar-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.day-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.day-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.day-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

.day-name {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 700;
}

.day-btn.active .day-name {
    color: rgba(255, 255, 255, 0.8);
}

.day-num {
    font-size: 16px;
    font-weight: 800;
}

/* Class Card Item */
.class-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.class-card {
    padding: 0;
    display: flex;
    overflow: hidden;
}

.class-color-tag {
    width: 6px;
    height: auto;
    flex-shrink: 0;
}

.class-info {
    flex: 1;
    padding: 16px;
}

.class-time {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.class-info h3 {
    font-size: 15px;
    font-weight: 700;
}

.class-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.class-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.class-meta span.material-icons-round {
    font-size: 14px;
}

.class-action {
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.full-class {
    opacity: 0.8;
}

/* 13. Progress & Weight Evolution */
.measurements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.measurement-item {
    padding: 14px 10px;
    text-align: center;
}

.measurement-item .label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.measurement-item h3 {
    font-size: 18px;
    font-weight: 800;
}

.measurement-item h3 .unit {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
}

.trend.down {
    color: var(--success);
}

.trend.down span.material-icons-round {
    font-size: 12px;
}

/* Weight SVG Chart */
.chart-card {
    padding: 16px;
}

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

.chart-header h3 {
    font-size: 14px;
    font-weight: 700;
}

.chart-header .timeframe {
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
}

.chart-container {
    width: 100%;
    height: 140px;
    position: relative;
}

.chart-container svg {
    overflow: visible;
}

.chart-dot {
    cursor: pointer;
    transition: r 0.2s ease;
}

.chart-dot:hover {
    r: 6;
}

.chart-tooltip {
    position: absolute;
    background: #FFF;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    display: none;
    transform: translate(-50%, -100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Measurements detail list */
.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title-row h3 {
    font-size: 14px;
    font-weight: 700;
}

.card-title-row .date {
    font-size: 10px;
    color: var(--text-secondary);
}

.measurements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meas-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.meas-row:last-child {
    border-bottom: none;
}

.meas-row span {
    color: var(--text-secondary);
}

/* Photos tab and images */
.photos-card {
    padding: 16px;
}

.photos-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.photo-tabs {
    display: flex;
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
    padding: 2px;
    margin-bottom: 16px;
}

.photo-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.photo-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.photo-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo-box {
    text-align: center;
}

.photo-label {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.photo-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* 14. Rewards & Gamification */
.points-hero {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(249, 115, 22, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.hero-content .label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.hero-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 4px 0;
    background: linear-gradient(90deg, #F97316 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 .unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 11px;
    color: var(--text-secondary);
}

.hero-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.hero-icon-box span {
    font-size: 32px;
    color: var(--warning);
}

.rewards-section {
    margin-bottom: 20px;
}

.rewards-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-item.unlocked .badge-icon {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.badge-item.locked {
    opacity: 0.35;
}

.badge-item.locked .badge-icon {
    background-color: rgba(255,255,255,0.02);
    color: var(--text-muted);
}

.badge-item h4 {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
    height: 20px;
    overflow: hidden;
}

.badge-date {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Store rewards items */
.store-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-item {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.store-info h4 {
    font-size: 13px;
    font-weight: 700;
}

.store-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

.store-cost {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 15. Toast Notifications & Floating Elements */
.app-toast {
    position: absolute;
    bottom: 90px;
    left: 20px;
    right: 20px;
    background: rgba(18, 18, 35, 0.9);
    border: 1px solid var(--primary);
    color: #FFF;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-premium);
    z-index: 100;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.floating-timer {
    position: absolute;
    bottom: 85px;
    right: 20px;
    background: var(--primary-gradient);
    border-radius: 30px;
    padding: 10px 16px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    z-index: 90;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 16. Bottom Navigation Bar */
.app-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px 8px 10px;
    z-index: 100;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex: 1;
}

.nav-tab span.material-icons-round {
    font-size: 22px;
}

.nav-tab span:not(.material-icons-round) {
    font-size: 9px;
    font-weight: 600;
}

.nav-tab.active {
    color: var(--primary);
    transform: translateY(-2px);
}

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