/* ============================================================================
   SPA LAYOUT STYLES
   ============================================================================
   NOTE: Global tokens (colors, typography, spacing) are defined in global.css
    This file only contains layout-specific and component-specific styles.
    ============================================================================ */
/* Apple Transition Curve: cubic-bezier(0.4, 0, 0.2, 1) */

/* === MAP-SPECIFIC LAYOUT TOKENS === */
:root {
    /* Map Path Layout */
    --path-width: 600px;
    --node-size: 64px;
}

@media (max-width: 640px) {
    :root {
        --node-size: 64px;
        --path-width: 100%;
    }
}

/* === MAP VIEW VISUAL IDENTITY === */
#view-map {
    /* Specific Map Palette from map.html */
    --c-paper: var(--sc-slate-50);
    --c-text: var(--sc-slate-900);
    --c-text-light: var(--sc-slate-500);
    --c-primary: var(--sc-green);
    --c-secondary: var(--sc-blue);
    --c-cta: var(--sc-red);
    --c-yellow: var(--sc-gold);
    --c-white: var(--color-white);

    /* Background removed - handled by index.html persistent-bg */
}


/* .bg-sky removed - handled by index.html persistent-bg */

/* === MAP VIEW STYLES === */
.left-panel {
    position: fixed;
    left: 176px;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 500;
    width: 400px;
}

.next-class-card,
.mission-card {
    background: white;
    border-radius: var(--sc-ui-radius, 12px);
    padding: 12px 12px 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: 100%;
}

.mission-card {
    padding: 16px 16px 16px 20px;
    border: none;
}

.date-box {
    width: 64px;
    height: 64px;
    border: 4px solid var(--c-text);
    /* Borders are exception or 4px */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
}

.date-box .month {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-error);
    /* Replaced var(--sc-coral) */
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 4px;
}

.date-box .day {
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1;
}

.class-info,
.mission-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.class-label,
.mission-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    /* Replaced var(--sc-slate-400) */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.class-time,
.mission-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.5px;
}

.class-time {
    font-size: 20px;
}

.mission-title {
    font-size: 20px;
    letter-spacing: -0.3px;
}

.join-btn {
    background: var(--sc-coral);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 0 0 var(--sc-coral-shadow);
    transition: all 0.1s;
    flex-shrink: 0;
}

.join-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 var(--sc-coral-shadow);
}

.mission-circle {
    width: 52px;
    height: 52px;
    background: var(--c-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(24, 203, 164, 0.3);
}

.arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sc-ui-border);
    background: white;
    color: var(--sc-slate-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.arrow-btn:hover {
    background: var(--sc-slate-50);
    border-color: var(--sc-slate-300);
    color: var(--c-text);
}

#map-container {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-top: 100px;
    padding-bottom: 120px;
    display: flex;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: var(--c-text-light) transparent;
}

@media (max-width: 1100px) {
    .left-panel {
        display: none;
    }

    #map-container {
        margin-left: 0;
    }
}

.path-wrapper {
    position: relative;
    width: 100%;
    max-width: var(--path-width);
    min-height: 1000px;
}

#path-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#nodes-layer {
    position: relative;
    z-index: 10;
}

.node-container {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s var(--sc-motion-apple, cubic-bezier(0.4, 0, 0.2, 1));
}

.node-container:hover {
    transform: translate(-50%, -55%) scale(1.05);
    z-index: 20;
}

.node-circle {
    width: var(--node-size);
    height: var(--node-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    position: relative;
    border: 4px solid var(--c-text);
    box-shadow: var(--shadow-hard);
    transition: all 0.2s;
    background-color: var(--c-white);
}

.node-container:active .node-circle {
    box-shadow: 4px 2px 0 var(--c-text);
    transform: translate(4px, 4px);
}

.node-completed .node-circle {
    background-color: var(--c-primary);
    color: var(--c-text);
}

.node-completed .check-mark {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: var(--c-yellow);
    color: var(--c-text);
    border: 4px solid var(--c-text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 4px 2px 0 rgba(0, 0, 0, 0.1);
}

.node-current .node-circle {
    background-color: var(--c-yellow);
    color: var(--c-text);
    animation: bounce-subtle 2s infinite ease-in-out;
}

.node-current::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--c-primary);
    opacity: 0;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

.node-locked .node-circle {
    background-color: var(--sc-slate-200);
    color: var(--sc-slate-400);
    border-color: var(--sc-slate-400);
    box-shadow: 4px 4px 0 var(--sc-slate-300);
    cursor: not-allowed;
    filter: grayscale(1);
}

.node-locked {
    pointer-events: none;
}

.node-label {
    background: var(--c-white);
    padding: 8px 18px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    color: var(--c-text);
    margin-top: 16px;
    border: 4px solid var(--c-text);
    box-shadow: var(--shadow-hard-sm);
    text-align: center;
    white-space: nowrap;
    position: relative;
    z-index: 30;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.node-current .node-label {
    background-color: var(--c-cta);
    color: white;
    border-color: var(--c-text);
    transform: scale(1.1) rotate(-2deg);
}

.crown {
    position: absolute;
    top: -44px;
    font-size: 3rem;
    filter: drop-shadow(3px 3px 0 var(--c-text));
    animation: float 3s ease-in-out infinite;
    z-index: 25;
}

#scenery-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scenery {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    font-size: 3rem;
}

.scenery.cloud {
    color: white;
    opacity: 0.8;
    font-size: 4rem;
    z-index: 0;
}

.scenery.star {
    color: var(--c-yellow);
    font-size: 2rem;
    animation: twinkle 3s infinite;
}

.scenery.leaf {
    color: var(--c-primary);
    font-size: 2.5rem;
}

/* Radial Modal */
#radial-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 30, 45, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#radial-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.radial-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#radial-modal.active .radial-container {
    transform: scale(1);
}

