/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme Colors (Cute Gamified Pastel Palettes) */
    --primary: #6B68FC;
    --primary-light: #ECECFF;
    --primary-dark: #524FEB;
    --primary-rgb: 107, 104, 252;
    
    --bg-app: #F6F6FD;
    --bg-card: #FFFFFF;
    --bg-card-rgb: 255, 255, 255;
    
    --text-main: #2E2D4D;
    --text-muted: #7E7CA4;
    --border-color: #E2E1F6;

    /* Accent Palette */
    --accent-orange: #FF7B54;
    --accent-orange-light: #FFEBE5;
    --accent-blue: #54B4FF;
    --accent-blue-light: #EBF6FF;
    --accent-green: #60D394;
    --accent-green-light: #EEFAF2;
    --accent-yellow: #FFC03D;
    --accent-yellow-light: #FFF9EB;
    --accent-pink: #FF8FAB;
    --accent-pink-light: #FFEBF0;
    
    /* System States */
    --danger: #FF5252;
    --danger-light: #FFEEEE;

    /* Shadows & Border Radius */
    --shadow-sm: 0 4px 10px rgba(107, 104, 252, 0.04);
    --shadow-md: 0 8px 20px rgba(107, 104, 252, 0.08);
    --shadow-lg: 0 16px 36px rgba(107, 104, 252, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL RESET & DEFAULTS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-app);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.col-span-2 { grid-column: span 2 / span 2; }
.w-full { width: 100%; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(107, 104, 252, 0.3);
}

.btn-secondary-purple {
    background-color: var(--primary-light);
    color: var(--primary);
}
.btn-secondary-purple:hover {
    background-color: #DFDFFF;
}

.btn-secondary-green {
    background-color: var(--accent-green-light);
    color: var(--accent-green);
}
.btn-secondary-green:hover {
    background-color: #D6F5E4;
}

.btn-secondary-world {
    background-color: #FFFFFF;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 10px;
}
.btn-secondary-world:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background-color: var(--danger-light);
    color: var(--danger);
}
.btn-danger:hover {
    background-color: #FFDDDD;
}

.btn-icon-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.btn-icon-round:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}
.btn-icon-round.large {
    width: 56px;
    height: 56px;
    font-size: 24px;
}

.btn-text-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    display: inline-block;
    width: fit-content;
    padding: 4px 0;
}
.btn-text-link:hover {
    text-decoration: underline;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #D0CFFE;
}

/* ==========================================================================
   APP CONTAINER LAYOUT
   ========================================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Mode Selector Top Bar */
.mode-selector-bar {
    height: 60px;
    background-color: #FFFFFF;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
}

.toggle-buttons {
    display: flex;
    background-color: var(--bg-app);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
}

.mode-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.mode-btn.active {
    background-color: #FFFFFF;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Layout Wrappers */
.layout-wrapper {
    display: none;
    flex: 1;
    overflow: hidden;
}

.layout-wrapper.active {
    display: flex;
}

/* ==========================================================================
   LAYOUT 1: INTERACTIVE APP STYLE
   ========================================================================== */
/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #FFFFFF;
    border-right: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.avatar-container {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-green-light);
    border: 1.5px solid var(--accent-green);
    overflow: hidden;
}

.avatar-svg {
    width: 100%;
    height: 100%;
}

.user-info .user-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
}
.user-info .user-title {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.nav-item.active {
    color: #FFFFFF;
    background-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.nav-item.disabled-nav {
    opacity: 0.5;
    cursor: not-allowed;
}
.nav-item.disabled-nav:hover {
    background-color: transparent;
    color: var(--text-muted);
}

.sidebar-profile-card {
    background-color: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: auto;
}

.sidebar-profile-card .profile-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
}

.sidebar-profile-card .profile-name {
    font-size: 14px;
}

.sidebar-profile-card .profile-level {
    color: var(--primary);
    font-size: 12px;
    background-color: #FFFFFF;
    padding: 2px 6px;
    border-radius: 6px;
}

.xp-bar-container {
    height: 8px;
    background-color: rgba(107, 104, 252, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.xp-bar-progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.sidebar-profile-card .profile-footer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    font-weight: 600;
}

/* Main Content area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-app);
}

.content-header {
    height: 80px;
    background-color: #FFFFFF;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

#view-title {
    font-size: 24px;
    color: var(--text-main);
}

.status-bar {
    display: flex;
    gap: 16px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.status-badge.streak { background-color: var(--accent-orange-light); border-color: #FFC5B5; }
.status-badge.xp { background-color: var(--accent-blue-light); border-color: #BBE1FF; }
.status-badge.energy { background-color: var(--accent-pink-light); border-color: #FFC0D0; }

.badge-icon {
    width: 24px;
    height: 24px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.badge-value {
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.badge-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Tab panels container */
.tab-panels-container {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ==========================================================================
   FLOW 1: HOME PANEL WIDGETS
   ========================================================================== */
.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Welcome Card */
.welcome-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FBFBFF 0%, #ECECFF 100%);
    border-color: #DCD9FF;
}

.welcome-text-side h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-main);
}
.welcome-text-side p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.quick-add-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-mascot-side {
    position: relative;
    width: 140px;
    height: 140px;
}

