/* ============================================================================
   PATHFORGE - COMPLETE CSS FILE
   Consolidated styles for all pages
   ============================================================================ */

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: white;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ============================================================================
   WELCOME PAGE STYLES
   ============================================================================ */

body.welcome-page {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body.welcome-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.container {
    max-width: 500px;
    width: 100%;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1.2s ease-out;
}

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

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: fadeInScale 1s ease-out 0.2s both;
}

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

.logo-container .logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
    }
}

.title {
    text-align: center;
    font-size: 32px;
    color: #D4AF37;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 60px;
    font-family: serif;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

.portrait-container {
    width: 100%;
    height: 400px;
    margin-bottom: 40px;
    position: relative;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.portrait {
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait::before {
    display: none;
}

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

.portrait-placeholder {
    font-size: 80px;
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.welcome-text {
    text-align: center;
    font-size: 36px;
    color: white;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    font-family: serif;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.description {
    text-align: center;
    font-size: 16px;
    color: #9E9E9E;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 60px;
    padding: 0 16px;
    animation: fadeInUp 1s ease-out 1s both;
}

.start-button {
    width: 100%;
    height: 64px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #B8860B 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 0;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.4),
        0 8px 32px rgba(212, 175, 55, 0.6),
        0 16px 64px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1.2s both, buttonGlow 3s ease-in-out 2s infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.4),
            0 8px 32px rgba(212, 175, 55, 0.6),
            0 16px 64px rgba(0, 0, 0, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(255, 215, 0, 0.6),
            0 8px 32px rgba(212, 175, 55, 0.8),
            0 16px 64px rgba(0, 0, 0, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.start-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 70%
    );
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }
    50%, 100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

.start-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
}

.start-button:hover::after {
    left: 100%;
}

.start-button:hover {
    background: linear-gradient(135deg, #FFE55C 0%, #FFD700 50%, #D4AF37 100%);
    border-color: rgba(255, 215, 0, 0.8);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 0 80px rgba(255, 215, 0, 0.8),
        0 12px 48px rgba(212, 175, 55, 0.8),
        0 20px 80px rgba(212, 175, 55, 0.4),
        0 0 120px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.start-button:active {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.6),
        0 8px 32px rgba(212, 175, 55, 0.7),
        0 16px 64px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   HEADER STYLES
   ============================================================================ */

header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.logo-icon {
    font-size: 28px;
    color: #D4AF37;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.header-left:hover .logo-icon {
    transform: scale(1.1) rotate(10deg);
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.8));
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #D4AF37;
    font-family: serif;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.header-left:hover .logo {
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: #9E9E9E;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

nav a:hover {
    color: #D4AF37;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-btn-header {
    color: #9E9E9E;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
}

.profile-btn-header:hover {
    color: #D4AF37;
}

.upgrade-btn {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
    }
}

.upgrade-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.upgrade-btn:hover::before {
    left: 100%;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
}

/* ============================================================================
   MAIN CONTENT LAYOUT
   ============================================================================ */

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px;
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 300;
    color: #D4AF37;
    margin-bottom: 12px;
    font-family: serif;
}

.page-header p {
    font-size: 16px;
    color: #9E9E9E;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    position: relative;
    height: 300px;
    margin-bottom: 48px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 32px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 300;
    color: white;
    margin-bottom: 16px;
    font-family: serif;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-text p {
    font-size: 18px;
    color: #9E9E9E;
    animation: fadeInUp 1s ease-out 0.5s both;
    margin-bottom: 32px;
}

.hero-cta-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.7s both, buttonGlow 3s ease-in-out 2s infinite;
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.hero-cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.6), 0 0 80px rgba(212, 175, 55, 0.3);
}

.hero-cta-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* ============================================================================
   DASHBOARD LAYOUT
   ============================================================================ */

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================================================
   FEATURE CARDS
   ============================================================================ */

.main-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardSlideIn 0.6s ease-out backwards;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 180px;
}

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

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.3), 0 0 60px rgba(212, 175, 55, 0.1);
}