.center-hub {
    width: 112px;
    height: 112px;
    background: var(--c-white);
    border-radius: 50%;
    border: 4px solid var(--c-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2), 6px 6px 0 var(--c-text);
    cursor: pointer;
    transition: transform 0.2s;
}

.center-hub:hover {
    transform: scale(1.05);
}

.hub-icon {
    font-size: 3rem;
    line-height: 1;
}

.hub-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 4px;
    color: var(--c-text-light);
}

.satellite-btn {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--c-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--c-text);
    box-shadow: var(--shadow-hard-sm);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transform: scale(0.5);
}

#radial-modal.active .satellite-btn {
    opacity: 1;
    transform: scale(1);
}

.satellite-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: var(--shadow-hard);
    z-index: 20;
}

.satellite-btn:active {
    transform: scale(0.95) !important;
    box-shadow: none;
}

.satellite-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.satellite-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
}

.pos-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    background-color: var(--c-cta);
    color: white;
    transition-delay: 0.05s;
}

#radial-modal.active .pos-top {
    transform: translateX(-50%) scale(1);
}

.pos-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%) scale(0.5);
    background-color: var(--c-secondary);
    color: white;
    transition-delay: 0.1s;
}

#radial-modal.active .pos-right {
    transform: translateY(-50%) scale(1);
}

.pos-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    background-color: var(--c-primary);
    color: var(--c-text);
    transition-delay: 0.15s;
}

#radial-modal.active .pos-bottom {
    transform: translateX(-50%) scale(1);
}

.pos-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%) scale(0.5);
    background-color: var(--c-yellow);
    color: var(--c-text);
    transition-delay: 0.2s;
}

#radial-modal.active .pos-left {
    transform: translateY(-50%) scale(1);
}

.modal-title-float {
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 320px;
    text-align: center;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease 0.1s;
}

#radial-modal.active .modal-title-float {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.float-sub {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.float-main {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.float-desc {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    opacity: 0.95;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 12px 16px;
    border-radius: 16px;
    display: inline-block;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.4;
}

.close-radial {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: white;
    border: 4px solid var(--c-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow-hard-sm);
    pointer-events: auto;
    transition: all 0.2s;
    z-index: 2001;
}

.close-radial:hover {
    background-color: var(--color-error-bg);
    transform: rotate(90deg) scale(1.1);
}


/* === RANK PAGE STYLES === */
.rank-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    margin: 32px 0 24px;
    color: var(--sc-text);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.page-title i {
    color: var(--sc-secondary);
    margin-right: 12px;
    filter: drop-shadow(0 4px 8px rgba(255, 200, 0, 0.4));
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.podium-place:hover {
    transform: translateY(-5px);
}

.podium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 8px;
}

.podium-place[data-rank="1"] .podium-avatar {
    width: 80px;
    height: 80px;
    border-color: var(--sc-gold);
    box-shadow: 0 0 0 4px rgba(255, 200, 0, 0.3);
}

.podium-crown {
    font-size: 24px;
    margin-bottom: -8px;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.podium-name {
    font-weight: 700;
    font-size: 12px;
    color: var(--sc-text);
    margin-bottom: 4px;
    max-width: 80px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-xp {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--sc-secondary);
    margin-bottom: 8px;
}

.podium-base {
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: white;
}

.podium-place[data-rank="1"] .podium-base {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--sc-gold), #FFD84D);
    box-shadow: 0 10px 25px rgba(255, 200, 0, 0.3);
}

