/* ============================================================
   USER PANEL CSS - Enhanced Green Theme
   ============================================================ */

/* === Theme Override === */
:root {
    --panel-primary: #10b981;
    --panel-primary-dark: #059669;
    --panel-primary-light: #d1fae5;
    --panel-accent: #34d399;
    --panel-bg: #f1f5f9;
}

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes breatheIn {
    from { transform: scale(1); }
    to { transform: scale(1.5); }
}
@keyframes breatheHold {
    from { transform: scale(1.5); }
    to { transform: scale(1.5); }
}
@keyframes breatheOut {
    from { transform: scale(1.5); }
    to { transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}
.fade-in-card:nth-child(1) { animation-delay: 0.05s; }
.fade-in-card:nth-child(2) { animation-delay: 0.1s; }
.fade-in-card:nth-child(3) { animation-delay: 0.15s; }
.fade-in-card:nth-child(4) { animation-delay: 0.2s; }

/* === Skeleton Loading === */
.skeleton-text {
    display: inline-block;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    min-width: 40px;
}
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.skeleton-card {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
    height: 140px;
}

/* === Motivational Quote Card === */
.quote-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease;
}
.quote-icon {
    font-size: 1.6rem;
    color: #059669;
    line-height: 1;
}
.quote-text {
    font-size: 0.95rem;
    font-style: italic;
    color: #065f46;
    font-weight: 500;
    line-height: 1.5;
}
.quote-author {
    font-size: 0.8rem;
    color: #047857;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* === Code Digit Inputs (Live Room) === */
.code-digit-group {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
    color: var(--panel-text);
}
.code-digit:focus {
    border-color: var(--panel-info);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* === Live Room Join Box === */
.live-join-box {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    background: var(--panel-surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.live-join-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.live-join-icon i { font-size: 1.4rem; color: white; }
.btn-join-code {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    font-family: inherit;
}
.btn-join-code:hover { filter: brightness(1.1); }
.btn-join-code:disabled { opacity: 0.5; cursor: not-allowed; }

/* === Live Room Alert === */
.live-room-shortcut {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.live-room-shortcut-left { display: flex; align-items: center; gap: 0.75rem; }
.live-room-shortcut-left i { font-size: 1.25rem; color: #2563eb; }
.live-room-shortcut-left span { color: #1e40af; font-weight: 600; font-size: 0.88rem; }
.live-room-shortcut .btn-shortcut {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}
.live-room-shortcut .btn-shortcut:hover { background: #1d4ed8; }

/* === Quick Stats === */
.quick-stats-inline {
    background: var(--panel-surface);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    box-shadow: var(--shadow-sm);
}
.quick-stat-item { text-align: center; padding: 0.5rem; }
.quick-stat-item:not(:last-child) { border-right: 1px solid var(--panel-border); }
.quick-stat-item .qs-value { font-size: 1.25rem; font-weight: 700; color: var(--panel-primary); }
.quick-stat-item .qs-label { font-size: 0.75rem; color: var(--panel-text-muted); }

/* === Check-in Button States === */
.checkin-btn-done {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    pointer-events: none;
    opacity: 0.9;
}

/* === Recent Badges === */
.badges-inline {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.badge-inline-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    transition: transform 0.2s;
}
.badge-inline-item:hover { transform: translateY(-2px); }
.badge-inline-item.locked { opacity: 0.5; filter: grayscale(0.5); }
.badge-inline-icon { font-size: 1.5rem; }
.badge-inline-info strong { display: block; font-size: 0.85rem; }
.badge-inline-info small { font-size: 0.72rem; color: #92400e; }

/* === Appointment Tabs === */
.appt-tab {
    padding: 0.4rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 9999px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.appt-tab:hover { border-color: #3b82f6; color: #3b82f6; }
.appt-tab.active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* === Stats Section === */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.chart-card canvas { max-height: 220px; }
.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* === Check-in Calendar === */
.checkin-calendar {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin: 1rem 0;
}
.cal-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    transition: transform 0.2s;
}
.cal-day:hover { transform: scale(1.15); }
.cal-day.done { background: #10b981; color: white; }
.cal-day.missed { background: #f1f5f9; color: #94a3b8; }
.cal-day.today { background: #3b82f6; color: white; box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59,130,246,0.2); }
.calendar-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
    align-items: center;
}
.cal-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}
.cal-dot.cal-done { background: #10b981; }
.cal-dot.cal-missed { background: #f1f5f9; border: 1px solid #cbd5e1; }
.cal-dot.cal-today { background: #3b82f6; }

/* === Badges Section === */
.badge-category-title {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #e2e8f0;
}
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.badge-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.25s;
    position: relative;
}
.badge-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.badge-card.earned { border-color: #fcd34d; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.badge-card.locked { opacity: 0.6; filter: grayscale(0.3); }
.badge-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.badge-name { font-weight: 700; font-size: 0.9rem; color: #1e293b; margin-bottom: 0.2rem; }
.badge-desc { font-size: 0.78rem; color: #64748b; }
.badge-earned-date { font-size: 0.72rem; color: #059669; font-weight: 600; margin-top: 0.5rem; }
.badge-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 0.75rem;
    overflow: hidden;
}
.badge-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* === Notification System === */
.notification-wrapper { position: relative; }
.notification-bell {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #64748b;
    padding: 0.4rem;
    transition: color 0.2s;
}
.notification-bell:hover { color: #1e293b; }
.notif-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
}
.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.notif-clear-btn {
    background: none;
    border: none;
    font-size: 0.78rem;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
}
.notif-dropdown-body {
    max-height: 340px;
    overflow-y: auto;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f8fafc;
}
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; }
.notif-item i { margin-top: 2px; font-size: 0.9rem; }
.notif-item-content { flex: 1; }
.notif-item-content span { font-size: 0.82rem; line-height: 1.4; display: block; }
.notif-item-content small { color: #94a3b8; font-size: 0.72rem; }

/* === Check-in Modal === */
.panel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 1rem;
}
.panel-modal-overlay.show { opacity: 1; pointer-events: auto; }
.panel-modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform 0.3s;
}
.panel-modal-overlay.show .panel-modal { transform: scale(1); }
.panel-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.panel-modal-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.panel-modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s;
}
.panel-modal-close:hover { background: #f1f5f9; color: #1e293b; }
.checkin-form { padding: 1.5rem; }
.checkin-form-group { margin-bottom: 1.25rem; }
.checkin-form-label { font-size: 0.88rem; font-weight: 600; color: #334155; display: block; margin-bottom: 0.5rem; }

/* === Mood Selector === */
.mood-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    max-width: 80px;
}
.mood-btn span { font-size: 1.5rem; }
.mood-btn small { font-size: 0.65rem; color: #64748b; font-weight: 600; }
.mood-btn:hover { border-color: #f59e0b; transform: translateY(-2px); }
.mood-btn.active { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.mood-selector-sm .mood-btn { padding: 0.4rem 0.6rem; }
.mood-selector-sm .mood-btn span { font-size: 1.2rem; }

/* === Craving Slider === */
.craving-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    outline: none;
}
.craving-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.craving-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: #94a3b8; margin-top: 0.25rem; }

/* === Toggle Switch === */
.checkin-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}
.checkin-toggle-label input { display: none; }
.toggle-slider {
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.checkin-toggle-label input:checked + .toggle-slider { background: #10b981; }
.checkin-toggle-label input:checked + .toggle-slider::after { transform: translateX(20px); }

/* === Input with Prefix === */
.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.input-prefix {
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
}
.input-with-prefix .panel-form-input {
    border: none;
    border-radius: 0;
}

/* === Videos & Articles === */
.filter-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.filter-pill {
    padding: 0.35rem 0.85rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.filter-pill:hover { border-color: var(--panel-primary); color: var(--panel-primary); }
.filter-pill.active { background: var(--panel-primary); color: white; border-color: var(--panel-primary); }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.video-card {
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.video-thumb { position: relative; overflow: hidden; }
.video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn i { font-size: 2.5rem; color: white; }
.video-watched-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(16,185,129,0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}
.video-info { padding: 0.85rem 1rem; }
.video-info h4 { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.2rem; }
.video-info p { font-size: 0.78rem; color: #64748b; margin: 0; }

/* === Articles === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.article-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--panel-primary); }
.article-card-content { padding: 1.15rem; }
.article-category-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #eff6ff;
    color: #2563eb;
    margin-bottom: 0.5rem;
}
.article-card h4 { font-size: 1rem; font-weight: 700; margin: 0 0 0.35rem; line-height: 1.4; }
.article-card p { font-size: 0.82rem; color: #64748b; line-height: 1.5; margin: 0 0 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; gap: 1rem; font-size: 0.73rem; color: #94a3b8; }
.article-meta i { margin-right: 2px; }

/* === Article Detail Overlay === */
.article-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.article-detail-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.article-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.article-close-btn:hover { background: #e2e8f0; }
.article-content-body { line-height: 1.8; font-size: 0.95rem; color: #334155; }
.article-content-body p { margin-bottom: 1rem; }

/* === Emergency === */
.emergency-quote-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #1e40af;
    font-style: italic;
}
.emergency-quote-card i { font-size: 1.2rem; color: #3b82f6; }
.emergency-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.emergency-contact-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s;
}
.emergency-contact-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.ec-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.ec-type-badge { padding: 0.15rem 0.5rem; border-radius: 9999px; font-size: 0.68rem; font-weight: 700; color: white; }
.ec-24h { background: #dcfce7; color: #15803d; font-size: 0.68rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 9999px; }
.emergency-contact-card h4 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.2rem; }
.emergency-contact-card p { font-size: 0.8rem; color: #64748b; margin: 0 0 0.5rem; }
.ec-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ec-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    background: #f1f5f9;
    color: #334155;
    transition: background 0.2s;
}
.ec-action-btn:hover { background: #e2e8f0; }
.ec-whatsapp { background: #dcfce7; color: #15803d; }
.ec-whatsapp:hover { background: #bbf7d0; }

/* === Profile === */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
}
.profile-info-card {
    text-align: center;
    padding: 2rem 1.5rem !important;
}
.profile-avatar-big {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.profile-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.15rem; }
.profile-email { font-size: 0.82rem; color: #64748b; margin: 0 0 1rem; }
.profile-meta { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; color: #334155; }
.profile-meta i { margin-right: 0.3rem; color: #94a3b8; }

/* === Subscription Card === */
.sub-plan-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.sub-plan-badge.free { background: #f1f5f9; color: #64748b; }
.sub-plan-badge.premium { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.sub-details { display: flex; flex-direction: column; gap: 0.5rem; }
.sub-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}
.sub-detail-item span { color: #64748b; }
.sub-detail-item strong { color: #1e293b; }

/* === Breathing Exercise === */
.breathing-container { padding: 1.5rem 1.5rem 2rem; }
.breathing-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 4px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 4s ease-in-out;
}
.breathing-circle.inhale { animation: breatheIn 4s ease-in-out forwards; border-color: #3b82f6; background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.breathing-circle.hold { transform: scale(1.5); border-color: #f59e0b; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.breathing-circle.exhale { animation: breatheOut 8s ease-in-out forwards; border-color: #10b981; }
.breathing-circle span { font-size: 1.15rem; font-weight: 700; color: #334155; }
.breathing-timer { font-size: 0.85rem; color: #64748b; margin-bottom: 0.35rem; }
.breathing-round { font-size: 0.82rem; font-weight: 600; color: var(--panel-primary); }

/* === Meditation === */
.meditation-container { padding: 1.5rem; }
.meditation-time-select { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.med-time-btn {
    padding: 0.4rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.med-time-btn:hover { border-color: var(--panel-primary); }
.med-time-btn.active { background: var(--panel-primary); color: white; border-color: var(--panel-primary); }
.meditation-display { margin-bottom: 1.5rem; }
.meditation-countdown { font-size: 3rem; font-weight: 700; color: #1e293b; letter-spacing: 2px; }

/* === Nature Sounds === */
.nature-sounds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1.25rem;
}
.nature-sound-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.nature-sound-btn:hover { border-color: var(--panel-primary); background: #ecfdf5; }
.nature-sound-btn.active { border-color: var(--panel-primary); background: #d1fae5; }
.ns-emoji { font-size: 1.8rem; }
.nature-sound-btn span:last-child { font-size: 0.78rem; font-weight: 600; color: #334155; }
.nature-sound-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
}
.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    outline: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--panel-primary);
    cursor: pointer;
}

/* === Positive Thoughts === */
.positive-thoughts-container { padding: 2rem 1.5rem; }
.positive-quote-card { padding: 1.5rem; }
.positive-quote-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.positive-quote-text { font-size: 1.1rem; line-height: 1.6; font-style: italic; color: #334155; margin: 0; }
.positive-quote-author { display: block; margin-top: 0.5rem; font-size: 0.85rem; color: #64748b; font-weight: 600; }

/* === Journal === */
.journal-container { padding: 1.25rem 1.5rem; }
.journal-entry-card {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid #10b981;
}
.journal-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.journal-entry-header small { color: #94a3b8; font-weight: 400; }
.journal-entry-card p { font-size: 0.82rem; color: #64748b; margin: 0; }

/* === Music === */
.music-tracks { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; }
.music-track {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.music-track:hover { background: #f1f5f9; border-color: #e2e8f0; }
.music-track-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.music-track h4 { font-size: 0.9rem; font-weight: 600; margin: 0; }
.music-track p { font-size: 0.78rem; color: #64748b; margin: 0; }

/* === Subscription Info Bar === */
.subscription-info-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

/* === Form Inputs === */
.panel-form-group { margin-bottom: 1rem; }
.panel-form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #334155; margin-bottom: 0.35rem; }
.panel-form-input {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
    background: white;
    color: var(--panel-text);
}
.panel-form-input:focus { border-color: var(--panel-primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }

/* === Empty State === */
.empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 2rem;
}
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; opacity: 0.5; }
.empty-state p { font-size: 0.88rem; }

/* === Responsive === */
@media (max-width: 767.98px) {
    .charts-row { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .checkin-calendar { grid-template-columns: repeat(6, 1fr); }
    .nature-sounds-grid { grid-template-columns: repeat(2, 1fr); }
    .notif-dropdown { width: 300px; right: -60px; }
    .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .code-digit { width: 42px; height: 48px; font-size: 1.3rem; }
    .live-join-box { padding: 1.5rem; }
    .quick-stats-inline { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .mood-btn span { font-size: 1.2rem; }
    .mood-btn { padding: 0.4rem 0.5rem; }
    .badges-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
