/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-screen p {
    color: white;
    margin-top: 20px;
    font-size: 18px;
}

/* Auth Section */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.logo h1 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.auth-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.forgot-password-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
}

.btn-google {
    width: 100%;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #3c4043;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google .google-icon {
    flex-shrink: 0;
}

.company-credit {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

#forgot-password-modal .modal-content {
    max-width: 450px;
    text-align: center;
}

#forgot-password-modal h2 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

#forgot-password-modal p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

#forgot-password-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
}

.reset-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.reset-message.success {
    background: var(--success-color);
    color: white;
}

.reset-message.error {
    background: var(--danger-color);
    color: white;
}

/* Main App Layout */
.app-container {
    display: flex;
    height: 100vh;
}

.main-nav {
    width: 250px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.nav-logo i {
    font-size: 30px;
}

.nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    padding: 15px;
    background: transparent;
    border: none;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item i {
    width: 20px;
}

.nav-item:hover {
    background: var(--bg-color);
}

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

.logout-btn {
    padding: 15px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.logout-btn:hover {
    opacity: 0.9;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

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

.page-header h2 {
    font-size: 32px;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Quote Card */
.quote-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    position: relative;
}

.quote-card i {
    font-size: 30px;
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.quote-card p {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 10px;
    padding-left: 40px;
}

.quote-card span {
    display: block;
    text-align: right;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 36px;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.quick-actions h3 {
    margin-bottom: 20px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-card {
    background: var(--bg-color);
    padding: 25px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.action-card i {
    font-size: 30px;
    color: var(--primary-color);
}

/* Progress Section */
.progress-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.progress-section h3 {
    margin-bottom: 20px;
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Meditation Grid */
.meditation-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.meditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.meditation-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.meditation-card:hover {
    transform: translateY(-5px);
}

.meditation-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.meditation-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.meditation-card .duration {
    font-weight: bold;
}

/* Timer Section */
.timer-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.timer-section h3 {
    margin-bottom: 20px;
}

.timer-container {
    text-align: center;
}

.timer-display {
    font-size: 72px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timer-btn {
    padding: 10px 20px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-btn:hover {
    border-color: var(--primary-color);
}

/* Sounds Section */
.sounds-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.sounds-section h3 {
    margin-bottom: 20px;
}

.sounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.sound-card, .music-card {
    background: var(--bg-color);
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.sound-card:hover, .music-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sound-card.active, .music-card.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sound-card i {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Music Card Specific Styles */
.music-card {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.music-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
}

.music-card.active .music-icon {
    background: white;
    color: var(--primary-color);
}

.music-icon i {
    font-size: 24px;
}

.music-info {
    flex: 1;
}

.music-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.music-artist {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 8px 0;
}

.music-card.active .music-artist {
    opacity: 0.9;
}

.music-category, .music-duration {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(0,0,0,0.1);
    margin-right: 5px;
    display: inline-block;
    font-weight: 500;
}

/* Category-specific colors */
.music-category.sleep {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.music-category.meditation {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #1a1a1a;
}

.music-category.relaxation {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #1a1a1a;
}

.music-category.ambient {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #1a1a1a;
}

.music-card.active .music-category,
.music-card.active .music-duration {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Breathing Exercises */
.breathing-exercises {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.exercise-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.exercise-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.exercise-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breathing-visualizer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.breath-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

.breath-instruction {
    color: white;
    font-size: 24px;
    margin-top: 30px;
}

.btn-secondary {
    padding: 15px 30px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
}

/* Wellness Sections */
.wellness-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.wellness-section h3 {
    margin-bottom: 20px;
}

.mood-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mood-btn {
    flex: 1;
    min-width: 100px;
    padding: 20px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mood-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.mood-btn i {
    font-size: 30px;
}

.stress-slider {
    padding: 20px;
}

.stress-slider input[type="range"] {
    width: 100%;
    margin: 20px 0;
}

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

#stress-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.habits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.habit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
}

.habit-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.water-tracker {
    text-align: center;
}

.water-glasses {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.water-glass {
    font-size: 40px;
    color: var(--border-color);
    transition: color 0.3s ease;
}

.water-glass.filled {
    color: var(--primary-color);
}

.sleep-input {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sleep-input label {
    font-weight: bold;
}

.sleep-input input {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
}

/* Journal Tabs */
.journal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.journal-tab {
    padding: 12px 24px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.journal-content textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.journal-history {
    margin-top: 30px;
}

.journal-entry {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.journal-entry .date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.affirmation-display {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.custom-affirmation {
    margin-top: 30px;
}

.custom-affirmation input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    margin: 10px 0;
}

.affirmations-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.affirmation-item {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Community Sections */
.community-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.community-section h3 {
    margin-bottom: 20px;
}

.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.friend-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.friend-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.challenge-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 15px;
}

.challenge-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.challenge-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.community-feed {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-post {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
}

.feed-post .author {
    font-weight: bold;
    margin-bottom: 10px;
}

.feed-post .date {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Library Sections */
.library-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.library-section h3 {
    margin-bottom: 20px;
}

.yoga-grid, .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.yoga-card, .article-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.yoga-card:hover, .article-card:hover {
    transform: translateY(-5px);
}

.yoga-card h4, .article-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.yoga-card p, .article-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.card-click-hint {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
    font-style: italic;
}

/* Modal Overlay (Backdrop) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

/* Modal Content Container */
.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Yoga Pose Modal */
.yoga-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.yoga-modal-header {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 15px 0 0;
}

.yoga-modal-header-overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

.yoga-modal-header h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.sanskrit-name {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 18px;
    margin-bottom: 15px;
}

.difficulty-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.difficulty-badge.beginner {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.5);
}

.difficulty-badge.intermediate {
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
}

.difficulty-badge.advanced {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.yoga-modal-body {
    padding: 30px;
}

.yoga-section {
    margin-bottom: 30px;
}

.yoga-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.yoga-instructions, .yoga-benefits {
    padding-left: 20px;
}

.yoga-instructions li, .yoga-benefits li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-primary);
}

.yoga-tip {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
}

.yoga-tip i {
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.yoga-tip p {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Article Modal */
.article-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.article-modal-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-modal-header h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 10px;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-modal-body {
    line-height: 1.8;
    color: var(--text-primary);
}

.article-modal-body h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 24px;
}

.article-modal-body h4 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 18px;
}

.article-modal-body ul, .article-modal-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-modal-body li {
    margin-bottom: 10px;
}

.article-modal-body p {
    margin-bottom: 15px;
}

.article-modal-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-modal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    padding: 20px;
    border-radius: 10px;
}

.article-modal-footer p {
    color: var(--text-secondary);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-modal-footer i {
    color: var(--warning-color);
    font-size: 20px;
}

.eating-guide {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
}

.tips-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Settings Sections */
.settings-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.settings-section h3 {
    margin-bottom: 20px;
}

.profile-settings, .goal-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-settings input, .goal-settings input {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
}

.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.notification-settings input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.background-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.background-option {
    aspect-ratio: 1;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.background-option:hover {
    transform: scale(1.05);
}

.background-option.active {
    border-color: var(--primary-color);
}

.help-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-secondary);
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.history-item {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.badge-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.badge-card.earned {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.badge-card i {
    font-size: 50px;
    margin-bottom: 10px;
}

/* Pomodoro Widget */
.pomodoro-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.toggle-widget {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.toggle-widget:hover {
    transform: scale(1.1);
}

.pomodoro-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    min-width: 200px;
    text-align: center;
}

.pomodoro-display {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

/* Mindful Eating Guide Styles */
.eating-guide-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
}

.eating-guide-content {
    padding: 40px;
}

.eating-guide-content .subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.guide-section {
    margin-bottom: 40px;
}

.guide-section h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.principle-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.principle-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.step-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.step-card ul {
    list-style: none;
    padding-left: 0;
}

.step-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.step-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.tips-category {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.tips-category h4 {
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.tips-category ul {
    list-style: none;
    padding-left: 0;
}

.tips-category ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.tips-category ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px;
    border-radius: 10px;
}

.benefit-card h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.benefit-card ul {
    list-style: none;
    padding-left: 0;
}

.benefit-card ul li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.benefit-card ul li:before {
    content: "★";
    position: absolute;
    left: 0;
}

.technique-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
}

.technique-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.technique-card em {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 15px;
}

.technique-card ol, .technique-card ul {
    margin-top: 15px;
    padding-left: 25px;
}

.technique-card li {
    padding: 5px 0;
}

.usage-note {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-item {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--warning-color);
}

.challenge-q {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.challenge-a {
    color: var(--success-color);
}

.quotes-section blockquote {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-style: italic;
    font-size: 18px;
    margin: 15px 0;
    border-left: 5px solid var(--accent-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .main-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-items {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timer-display {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mood-selector {
        flex-direction: column;
    }
}

/* Toast Notifications - Beautiful Modern Design */
.toast-notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: translateY(-20px);
    border-left: 4px solid var(--primary-color);
}

.toast-notification.show {
    top: 80px;
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .toast-notification {
    background: #1f2937;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-content i {
    font-size: 22px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

.toast-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

[data-theme="dark"] .toast-close {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast Type Styles */
.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

/* Toast Animation for mobile */
@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
    }
    
    .toast-notification.show {
        top: 70px;
    }
}

/* Music Playing Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ========== Store ========== */
.store-section {
    margin-top: 1rem;
}

.store-intro {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.store-tabs, .store-owner-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.store-tab, .store-owner-tab {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
}

.store-tab:hover, .store-owner-tab:hover {
    background: var(--bg-color);
}

.store-tab.active, .store-owner-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.store-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.store-card-image {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
}

.store-card-body {
    padding: 1rem;
}

.store-card-type {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
}

.store-card-body h4 {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.1rem;
}

.store-card-body p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.store-card-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.store-card-footer .btn-primary {
    padding: 0.4rem 0.75rem;
    font-size: 13px;
}

.store-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.store-cart-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 10;
}

.store-cart-bar .btn-primary {
    padding: 0.5rem 1rem;
}

.store-owner-area {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.store-owner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.store-owner-actions .btn-primary,
.store-owner-actions .btn-secondary {
    margin-bottom: 0;
}

#store-add-item {
    margin-bottom: 0;
}

.store-owner-panel.hidden {
    display: none !important;
}

.store-owner-list, .store-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-owner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.store-owner-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.store-owner-item-type {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.store-owner-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.store-owner-item-actions {
    display: flex;
    gap: 0.5rem;
}

.store-orders-empty {
    color: var(--text-secondary);
    padding: 1rem;
}

.store-order-card {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.store-order-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.store-order-status {
    text-transform: uppercase;
    font-size: 12px;
    color: var(--warning-color);
}

.store-order-body p {
    margin: 0.25rem 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.store-order-body strong {
    color: var(--text-primary);
}

.store-order-tracking-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.store-order-tracking-row .store-order-tracking-carrier {
    min-width: 100px;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
}

.store-order-tracking-row .store-order-tracking-number {
    flex: 1;
    min-width: 140px;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
}

.store-order-tracking-link-wrap {
    margin-bottom: 0.5rem;
}

.store-tracking-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.store-tracking-link:hover {
    text-decoration: underline;
}

.store-my-order-tracking {
    margin-top: 0.5rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.store-my-order-tracking .store-tracking-link {
    margin-left: 0.25rem;
}

.store-order-manual-payment {
    margin: 0.75rem 0 0.5rem;
}

.store-order-manual-payment .store-mark-paid-btn {
    font-size: 14px;
}

#store-item-form label,
.store-item-modal-actions {
    display: block;
    margin-top: 0.5rem;
}

.store-item-price-hint {
    font-weight: normal;
    color: var(--text-secondary);
    font-size: 12px;
}

.store-owner-item-profit {
    color: var(--text-secondary);
    font-size: 13px;
}

.store-item-image-preview {
    margin-top: 0.5rem;
}

.store-item-image-preview .store-item-preview-img {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

#store-item-form input,
#store-item-form select,
#store-item-form textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.store-item-modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.store-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.store-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.store-cart-row .store-cart-remove {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
}

.store-cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.store-cart-footer .btn-primary {
    margin-top: 0.5rem;
}

.store-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.store-search {
    flex: 1;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
}

.store-sort, .store-category-select {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
}

.store-tabs .store-category-select {
    margin-left: auto;
}

.store-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.store-qty-add {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.store-qty-input {
    width: 3rem;
    padding: 0.25rem;
    text-align: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.store-out-of-stock {
    color: var(--text-secondary);
    font-size: 12px;
}

.store-detail-content .store-detail-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.store-detail-type, .store-detail-price {
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.store-detail-desc {
    white-space: pre-wrap;
    margin: 0.5rem 0 1rem;
}

.store-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.store-detail-qty input {
    width: 4rem;
    padding: 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.store-orders-badge {
    background: var(--warning-color);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 12px;
}

.store-order-status-select {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    font-size: 13px;
}

.store-order-owner-note {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.35rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.store-my-orders {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.store-my-orders h3 {
    margin-bottom: 0.75rem;
}

.store-cart-notes-label {
    display: block;
    margin-top: 0.5rem;
}

.store-cart-notes {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 0.25rem;
    font-size: 14px;
}

.store-cart-promo {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.store-cart-promo input {
    flex: 1;
    min-width: 220px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.store-cart-promo-message {
    font-size: 13px;
    margin-top: 0.25rem;
}

.store-cart-totals p {
    margin: 0.25rem 0;
}

.store-settings-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.store-settings-note i {
    margin-right: 0.35rem;
    color: var(--primary-color);
}

.store-settings-form label,
.store-settings-form input {
    display: block;
    margin-top: 0.35rem;
}

.store-settings-form input {
    width: 100%;
    max-width: 200px;
}

.store-settings-form .btn-primary {
    margin-top: 0.75rem;
}

.store-item-active-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.store-item-active-label input {
    width: auto;
}

.store-promo-add {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.store-promo-add input[type="text"] {
    width: 220px;
    min-width: 180px;
    padding: 0.35rem 0.5rem;
}

.store-promo-add input[type="number"] {
    width: 100px;
    padding: 0.35rem;
}

.store-promo-add select {
    padding: 0.35rem;
}

.store-promo-list {
    margin-top: 0.75rem;
}

.store-promo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.store-promo-active {
    color: var(--text-secondary);
}

.store-promo-item .store-promo-toggle {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
}

.store-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
}

.store-preview-bar.hidden {
    display: none !important;
}

.store-preview-bar span {
    font-weight: 500;
}

.store-preview-bar .btn-primary {
    background: rgba(255,255,255,0.95);
    color: var(--primary-color);
}

.store-preview-bar .btn-primary:hover {
    background: #fff;
}

.store-owner-preview-row {
    margin-bottom: 1rem;
}

.store-owner-preview-row .btn-secondary {
    padding: 0.5rem 1rem;
}

.store-reports-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.store-reports-period {
    margin-bottom: 1rem;
}

.store-reports-period label {
    margin-right: 0.5rem;
}

.store-reports-period select {
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
}

.store-reports-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.store-report-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.store-report-card i {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.store-report-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.store-report-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.store-reports-status {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.store-report-status-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    min-width: 120px;
}

.store-reports-top-items h4,
.store-reports-cards + h4,
.store-reports-status + h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.store-reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.store-reports-table th,
.store-reports-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.store-reports-table th {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Shopify-style admin (Inventory, Customers) */
.store-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.store-admin-search {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
}

.store-admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
}

.store-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.store-admin-table th,
.store-admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.store-admin-table th {
    background: var(--bg-color);
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.store-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.store-admin-table tbody tr:hover {
    background: var(--bg-color);
}

.store-admin-btn {
    padding: 0.35rem 0.6rem;
    font-size: 13px;
}

.store-admin-empty {
    color: var(--text-secondary);
    padding: 1.5rem;
    text-align: center;
}

.store-status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.store-status-visible {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.store-status-hidden {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-secondary);
}

.store-stock-low {
    color: var(--warning-color);
    font-weight: 600;
}

/* Store: Customer form (modern layout + address) */
.store-customer-modal-content {
    max-width: 520px;
}

.store-customer-form-title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

.store-customer-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.store-customer-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.store-customer-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.store-customer-form-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.store-customer-form-field {
    margin-bottom: 0.85rem;
}

.store-customer-form-field:last-child {
    margin-bottom: 0;
}

.store-customer-form-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.store-customer-optional {
    font-weight: 400;
    color: var(--text-secondary);
}

.store-customer-form-field input,
.store-customer-form-field select,
.store-customer-form-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-customer-form-field select {
    cursor: pointer;
    appearance: auto;
}

.store-customer-form-field input:focus,
.store-customer-form-field select:focus,
.store-customer-form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.store-customer-form-field input::placeholder,
.store-customer-form-field textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.store-customer-form-field textarea {
    resize: vertical;
    min-height: 72px;
}

.store-customer-form-row {
    display: grid;
    gap: 0.75rem;
}

.store-customer-form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.store-customer-form-row-3 {
    grid-template-columns: 1fr 1fr 0.9fr;
}

@media (max-width: 480px) {
    .store-customer-form-row-2,
    .store-customer-form-row-3 {
        grid-template-columns: 1fr;
    }
}

.store-customer-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}