.podium-place[data-rank="1"]::after {
    content: '1';
    position: absolute;
    bottom: 20px;
    font-size: 32px;
    font-weight: 950;
    color: white;
    opacity: 0.8;
}

.podium-place[data-rank="2"] .podium-base {
    width: 92px;
    height: 72px;
    background: linear-gradient(135deg, var(--sc-slate-300), var(--sc-slate-400));
}

.podium-place[data-rank="3"] .podium-base {
    width: 92px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-amber), var(--color-warning-text));
}

.ranking-list {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 8px 0 0 rgba(0, 0, 0, 0.05);
    border: 4px solid var(--sc-slate-200);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 0px solid var(--sc-slate-100);
    transition: background 0.2s;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: #f9fafb;
}

.ranking-item.current-user {
    background: linear-gradient(90deg, rgba(28, 176, 246, 0.1), transparent);
    border-left: 4px solid var(--sc-secondary);
}

.ranking-rank {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    background: var(--sc-slate-100);
    color: var(--sc-text);
}

.ranking-item.current-user .ranking-rank {
    background: var(--sc-secondary);
    color: white;
}

.ranking-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--sc-slate-200);
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--sc-text);
}

.ranking-badge {
    font-size: 12px;
    color: var(--sc-text-light);
}

.ranking-xp {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--sc-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.league-card {
    background: linear-gradient(135deg, #6366F1, var(--color-premium-accent));
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

.league-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 4px;
}

.league-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.league-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* === CLAN PAGE STYLES === */
.clan-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.clan-header-card {
    background: linear-gradient(135deg, var(--color-primary), #118EE5);
    border-radius: 32px;
    padding: 32px 24px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(28, 176, 246, 0.3);
}

.clan-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.clan-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.clan-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.clan-info h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 4px;
}

.clan-info p {
    font-size: 12px;
    opacity: 0.9;
}

.clan-stats {
    display: flex;
    gap: 0.5rem;
}

.clan-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.clan-stat-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
}

.clan-stat-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weekly-goal {
    background: white;
    border-radius: 32px;
    padding: 1.5rem;
    margin-bottom: 24px;
    box-shadow: 0 8px 0 0 rgba(0, 0, 0, 0.05);
    border: 4px solid var(--sc-slate-200);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.goal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--sc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.goal-title i {
    color: var(--sc-bonus);
}

.goal-progress-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--sc-primary);
}

.goal-bar {
    height: 12px;
    background: var(--sc-slate-200);
    border-radius: 1000px;
    overflow: hidden;
}

.goal-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sc-primary), var(--sc-bonus));
    border-radius: 1000px;
    transition: width 0.5s ease;
}

.members-list {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.member-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
    border-bottom: 0px solid var(--sc-slate-100);
    transition: background 0.2s;
}

.member-item:hover {
    background: #f9fafb;
}

.member-item.current-user {
    background: linear-gradient(90deg, rgba(24, 203, 164, 0.1), transparent);
    border-left: 4px solid var(--sc-primary);
}

.member-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--sc-slate-200);
}

.online-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: var(--sc-primary);
    border: 4px solid white;
    border-radius: 50%;
}

.offline-indicator {
    background: var(--sc-slate-400);
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--sc-text);
}

.member-role {
    font-size: 12px;
    color: var(--sc-text-light);
}

.member-role.leader {
    color: var(--sc-bonus);
    font-weight: 700;
}

.activity-feed {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.05);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 0px solid var(--sc-slate-100);
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: var(--sc-slate-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 16px;
    color: var(--sc-text);
}

.activity-time {
    font-size: 12px;
    color: var(--sc-text-light);
}

/* === PROFILE PAGE STYLES === */
.profile-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 0 0 rgba(0, 0, 0, 0.05);
    border: 4px solid var(--sc-slate-200);
}

.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--sc-primary);
    box-shadow: 0 0 0 6px rgba(24, 203, 164, 0.2);
    object-fit: cover;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--sc-secondary);
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-name {
    font-family: var(--font-heading);
    font-weight: 950;
    font-size: 28px;
    color: var(--sc-text);
    margin-bottom: 4px;
    letter-spacing: -0.04em;
}