.welcome-dino {
    width: 100%;
    height: 100%;
    animation: dino-bob 3s ease-in-out infinite;
}

.speech-bubble {
    position: absolute;
    bottom: 120px;
    right: 40px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    width: 130px;
    box-shadow: var(--shadow-sm);
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 10px;
    height: 10px;
    background: #FFFFFF;
    border-right: 1.5px solid var(--border-color);
    border-bottom: 1.5px solid var(--border-color);
    transform: rotate(45deg);
}

/* Streak card details */
.streak-card {
    text-align: center;
}
.streak-card h3 {
    text-align: left;
    margin-bottom: 16px;
}

.streak-large {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.flame-huge {
    width: 60px;
    height: 60px;
    animation: flame-pulse 2s ease-in-out infinite;
}

.streak-large-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
}

.streak-large-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

.streak-calendar-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    border-top: 1.5px solid var(--border-color);
    padding-top: 16px;
}

.streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    gap: 4px;
}

.streak-day.active {
    color: var(--accent-orange);
}

.day-dot {
    font-size: 14px;
}

.progress-details {
    border-top: 1.5px solid var(--border-color);
    padding-top: 16px;
    text-align: left;
}

.progress-lbl-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.next-reward-box {
    background-color: var(--accent-yellow-light);
    border: 1px dashed var(--accent-yellow);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #B27C0E;
    margin-top: 12px;
}

/* Tasks Preview */
.tasks-preview-card {
    display: flex;
    flex-direction: column;
}

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