.feature-image {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.lessons-img {
    background-image: url('../assets/images/lessons.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.lessons-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.daily-tasks-img {
    background-image: url('../assets/images/daily-tasks.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.daily-tasks-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.speech-practice-img {
    background-image: url('../assets/images/speech-practice.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.speech-practice-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.text-practice-img {
    background-image: url('../assets/images/text-practice.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.text-practice-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.challenges-img {
    background-image: url('../assets/images/challenge.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.challenges-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.inner-game-img {
    background-image: url('../assets/images/inner-game.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.inner-game-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.games-img {
    background-image: url('../assets/images/games.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.games-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.community-img {
    background-image: url('../assets/images/comunity.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.community-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
}

/* Legacy classes for backward compatibility */
.practice-img {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.missions-img {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.feature-content {
    padding: 32px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h3 {
    font-size: 26px;
    color: #D4AF37;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.feature-content p {
    font-size: 16px;
    color: #9E9E9E;
    line-height: 1.6;
}

/* ============================================================================
   PROGRESS CARD
   ============================================================================ */

.progress-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: cardSlideIn 0.6s ease-out 0.2s backwards;
}

.progress-card h2 {
    font-size: 24px;
    color: #D4AF37;
    margin-bottom: 24px;
    font-weight: 600;
}

.progress-display {
    display: flex;
    align-items: center;
    gap: 24px;
}

.progress-circle-new {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-bg-circle {
    fill: none;
    stroke: rgba(212, 175, 55, 0.1);
    stroke-width: 8;
}

.progress-fill-circle {
    fill: none;
    stroke: #D4AF37;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.9));
    }
}

.progress-text-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: #D4AF37;
}

.progress-info {
    flex: 1;
}

.progress-label-new {
    font-size: 18px;
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.progress-sublabel {
    font-size: 14px;
    color: #9E9E9E;
}

/* ============================================================================
   MODULES / MISSIONS CARD
   ============================================================================ */

.modules-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: cardSlideIn 0.6s ease-out 0.4s backwards;
}

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

.modules-card h2 {
    font-size: 24px;
    color: #D4AF37;
    margin-bottom: 0;
    font-weight: 600;
}

.view-all-btn {
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateX(4px);
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.module-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
}

.daily-directive-avatar {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
}

.social-avatar {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

.practice-avatar {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
}

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

.module-name {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

.mission-status {
    font-size: 13px;
    color: #9E9E9E;
}

/* ============================================================================
   LESSONS PAGE
   ============================================================================ */

.lessons-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lesson-module {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
}

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

.module-header h2 {
    font-size: 28px;
    color: #D4AF37;
    font-weight: 600;
}

.module-progress-badge {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
}

.lesson-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.lesson-item.locked:hover {
    transform: none;
}

.lesson-item.completed {
    border-color: rgba(34, 197, 94, 0.3);
}

.lesson-thumbnail {
    width: 100px;
    height: 70px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-radius: 6px;
}

.lesson-info {
    flex: 1;
}

.lesson-info h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 6px;
    font-weight: 600;
}

.lesson-info p {
    font-size: 14px;
    color: #9E9E9E;
}

.lesson-status {
    font-size: 24px;
}

/* ============================================================================
   MISSIONS PAGE
   ============================================================================ */

.missions-section {
    margin-bottom: 48px;
}

.missions-section h2 {
    font-size: 32px;
    color: #D4AF37;
    margin-bottom: 24px;
    font-weight: 600;
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.mission-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

.mission-card.active {
    border-color: rgba(255, 215, 0, 0.4);
}

.mission-card.locked {
    opacity: 0.6;
}

.mission-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #D4AF37;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.mission-badge.new {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
}

.mission-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-card h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 12px;
    font-weight: 600;
}

.mission-card p {
    font-size: 14px;
    color: #9E9E9E;
    margin-bottom: 20px;
    line-height: 1.6;
}

.mission-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #D4AF37 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mission-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #9E9E9E;
    margin-bottom: 20px;
}

.mission-reward {
    font-size: 14px;
    color: #D4AF37;
    margin-bottom: 20px;
    font-weight: 600;
}

.mission-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.mission-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.mission-btn.secondary {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
}

.mission-btn.disabled {
    background: rgba(158, 158, 158, 0.2);
    color: #666;
    cursor: not-allowed;
}

.mission-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.completed-missions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.completed-mission-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
}

.completed-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22C55E;
    font-size: 20px;
    font-weight: 700;
}

.completed-info {
    flex: 1;
}

.completed-info h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 4px;
    font-weight: 600;
}

.completed-info p {
    font-size: 13px;
    color: #9E9E9E;
}

.completed-reward {
    color: #22C55E;
    font-size: 14px;
    font-weight: 700;
}

/* ============================================================================
   DAILY DIRECTIVE PAGE
   ============================================================================ */

.directive-hero {
    text-align: center;
    margin-bottom: 48px;
}

.directive-date {
    font-size: 14px;
    color: #D4AF37;
    margin-bottom: 12px;
    font-weight: 600;
}

.directive-hero h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 12px;
    font-family: serif;
    font-weight: 300;
}

.directive-hero p {
    font-size: 16px;
    color: #9E9E9E;
}

.directive-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.directive-main,
.directive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.challenge-card,
.reflection-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 40px;
}

.challenge-header {
    margin-bottom: 32px;
}

.challenge-header h2 {
    font-size: 28px;
    color: #D4AF37;
    margin-bottom: 12px;
    font-weight: 600;
}

.challenge-difficulty {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.challenge-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-radius: 8px;
    margin-bottom: 32px;
}

.challenge-content h3 {
    font-size: 22px;
    color: white;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.challenge-content p {
    font-size: 15px;
    color: #9E9E9E;
    line-height: 1.8;
    margin-bottom: 24px;
}

.challenge-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.challenge-steps li {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    color: white;
    margin-bottom: 6px;
    font-weight: 600;
}

.step-content p {
    font-size: 14px;
    color: #9E9E9E;
    line-height: 1.6;
    margin: 0;
}

.starter-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.starter-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.starter-card p {
    font-size: 14px;
    color: #D4AF37;
    font-style: italic;
    margin: 0;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.tip-item {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 16px;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid #D4AF37;
    border-radius: 4px;
}

.tip-icon {
    font-size: 20px;
    color: #D4AF37;
}

.tip-item p {
    font-size: 14px;
    color: #9E9E9E;
    line-height: 1.6;
    margin: 0;
}

.challenge-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.complete-btn {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.skip-btn {
    padding: 16px 32px;
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
    border: 1px solid rgba(158, 158, 158, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background: rgba(158, 158, 158, 0.15);
    color: white;
}

.reflection-card h2 {
    font-size: 24px;
    color: #D4AF37;
    margin-bottom: 16px;
    font-weight: 600;
}

.reflection-card p {
    font-size: 14px;
    color: #9E9E9E;
    margin-bottom: 20px;
}

.reflection-input {
    width: 100%;
    min-height: 150px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 16px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 16px;
}

.reflection-input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
}

.submit-reflection-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.submit-reflection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.rewards-card,
.streak-card,
.past-directives-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.rewards-card h3,
.streak-card h3,
.past-directives-card h3 {
    font-size: 20px;
    color: #D4AF37;
    margin-bottom: 20px;
    font-weight: 600;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.reward-icon {
    font-size: 28px;
}

.reward-title {
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.reward-desc {
    font-size: 13px;
    color: #9E9E9E;
}

.streak-display {
    text-align: center;
    padding: 32px;
}

.streak-number {
    font-size: 64px;
    color: #D4AF37;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.streak-label {
    font-size: 16px;
    color: #9E9E9E;
}

.streak-card p {
    text-align: center;
    font-size: 13px;
    color: #9E9E9E;
    margin-top: 16px;
}

.past-directive-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.past-directive-item.completed span:first-child {
    color: #22C55E;
    font-size: 20px;
    font-weight: 700;
}

.past-title {
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
}

.past-date {
    font-size: 12px;
    color: #9E9E9E;
}

/* ============================================================================
   INNER GAME PAGE
   ============================================================================ */

.inner-game-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.inner-game-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
}

.inner-game-card h2 {
    font-size: 24px;
    color: #D4AF37;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-description {
    font-size: 14px;
    color: #9E9E9E;
    margin-bottom: 24px;
    line-height: 1.6;
}

.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exercise-item {
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exercise-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
}

.exercise-item h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.exercise-item p {
    font-size: 14px;
    color: #9E9E9E;
    line-height: 1.6;
    margin-bottom: 12px;
}

.exercise-time {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.daily-reflection {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 40px;
}

.daily-reflection h2 {
    font-size: 32px;
    color: #D4AF37;
    margin-bottom: 32px;
    font-weight: 600;
    text-align: center;
}

.reflection-prompts {
    max-width: 600px;
    margin: 0 auto;
}

.prompt-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
}

.prompt-card h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.prompt-list {
    margin-bottom: 24px;
}

.prompt-list li {
    font-size: 15px;
    color: #9E9E9E;
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.prompt-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-size: 20px;
}

.journal-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.journal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

/* ============================================================================
   PROFILE PAGE
   ============================================================================ */

.profile-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.profile-main,
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 32px;
}

.profile-card h2 {
    font-size: 24px;
    color: #D4AF37;
    margin-bottom: 24px;
    font-weight: 600;
}

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

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    border-radius: 50%;
}

.profile-details h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-details p {
    font-size: 14px;
    color: #9E9E9E;
    margin-bottom: 12px;
}

.level-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.edit-profile-btn {
    width: 100%;
    padding: 14px;
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

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

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    color: #D4AF37;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #9E9E9E;
}

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

.achievement-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

.achievement-item.unlocked {
    border-color: rgba(212, 175, 55, 0.3);
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-icon {
    font-size: 32px;
}

.achievement-info h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 4px;
    font-weight: 600;
}

.achievement-info p {
    font-size: 13px;
    color: #9E9E9E;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.setting-item span:first-child {
    font-size: 15px;
    color: white;
    font-weight: 600;
}

.setting-value {
    font-size: 14px;
    color: #9E9E9E;
}

.subscription-info {
    text-align: center;
    margin-bottom: 24px;
}

.plan-name {
    font-size: 20px;
    color: #D4AF37;
    font-weight: 700;
    margin-bottom: 8px;
}

.subscription-info p {
    font-size: 14px;
    color: #9E9E9E;
    margin-bottom: 20px;
}

.upgrade-plan-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #000;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.upgrade-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.feature-item span:first-child {
    color: #22C55E;
    font-size: 18px;
    font-weight: 700;
}

.feature-item.disabled span:first-child {
    color: #9E9E9E;
}

.feature-item.disabled {
    color: #666;
}

.danger-zone {
    border-color: rgba(239, 68, 68, 0.3);
}

.danger-btn {
    width: 100%;
    padding: 14px;
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.danger-btn:last-child {
    margin-bottom: 0;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* ============================================================================
   LOADING SPINNER
   ============================================================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(51, 51, 51, 0.3);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

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

/* ============================================================================
   NOTIFICATION SYSTEM
   ============================================================================ */

#notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #000;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
    transition: bottom 0.3s ease;
    z-index: 9999;
}

#notification.show {
    bottom: 32px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1200px) {
    .content-wrapper,
    .directive-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .inner-game-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 16px;
        justify-content: center;
        gap: 24px;
    }
    
    main {
        padding: 24px 20px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .hero {
        height: 250px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .main-features {
        grid-template-columns: 1fr;
    }
    
    .missions-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-actions {
        flex-direction: column;
    }
    
    .starter-examples {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 30px 20px;
    }

    .title {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .welcome-text {
        font-size: 32px;
    }

    .portrait-container {
        height: 350px;
    }

    .description {
        font-size: 15px;
    }

    .start-button {
        height: 56px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .upgrade-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .welcome-text {
        font-size: 28px;
    }

    .portrait-container {
        height: 300px;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

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

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.hidden {
    display: none;
}

/* ============================================================================
   AUTH PAGES (SIGNUP/LOGIN) STYLES
   ============================================================================ */

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

.subtitle {
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -10px;
    margin-bottom: 30px;
}

.form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    font-size: 14px;
    color: #D4AF37;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #FFD700;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.signup-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.signup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.signup-button:active {
    transform: translateY(0);
}

.signup-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    background: #000;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.google-button,
.apple-button,
.facebook-button {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-button:hover,
.apple-button:hover,
.facebook-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icon {
    font-weight: bold;
    font-size: 18px;
}

.login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.login-link a {
    color: #D4AF37;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #FFD700;
}

/* ============================================================================
   PERSONALITY ASSESSMENT STYLES
   ============================================================================ */

.dominant-label {
    font-size: 24px;
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: capitalize;
    text-align: center;
}

.personality-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    padding: 0 12px;
    font-style: italic;
}

.personality-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.personality-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.personality-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.personality-percentage {
    font-size: 14px;
    color: #D4AF37;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
}

.personality-bar-bg {
    width: 100%;
    height: 24px;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.personality-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #B8860B 0%, #D4AF37 50%, #FFD700 100%);
    border-radius: 12px;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    position: relative;
}

.personality-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
}

.onboarding-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.info-item strong {
    color: #D4AF37;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
}

/* ============================================================================
   END OF PATHFORGE CSS
   ============================================================================ */