.profile-email {
    font-size: 16px;
    color: var(--sc-text-light);
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-primary {
    background: rgba(24, 203, 164, 0.1);
    color: var(--sc-primary);
}

.badge-secondary {
    background: rgba(28, 176, 246, 0.1);
    color: var(--sc-secondary);
}

.badge-bonus {
    background: rgba(255, 200, 0, 0.1);
    color: var(--sc-bonus-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.stat-card {
    background: var(--sc-slate-50);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--sc-slate-100);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
}

.stat-label {
    font-size: 12px;
    color: var(--sc-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.achievements-section {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--sc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all {
    font-size: 12px;
    color: var(--sc-secondary);
    font-weight: 700;
    cursor: pointer;
}

.achievements-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.achievement-item {
    flex: 0 0 70px;
    text-align: center;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-warning-bg), #fde68a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 6px;
    box-shadow: 0 3px 0 0 rgba(217, 170, 0, 0.3);
}

.achievement-item.locked .achievement-icon {
    background: var(--sc-slate-200);
    box-shadow: none;
    opacity: 0.6;
}

.achievement-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--sc-text-light);
}

.settings-menu {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.05);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 1rem;
    border-bottom: 0px solid var(--sc-slate-100);
    cursor: pointer;
    transition: background 0.2s;
    color: var(--sc-text);
    text-decoration: none;
}

.menu-item:hover {
    background: #f9fafb;
}

.menu-item.danger {
    color: var(--sc-cta);
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: var(--sc-slate-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.menu-item.danger .menu-icon {
    background: rgba(255, 75, 75, 0.1);
}

.menu-text {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
}

.menu-arrow {
    color: var(--sc-text-light);
}

/* Animation Utils */
@keyframes bounce-subtle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(24, 203, 164, 0.3);
    }

    50% {
        box-shadow: 0 0 60px rgba(24, 203, 164, 0.6);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* === ADMIN PAGE STYLES === */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 1.4rem;
    margin-bottom: 2rem;
    color: var(--sc-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-content h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 4px;
    letter-spacing: -0.04em;
    color: var(--sc-slate-900);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.welcome-content p {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
}

.welcome-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

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

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.dash-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.dash-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
}

.dash-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dash-card:hover .dash-card-icon {
    transform: scale(1.1) translateY(-2px);
}

.dash-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--sc-slate-800);
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}

.dash-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0.8;
    max-width: 120px;
}

.icon-users {
    background: var(--sc-slate-100);
    color: var(--text-muted);
}

.icon-cohorts {
    background: var(--sc-slate-100);
    color: var(--text-muted);
}

.icon-courses {
    background: var(--sc-slate-100);
    color: var(--text-muted);
}

.icon-curriculum {
    background: var(--sc-slate-100);
    color: var(--text-muted);
}

.icon-calendar {
    background: var(--sc-slate-100);
    color: var(--text-muted);
}

.icon-teachers {
    background: var(--sc-slate-100);
    color: var(--text-muted);
}

.icon-reviews {
    background: color-mix(in srgb, var(--sc-golden, #f59e0b) 15%, var(--sc-white, #fff));
    color: var(--sc-golden, #f59e0b);
}

.icon-stats {
    background: var(--sc-slate-100);
    color: var(--text-muted);
}

.icon-settings {
    background: var(--sc-slate-100);
    color: var(--text-muted);
}

.kpi-dashboard {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kpi-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--sc-slate-700);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.kpi-updated {
    font-size: 12px;
    color: var(--sc-slate-400);
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--sc-slate-100);
    transition: all 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--sc-slate-900);
    line-height: 1;
}

.kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* === MAP DECORATIONS (Recovered) === */
/* .sun removed to prevent ghost elements from cached HTML */

.cloud-static {
    position: absolute;
    font-size: 80px;
    color: white;
    opacity: 0.9;
    filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.05));
    z-index: 0;
}

/* === ANIMATIONS (Recovered) === */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 203, 164, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(24, 203, 164, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(24, 203, 164, 0);
    }
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes twinkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 100, 82, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(247, 100, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(247, 100, 82, 0);
    }
}

/* === LIVE SESSION BANNER (Recovered) === */
.live-session-banner {
    background-color: var(--c-white);
    border: 4px solid var(--c-text);
    box-shadow: var(--shadow-hard-sm);
    border-radius: 16px;
    padding: 12px 16px;
    margin: 16px auto 0;
    max-width: var(--path-width);
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-session-banner.live {
    border-color: var(--c-cta);
    background-color: #FFF5F5;
}

.live-session-info {
    display: flex;
    flex-direction: column;
}

.live-session-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-session-time {
    font-size: 12px;
    color: var(--c-text-light);
    font-weight: 600;
}

.live-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--c-cta);
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

.btn-join-session {
    background-color: var(--c-cta);
    color: white;
    border: 4px solid var(--c-text);
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    box-shadow: 4px 2px 0px var(--c-text);
    cursor: pointer;
    transition: transform 0.1s;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-join-session:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--c-text);
}