.badge-count {
    background-color: var(--primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.tasks-mini-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin-bottom: 16px;
}

.task-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.task-mini-item:hover {
    background-color: #FFFFFF;
    border-color: var(--primary);
}

.task-mini-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-mini-title {
    font-weight: 600;
    font-size: 13px;
}

.task-mini-right {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.priority-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.priority-dot.high { background-color: var(--danger); }
.priority-dot.medium { background-color: var(--accent-yellow); }
.priority-dot.low { background-color: var(--accent-blue); }

/* Buddy Activity Widget */
.buddy-activity-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.mascot-anim-container {
    width: 80px;
    height: 80px;
    background-color: var(--accent-green-light);
    border-radius: 50%;
    border: 1.5px solid var(--accent-green);
    overflow: hidden;
}

.buddy-work-svg {
    width: 100%;
    height: 100%;
    animation: dino-walk 1.5s ease-in-out infinite alternate;
}

.buddy-status-text {
    flex: 1;
}

.buddy-speech {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 4px;
}

.buddy-subtext {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-container-mini {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    background-color: var(--primary);
    transition: width 0.4s ease;
}

.progress-bar-fill.purple { background-color: var(--primary); }
.progress-bar-fill.blue { background-color: var(--accent-blue); }
.progress-bar-fill.green { background-color: var(--accent-green); }

.animated-stripes {
    background-image: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 12px 12px;
    animation: stripes-move 1s linear infinite;
}

.progress-pct {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
    text-align: right;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.action-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-app);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.action-btn-item:hover {
    border-color: var(--primary);
    background-color: #FFFFFF;
    transform: translateY(-2px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}
.action-icon.purple-bg { background-color: var(--primary-light); color: var(--primary); }
.action-icon.green-bg { background-color: var(--accent-green-light); color: var(--accent-green); }
.action-icon.blue-bg { background-color: var(--accent-blue-light); color: var(--accent-blue); }
.action-icon.orange-bg { background-color: var(--accent-orange-light); color: var(--accent-orange); }

.action-label {
    font-size: 12px;
    font-weight: 700;
}

/* Your World Island widget styling */
.world-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.world-text-panel {
    flex: 1;
}

.world-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0;
    font-size: 13px;
}

.world-bubble {
    display: flex;
    align-items: center;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 12px;
    gap: 10px;
    margin-bottom: 16px;
}

.world-bubble-text {
    font-size: 11px;
    font-weight: 600;
}

.world-mini-dino {
    width: 30px;
    height: 30px;
}

.world-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.world-visual-panel {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-island-wrapper {
    width: 100%;
    height: 100%;
    animation: floating 4s ease-in-out infinite;
}

.floating-island-svg {
    width: 100%;
    height: 100%;
}

/* Achievements List */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.ach-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-app);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1.5px solid var(--border-color);
}

.achievement-item.completed .ach-badge {
    background-color: var(--accent-yellow-light);
    border-color: var(--accent-yellow);
}

.ach-info {
    flex: 1;
}

.ach-title {
    display: block;
    font-weight: 700;
    font-size: 13px;
}
.ach-desc {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.ach-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar-small {
    height: 4px;
    flex: 1;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-small .progress-bar-fill {
    background-color: var(--primary);
}

.ach-progress-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Quote Card */
.quote-card {
    background: linear-gradient(135deg, #FDFDFD 0%, var(--accent-green-light) 100%);
    border-color: #CFF7DF;
}

.quote-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.quote-content blockquote {
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.quote-mascot {
    width: 50px;
    height: 50px;
}

.quote-dino-svg {
    width: 100%;
    height: 100%;
}


/* ==========================================================================
   FLOW 2: TASKS FLOW
   ========================================================================== */
.tasks-layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    gap: 24px;
    height: calc(100vh - 190px);
    overflow: hidden;
}

.tasks-list-panel {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tasks-panel-header {
    padding: 16px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    gap: 8px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    width: 100%;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    background-color: var(--bg-app);
    padding: 2px;
    border-radius: 8px;
}

.filter-btn {
    flex: 1;
    text-align: center;
    padding: 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    color: var(--text-muted);
}
.filter-btn.active {
    background-color: #FFFFFF;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tasks-list-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tasks-panel-footer {
    padding: 16px;
    border-top: 1.5px solid var(--border-color);
}

/* Checkbox Style Tasks */
.task-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background-color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition);
}
.task-item-row:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}
.task-item-row.active {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.task-item-row.completed {
    opacity: 0.6;
}

.task-item-row.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-check-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    font-size: 11px;
    color: transparent;
    transition: var(--transition);
}
.task-item-row.completed .custom-checkbox {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #FFFFFF;
}

.task-meta-block {
    display: flex;
    flex-direction: column;
}

.task-text {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
}

.task-time-lbl {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.priority-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.priority-tag.high { background-color: var(--danger-light); color: var(--danger); }
.priority-tag.medium { background-color: var(--accent-yellow-light); color: #B27C0E; }
.priority-tag.low { background-color: var(--accent-blue-light); color: var(--accent-blue); }


/* Task Details right column pane states */
.tasks-details-panel {
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.detail-state-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}
.detail-state-empty.active { display: flex; }

.empty-dino {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.detail-state-card {
    display: none;
    height: 100%;
    flex-direction: column;
}
.detail-state-card.active { display: flex; }

/* Details view styling */
.detail-state-card .details-header {
    padding: 24px;
    border-bottom: 1.5px solid var(--border-color);
}

.badge-priority {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}
.badge-priority.priority-high { background-color: var(--danger-light); color: var(--danger); }
.badge-priority.priority-medium { background-color: var(--accent-yellow-light); color: #B27C0E; }
.badge-priority.priority-low { background-color: var(--accent-blue-light); color: var(--accent-blue); }

.detail-state-card .details-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.det-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.det-meta-row {
    display: flex;
    gap: 16px;
}

.det-meta-item {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.subtasks-section h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

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

.subtask-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-app);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

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

.buddy-status-box {
    background-color: var(--accent-green-light);
    border: 1px dashed var(--accent-green);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.buddy-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.buddy-tiny-dino {
    width: 44px;
    height: 44px;
}

.buddy-title-small {
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-green);
}
.buddy-desc-small {
    font-size: 11px;
    color: var(--text-muted);
}

.details-footer-actions {
    padding: 24px;
    border-top: 1.5px solid var(--border-color);
    display: flex;
    gap: 12px;
}

/* STATE B: Task In Action simulator styling */
.task-in-action-card .action-header {
    padding: 24px;
    border-bottom: 1.5px solid var(--border-color);
}

.badge-status-in-progress {
    background-color: var(--accent-yellow-light);
    color: #B27C0E;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 6px;
}

.action-body-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.action-mascot-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    height: 200px;
}

.wooden-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.sign-board {
    background-color: #B38E66;
    border: 3px solid #7D5C39;
    border-radius: 8px;
    padding: 12px;
    color: #FFFFFF;
    text-align: center;
    box-shadow: var(--shadow-sm);
    width: 160px;
}

.sign-board .sign-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    background-color: #8C5F32;
    padding: 2px 4px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.sign-board .sign-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
}

.sign-post {
    width: 14px;
    height: 40px;
    background-color: #8C5F32;
    border-left: 3px solid #7D5C39;
    border-right: 3px solid #7D5C39;
}

.action-dino-helmet {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: -10px;
    left: 10px;
    animation: dino-walk 1.5s ease-in-out infinite alternate;
}

.action-status-block {
    text-align: center;
    width: 100%;
}

.action-status-block h4 {
    margin-bottom: 8px;
    color: var(--primary);
}
.action-status-block p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.timer-display-mini {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.action-footer {
    padding: 24px;
    border-top: 1.5px solid var(--border-color);
}

/* STATE C: Completed Celebration styling */
.completed-celebration-card {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.celebration-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.celebration-dino-happy {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.celebration-bin {
    margin-bottom: 20px;
}

.bin-box {
    background-color: #B3B2C9;
    border: 3px solid var(--text-muted);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
}

.celebration-success-msg {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 16px;
}

.reward-pills-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.reward-pill {
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
}
.reward-pill.xp { background-color: var(--accent-blue-light); color: var(--accent-blue); }
.reward-pill.energy { background-color: var(--accent-pink-light); color: var(--accent-pink); }

.celebration-footer {
    padding: 24px;
    width: 100%;
}

/* Third Column: AI Planner Panel */
.tasks-ai-planner-panel {
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.planner-header {
    padding: 16px;
    background-color: var(--primary-light);
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.planner-wizard-dino {
    width: 56px;
    height: 56px;
}

.planner-speech-bubble h4 {
    font-size: 13px;
    color: var(--primary);
}
.planner-speech-bubble p {
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted);
}

.planner-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.planner-body h5 {
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.planner-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 14px;
}
.planner-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid #FFFFFF;
}

.timeline-item.break::before {
    background-color: var(--accent-orange);
}

.timeline-item .time {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.timeline-content {
    background-color: var(--bg-app);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
}

.timeline-content strong {
    font-size: 12px;
    display: block;
}
.timeline-subtext {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

.planner-footer {
    padding: 16px;
    border-top: 1.5px solid var(--border-color);
}


/* ==========================================================================
   FLOW 3: FOCUS FLOW
   ========================================================================== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.focus-timer-card {
    display: flex;
    flex-direction: column;
}

.focus-timer-header-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.timer-mode-selector select {
    background-color: var(--bg-app);
    border: 1.5px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    outline: none;
}

.focus-timer-display-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* SETUP view */
.focus-setup-view {
    display: none;
    width: 100%;
}
.focus-setup-view.active { display: block; }

.setup-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 320px;
    margin: 0 auto;
}

.setup-dino-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.setup-dino {
    width: 100%;
    height: 100%;
}

.duration-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.btn-duration {
    background-color: var(--bg-app);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
}
.btn-duration:hover {
    border-color: var(--primary);
    background-color: #FFFFFF;
}
.btn-duration.active {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.custom-duration-input {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.custom-duration-input input {
    width: 60px;
    border: 1.5px solid var(--border-color);
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    outline: none;
}

/* ACTIVE Timer session radial display */
.focus-active-view, .focus-break-view {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.focus-active-view.active, .focus-break-view.active { display: flex; }

.timer-radial-progress, .break-radial-progress {
    position: relative;
    width: 200px;
    height: 200px;
}

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

.radial-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.radial-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1s linear;
}

.radial-bar.break {
    stroke: var(--accent-green);
}

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

.timer-countdown-text {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.timer-countdown-text.large {
    font-size: 48px;
}

.timer-sub-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.active-mascot-wrap {
    position: relative;
    width: 70px;
    height: 70px;
}

.studying-dino-svg, .break-dino-svg {
    width: 100%;
    height: 100%;
}

.active-timer-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Focus Stats Chart */
.focus-stats-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.focus-time-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 16px 0;
}

.focus-time-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.focus-time-value {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
}

.focus-bar-chart {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 16px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 6px;
}

.bar-fill {
    width: 14px;
    background-color: var(--primary-light);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.bar-item.active .bar-fill {
    background-color: var(--primary);
}

.bar-item .day {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.focus-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-mini-item {
    flex: 1;
    background-color: var(--bg-app);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-mini-item .num {
    display: block;
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 800;
}
.stat-mini-item .lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Focus Goals Progress lists */
.focus-goals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.goal-item-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.goal-label-block {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.goal-label-block .lbl { color: var(--text-main); }
.goal-label-block .val { color: var(--text-muted); }

.goal-progress-bar-container {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.goal-progress-bar-container .progress-bar-fill.purple { background-color: var(--primary); }
.goal-progress-bar-container .progress-bar-fill.blue { background-color: var(--accent-blue); }
.goal-progress-bar-container .progress-bar-fill.green { background-color: var(--accent-green); }

.goal-subtext {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: right;
}

.goal-mascot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    background-color: var(--accent-yellow-light);
    border: 1px dashed var(--accent-yellow);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.goal-dino-svg {
    width: 36px;
    height: 36px;
}

.goal-dino-bubble {
    font-size: 11px;
    font-weight: 700;
    color: #B27C0E;
}

/* Music Player card */
.player-container {
    margin-top: 16px;
}

.playlist-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.playlist-icon {
    font-size: 24px;
}

.playlist-info .playlist-title {
    display: block;
    font-weight: 700;
    font-size: 14px;
}
.playlist-info .playlist-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

/* Wave visualizer */
.wave-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin-bottom: 16px;
    background-color: var(--primary-light);
    border-radius: 8px;
    overflow: hidden;
}

.wave-bar {
    width: 3px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 1px;
    transition: height 0.15s ease;
}

.wave-visualizer.playing .wave-bar {
    animation: wave-bounce 0.8s ease-in-out infinite alternate;
}
.wave-visualizer.playing .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-visualizer.playing .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-visualizer.playing .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-visualizer.playing .wave-bar:nth-child(5) { animation-delay: 0.15s; }
.wave-visualizer.playing .wave-bar:nth-child(6) { animation-delay: 0.25s; }
.wave-visualizer.playing .wave-bar:nth-child(7) { animation-delay: 0.05s; }
.wave-visualizer.playing .wave-bar:nth-child(8) { animation-delay: 0.35s; }

.playlist-songs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.song-item:hover {
    background-color: var(--bg-app);
}

.song-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.song-num {
    width: 20px;
}
.song-title {
    flex: 1;
}
.song-duration {
    color: var(--text-muted);
}
.song-item.active .song-duration {
    color: var(--primary);
}

.player-controls-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.player-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}
.player-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

/* Ambient noise synthesizers details */
.ambience-tabs {
    display: flex;
    gap: 6px;
    margin: 16px 0;
}

.ambience-tab {
    flex: 1;
    padding: 8px 4px;
    background-color: var(--bg-app);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.ambience-tab:hover {
    border-color: var(--primary);
}
.ambience-tab.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.ambience-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ambience-illustration {
    position: relative;
    width: 100px;
    height: 100px;
    background-color: #E2ECF5;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.ambience-dino {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 5px;
    left: 20px;
}

.ambient-rain-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}
.ambient-rain-effect.active {
    background-image: linear-gradient(170deg, rgba(84, 180, 255, 0.1) 0%, transparent 100%);
    animation: rain-fall 0.8s linear infinite;
}

.volume-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.volume-slider-row span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}
.volume-slider-row input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
}


/* ==========================================================================
   FLOW 4: FRIENDS FLOW
   ========================================================================== */
.friends-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr 320px;
    gap: 24px;
    height: calc(100vh - 190px);
    overflow: hidden;
}

.friends-list-panel {
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.friends-panel-header {
    padding: 16px;
    border-bottom: 1.5px solid var(--border-color);
}

.friends-panel-header h3 {
    margin-bottom: 12px;
}

.friends-filter-tabs {
    display: flex;
    background-color: var(--bg-app);
    padding: 2px;
    border-radius: 8px;
}

.fr-tab {
    flex: 1;
    text-align: center;
    padding: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 6px;
}
.fr-tab.active {
    background-color: #FFFFFF;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.friends-list-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friends-panel-footer {
    padding: 16px;
    border-top: 1.5px solid var(--border-color);
}

/* Friend list item design */
.friend-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background-color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition);
}
.friend-item-row:hover {
    border-color: var(--primary);
}
.friend-item-row.active {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.friend-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-list-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--accent-pink-light);
    border-radius: 50%;
    border: 1px solid var(--accent-pink);
    overflow: hidden;
}

.friend-list-name-block {
    display: flex;
    flex-direction: column;
}

.friend-list-name {
    font-weight: 700;
    font-size: 13px;
}
.friend-list-lvl {
    font-size: 10px;
    color: var(--text-muted);
}

.friend-status-indicator {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.friend-status-indicator.online { background-color: var(--accent-green-light); color: var(--accent-green); }
.friend-status-indicator.focusing { background-color: var(--accent-yellow-light); color: #B27C0E; }
.friend-status-indicator.offline { background-color: var(--bg-app); color: var(--text-muted); }

/* Friend profile / study room middle column */
.friends-profile-co-study-panel {
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.friend-profile-card, .study-together-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.friend-profile-header {
    padding: 24px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.friend-avatar-wrap {
    width: 64px;
    height: 64px;
    background-color: var(--accent-pink-light);
    border-radius: 50%;
    border: 1.5px solid var(--accent-pink);
    overflow: hidden;
}

.friend-profile-dino {
    width: 100%;
    height: 100%;
}

.friend-profile-title h2 {
    font-size: 20px;
}
.friend-level-tag {
    font-size: 11px;
    color: var(--accent-pink);
    font-weight: 700;
    background-color: var(--accent-pink-light);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
}

.friend-profile-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.friend-stats-row {
    display: flex;
    gap: 16px;
}

.fr-stat-box {
    flex: 1;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}
.fr-stat-box .num {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}
.fr-stat-box .lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.friend-achievements h4 {
    font-size: 13px;
    margin-bottom: 12px;
}

.ach-badges-grid {
    display: flex;
    gap: 12px;
}

.badge-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-app);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0.4;
}
.badge-item.active {
    opacity: 1;
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.friend-profile-footer {
    padding: 24px;
    border-top: 1.5px solid var(--border-color);
}

/* Study together room styling details */
.study-together-card .study-header {
    padding: 24px;
    border-bottom: 1.5px solid var(--border-color);
}
.study-together-card .study-header h3 { color: var(--primary); }
.study-together-card .study-header p { font-size: 12px; color: var(--text-muted); }

.study-split-view {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 32px;
    background-color: var(--bg-app);
    border-bottom: 1.5px solid var(--border-color);
}

.study-buddy-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.study-dino {
    width: 100px;
    height: 100px;
}
.study-dino.self { animation: dino-bob 3s ease-in-out infinite; }
.study-dino.partner { animation: dino-bob 3s ease-in-out infinite 0.5s; }

.study-buddy-block .label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
}

.study-session-clock-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.study-footer {
    padding: 24px;
    border-top: 1.5px solid var(--border-color);
}

/* Right Social column: leaderboard, feed, challenges */
.friends-social-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.leaderboard-tabs {
    display: flex;
    gap: 4px;
    background-color: var(--bg-app);
    padding: 2px;
    border-radius: 6px;
}

.ld-tab {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    color: var(--text-muted);
}
.ld-tab.active {
    background-color: #FFFFFF;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.leader-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
}

.leader-item.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 700;
}

.leader-item .rank {
    width: 24px;
    font-family: var(--font-heading);
    font-weight: 800;
}
.leader-item.gold .rank { color: #D4AF37; }
.leader-item.silver .rank { color: #C0C0C0; }
.leader-item.bronze .rank { color: #CD7F32; }

.leader-item .name {
    flex: 1;
}
.leader-item .xp {
    color: var(--text-muted);
}
.leader-item.active .xp {
    color: var(--primary);
}

/* Friend activity feed stream */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.act-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.act-avatar {
    font-size: 20px;
    background-color: var(--bg-app);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.act-details p {
    font-size: 12px;
    line-height: 1.3;
}
.act-time {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Challenges item box */
.challenge-item-box {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.challenge-info strong {
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

.challenge-progress-text {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 700;
    display: block;
    margin-top: 4px;
    text-align: right;
}

.btn-small {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 6px;
}

.active-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--accent-green-light);
    color: var(--accent-green);
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}


/* ==========================================================================
   LAYOUT 2: FIGMA MOCK BOARDS SCHEME
   ========================================================================== */
#figma-board-layout {
    background-color: #2F2E41; /* Figma Dark Canvas Mode */
    padding: 32px;
    overflow-x: auto;
    overflow-y: hidden;
}

.figma-board-scroll-container {
    display: flex;
    gap: 32px;
    height: 100%;
}

.figma-column {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.column-header-banner {
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #FFFFFF;
    font-size: 12px;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-sm);
}

.column-header-banner.color-home { background-color: #7B2CBF; }
.column-header-banner.color-tasks { background-color: #3F37C9; }
.column-header-banner.color-focus { background-color: #480CA8; }
.column-header-banner.color-friends { background-color: #560BAD; }

.figma-board-preview-img-card {
    background-color: #1E1E2E;
    border: 2px solid #3F3E54;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 480px;
}

.mock-browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2F2E43;
}
.mock-browser-chrome .circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mock-browser-chrome .circle.red { background-color: #FF5F56; }
.mock-browser-chrome .circle.yellow { background-color: #FFBD2E; }
.mock-browser-chrome .circle.green { background-color: #27C93F; }
.mock-browser-chrome .title-bar {
    color: #8C8A9F;
    font-size: 8px;
    margin-left: auto;
    font-weight: 600;
}

.mock-content-body {
    flex: 1;
    background-color: #F8F9FD;
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
    display: flex;
}

.mini-sidebar {
    width: 32px;
    background-color: #FFFFFF;
    border-right: 1px solid #EAEAEA;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 10px;
}

.mini-sidebar .item.active {
    background-color: #ECECFF;
    border-radius: 4px;
    padding: 2px;
}

.mini-grid {
    flex: 1;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    align-content: start;
    overflow-y: auto;
}

.m-card {
    background-color: #FFFFFF;
    border: 1px solid #E4E4E6;
    border-radius: 6px;
    padding: 8px;
}

.m-card.col-2 {
    grid-column: span 2;
}

.m-card.welcome {
    background-color: #ECECFF;
    position: relative;
}
.m-card h4, .m-card h5 {
    font-size: 8px;
    margin-bottom: 2px;
}
.m-card p {
    font-size: 6px;
    color: #666;
}

.dino-placeholder {
    font-size: 18px;
    position: absolute;
    right: 4px;
    bottom: 4px;
}

.m-card.list ul {
    list-style: none;
    font-size: 6px;
    line-height: 1.4;
}

.m-progress {
    height: 4px;
    background-color: #E2E1F6;
    border-radius: 2px;
    position: relative;
    margin-top: 4px;
}
.m-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background-color: var(--primary);
    border-radius: 2px;
}

.streak-dots {
    font-size: 8px;
    margin-top: 4px;
    color: var(--accent-orange);
}

.world-art-mini {
    font-size: 16px;
    text-align: center;
    margin-top: 4px;
}

.figma-card-carousel-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100% - 40px);
    overflow-y: auto;
    padding-right: 6px;
}

/* Customized Figma Cards */
.figma-sub-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: #FFFFFF;
    border: 1px solid #E2E1F6;
}

.sub-card-header {
    background-color: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10px;
    padding: 4px 8px;
    margin: -8px -8px 8px -8px;
    border-radius: 6px 6px 0 0;
    text-transform: uppercase;
}

.task-list-mock, .friends-list-mock, .leaderboard-mock {
    list-style: none;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prio {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    float: right;
}
.prio.high { background-color: var(--danger-light); color: var(--danger); }
.prio.med { background-color: var(--accent-yellow-light); color: #B27C0E; }
.prio.low { background-color: var(--accent-blue-light); color: var(--accent-blue); }

.buttons-mock {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.btn-mock {
    flex: 1;
    font-size: 10px;
    background-color: var(--bg-app);
    padding: 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.btn-mock.active {
    background-color: var(--primary);
    color: #FFFFFF;
}

.wooden-sign-mock {
    background-color: #B38E66;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.celebration-trophy {
    font-size: 32px;
    margin-bottom: 8px;
    animation: floating 3s ease-in-out infinite;
}

.rewards {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 11px;
}

.duration-grid-mock {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 11px;
    text-align: center;
}
.duration-grid-mock span {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 4px;
}

.clock-display-mock {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0;
}

.block-list-mock {
    list-style: none;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.study-split-mock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 12px;
}

.letter-note {
    background-color: var(--accent-yellow-light);
    border: 1px dashed var(--accent-yellow);
    padding: 8px;
    border-radius: 6px;
    font-size: 10px;
    font-style: italic;
    color: #B27C0E;
    margin-top: 8px;
}


/* ==========================================================================
   MODAL WINDOW DIALOGUES
   ========================================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(46, 45, 77, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 460px;
    background-color: #FFFFFF;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    animation: modal-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--border-color);
}

.btn-close-modal {
    font-size: 18px;
    color: var(--text-muted);
}
.btn-close-modal:hover {
    color: var(--danger);
}

.modal-body {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    background-color: var(--bg-app);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background-color: #FFFFFF;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1.5px solid var(--border-color);
    padding-top: 16px;
}

/* Distractions summary and visit layout */
.distraction-shield-wrapper, .visit-avatar-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px auto;
}

.cool-shield-dino, .pink-visit-dino {
    width: 100%;
    height: 100%;
}

.blocked-apps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    text-align: left;
}

.blocked-app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
}

.count-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}
.count-badge.red { background-color: var(--danger-light); color: var(--danger); }

.visit-note-paper {
    background-color: var(--accent-yellow-light);
    border: 2px dashed var(--accent-yellow);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
}

.visit-note-paper blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 700;
    color: #B27C0E;
    font-size: 14px;
    line-height: 1.4;
}


/* ==========================================================================
   MICRO-ANIMATIONS & TRANSITIONS
   ========================================================================== */
@keyframes dino-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes dino-walk {
    0% { transform: rotate(-5deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(-4px); }
}

@keyframes flame-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,123,84,0.4)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(255,123,84,0.7)); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes stripes-move {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}

@keyframes wave-bounce {
    0% { height: 6px; }
    100% { height: 32px; }
}

@keyframes rain-fall {
    0% { background-position: 0 0; }
    100% { background-position: 20px 80px; }
}

@keyframes modal-slide-in {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ==========================================================================
   SPRITE ANIMATION LAYOUT & KEYFRAMES
   ========================================================================== */
#panel-tasks {
    position: relative;
}

.tasks-animation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100; /* Layer above list and cards */
    overflow: hidden;
}

.anim-dino-wrapper {
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: 40px;
    left: -150px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 101;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), bottom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-dino-wrapper.walking .anim-dino-svg {
    animation: dino-walk-cycle 0.3s infinite alternate;
}

.anim-dino-svg {
    width: 100%;
    height: 100%;
}

.anim-task-scroll {
    position: absolute;
    background-color: #FFFFFF;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 105;
    pointer-events: none;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-bin-chest {
    position: absolute;
    bottom: 50px;
    right: 320px; /* Positioned near center/right of layout grid */
    width: 80px;
    height: 80px;
    background-color: #B38E66;
    border: 4px solid #7D5C39;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 12px;
    color: #FFFFFF;
    z-index: 99;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anim-bin-chest.active {
    opacity: 1;
    transform: scale(1);
}

.anim-bin-chest.shake {
    animation: bin-shake-cycle 0.5s ease-in-out;
}

@keyframes dino-walk-cycle {
    0% { transform: rotate(-8deg) translateY(0); }
    100% { transform: rotate(8deg) translateY(-8px); }
}

@keyframes bin-shake-cycle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    20%, 60% { transform: scale(1.15) rotate(-8deg); }
    40%, 80% { transform: scale(1.15) rotate(8deg); }
}

/* Multi-Directional & Game Animations */
@keyframes dino-jump {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(5px) scale(1.1, 0.9); }
    50% { transform: translateY(-30px) scale(0.9, 1.1); }
    80% { transform: translateY(0) scale(1.05, 0.95); }
}

@keyframes dino-hammer-strike {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-25deg); }
    50% { transform: rotate(50deg) scale(1.1); }
    70% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.anim-hammering {
    animation: dino-hammer-strike 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: 70% 30%;
}

.anim-jump {
    animation: dino-jump 0.8s ease-in-out infinite;
}

@keyframes dino-walk-z {
    0% { transform: translateY(0) scale(1.02, 0.98); }
    100% { transform: translateY(-10px) scale(0.98, 1.02); }
}

.anim-dino-wrapper.walking-z .anim-dino-svg {
    animation: dino-walk-z 0.3s infinite alternate;
}

/* Make celebration modal dino jump */
.celebration-dino-happy {
    animation: dino-jump 0.8s ease-in-out infinite !important;
}

/* Limb Animations for Side Walking & Carrying */
.dino-limb-arm-back { transform-origin: 45px 58px; transition: transform 0.3s ease; }
.dino-limb-leg-back { transform-origin: 45px 85px; }
.dino-limb-arm-front { transform-origin: 55px 60px; transition: transform 0.3s ease; }
.dino-limb-leg-front { transform-origin: 58px 88px; }

.anim-dino-wrapper.walking .dino-limb-leg-front {
    animation: dino-leg-swing-front 0.6s linear infinite;
}
.anim-dino-wrapper.walking .dino-limb-leg-back {
    animation: dino-leg-swing-back 0.6s linear infinite;
}
.anim-dino-wrapper.walking:not(.carrying) .dino-limb-arm-front {
    animation: dino-arm-swing-front 0.6s linear infinite;
}
.anim-dino-wrapper.walking:not(.carrying) .dino-limb-arm-back {
    animation: dino-arm-swing-back 0.6s linear infinite;
}

/* Carrying state (arms up to hold task) */
.anim-dino-wrapper.carrying .dino-limb-arm-front {
    transform: rotate(110deg);
}
.anim-dino-wrapper.carrying .dino-limb-arm-back {
    transform: rotate(110deg);
}

@keyframes dino-leg-swing-front {
    0% { transform: rotate(-35deg); }
    50% { transform: rotate(35deg); }
    100% { transform: rotate(-35deg); }
}
@keyframes dino-leg-swing-back {
    0% { transform: rotate(35deg); }
    50% { transform: rotate(-35deg); }
    100% { transform: rotate(35deg); }
}
@keyframes dino-arm-swing-front {
    0% { transform: rotate(25deg); }
    50% { transform: rotate(-25deg); }
    100% { transform: rotate(25deg); }
}
@keyframes dino-arm-swing-back {
    0% { transform: rotate(-25deg); }
    50% { transform: rotate(25deg); }
    100% { transform: rotate(-25deg); }
}

/* ==========================================================================
   SETTINGS & PROFILE FLOW
   ========================================================================== */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.profile-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-card), var(--primary-color-light));
    border: 3px solid white;
    border-radius: 24px;
    padding: 40px;
}

.profile-hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.avatar-large-container {
    width: 150px;
    height: 150px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    animation: floating 4s ease-in-out infinite;
}

.avatar-large-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.15));
}

.profile-hero-info h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--text-dark);
}

.profile-hero-info p {
    margin: 5px 0 15px 0;
    color: var(--text-light);
}

.profile-level.badge {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 15px;
}

.settings-mascot {
    animation: floating 3s ease-in-out infinite;
}

.settings-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.floating-setting-card {
    text-align: center;
    padding: 30px 20px;
    border-top: 5px solid var(--secondary-color);
    animation: floating 4s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.floating-setting-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(107, 104, 252, 0.2);
}

.setting-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Edit Profile Modal */
.avatar-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar-option {
    width: 70px;
    height: 70px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: var(--bg-color);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-option svg {
    width: 70%;
    height: 70%;
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 15px rgba(107, 104, 252, 0.4);
}

.cute-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s;
    background: #F8FAFC;
    box-sizing: border-box;
}

.cute-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(107, 104, 252, 0.1);
}

/* Dino Alive Animations (Blink & Wave) */
.dino-default-eye-left, .dino-default-eye-right {
    animation: dino-blink 4.5s infinite;
}

.dino-default-arm-left {
    transform-origin: 28px 58px;
    animation: dino-wave-left 3s ease-in-out infinite;
}

.dino-default-arm-right {
    transform-origin: 72px 58px;
    animation: dino-wave-right 3.5s ease-in-out infinite;
}

@keyframes dino-blink {
    0%, 94%, 98% { transform: scaleY(1); }
    96%, 100% { transform: scaleY(0.1); }
}

@keyframes dino-wave-left {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-45deg); }
}

@keyframes dino-wave-right {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(45deg); }
}

/* ==========================================================================
   NOTIFICATIONS & PREFERENCES MODAL
   ========================================================================== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #F8FAFC;
    border-radius: 16px;
    border: 2px solid #E2E8F0;
    transition: 0.2s;
}

.settings-row:hover {
    border-color: var(--primary-color-light);
    box-shadow: 0 4px 12px rgba(107, 104, 252, 0.05);
}

.settings-info h4 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.settings-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Cute Toggle Switch */
.cute-toggle {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 30px;
    flex-shrink: 0;
}

.cute-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Modal specific button styles */
.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid #E2E8F0;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Fredoka', sans-serif;
    text-align: center;
}
.btn-outline:hover {
    border-color: var(--primary-color-light);
    color: var(--primary-color);
}

.btn-danger {
    background: #FF4757;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 4px 0 #D03040;
    text-align: center;
}
.btn-danger:hover {
    background: #FF6B81;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #D03040;
}
.btn-danger:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #D03040;
}

