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

/* Lock body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --dark-bg: #0a0e27;
    --dark-card: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent-gold: #ffd700;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
}

.navbar .container {
    overflow: visible;
}

.navbar .nav-content {
    overflow: visible;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 14, 39, 0.98);
}

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

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links > li {
    position: relative;
    z-index: 1;
}

.nav-links > li:has(.user-dropdown) {
    overflow: visible;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-primary-small {
    background: var(--gradient-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.btn-login-nav {
    background: var(--gradient-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
}

.user-avatar svg {
    width: 30px;
    height: 30px;
    display: block;
}

.btn-login-nav.authenticated {
    padding: 0.4rem;
    min-width: auto;
    background: transparent;
    border: 2px solid var(--primary-color);
}

.btn-login-nav.authenticated .user-avatar {
    width: 32px;
    height: 32px;
}

.btn-login-nav.authenticated:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.btn-login-nav.authenticated:hover .user-avatar {
    transform: scale(1.1);
}

/* User Button (after authentication) */
.btn-user-nav {
    padding: 0.4rem !important;
    min-width: auto !important;
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.btn-user-nav:hover {
    background: rgba(0, 102, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

.btn-user-nav .user-avatar {
    width: 32px;
    height: 32px;
}

.btn-user-nav:hover .user-avatar {
    transform: scale(1.1);
}

/* Avatar wrapper with plan badge */
.user-avatar-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-plan-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    font-weight: 700;
    color: white;
    padding: 1px 5px;
    border-radius: 6px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile-only elements - hidden on desktop */
.mobile-menu-header {
    display: none;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--dark-card);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    min-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    pointer-events: auto !important;
}

/* Dropdown header */
.user-dropdown-header {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* User Card - shared layout for dropdown + mobile menu */
.user-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    overflow: hidden;
}

.user-avatar-large svg {
    color: white;
}

.user-card-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-welcome {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge rows */
.user-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
}

.role-badge.role-editor {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
}

/* Plan Badge */
.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.plan-badge.plan-free {
    background: #1976d2;
}

.plan-badge.plan-gold {
    background: linear-gradient(135deg, #b8860b, #ffd700);
    color: #1a1a2e;
}

.plan-badge.plan-platinum {
    background: linear-gradient(135deg, #5a4fcf, #7b68ee);
    color: #fff;
}

/* Credits Badge */
.credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Upgrade button (inline, next to plan badge) */
.user-card-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ff6b00, #ff9500);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: subtle-pulse 2s infinite;
}

.user-card-upgrade:hover {
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(255, 107, 0, 0); }
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.user-dropdown-item:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
}

.user-dropdown-item svg {
    flex-shrink: 0;
}

.logout-item {
    color: #ff4757;
}

.logout-item:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

/* Subscription Modal */
.subscription-modal {
    max-width: 1000px;
    width: 95%;
}

.current-plan-info {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.current-plan-info h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.current-plan-info .plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 0.5rem;
}

.current-plan-info .plan-badge.plan-free {
    background: rgba(25, 118, 210, 0.15);
    color: #1976d2;
}

.current-plan-info .plan-badge.plan-gold {
    color: #fff !important;
}

.current-plan-info .plan-badge.plan-platinum {
    color: #fff !important;
}

.active-plan {
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.3) !important;
}

.btn-plan.active {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    cursor: default;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.app-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.badge-link img {
    height: 50px;
    transition: transform 0.3s;
}

.badge-link img:hover {
    transform: scale(1.05);
}

/* Hero Coach (right side) */
.hero-coach {
    flex: 1;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.coach-image {
    margin-top: 1.5rem;
}

.coach-image .desk-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Strategies Section */
.strategies {
    padding: 5rem 0;
    background: var(--dark-card);
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.strategy-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.strategy-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.strategy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.strategy-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.strategy-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.2);
}

.rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: var(--dark-card);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--dark-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(0, 102, 255, 0.2);
    transition: all 0.3s;
    position: relative;
}

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

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.coming-soon {
    border-color: rgba(255, 215, 0, 0.3);
    opacity: 0.85;
    position: relative;
}

.pricing-card.coming-soon:hover {
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
}

.badge-coming-soon {
    background: linear-gradient(135deg, #b8860b, #ffd700) !important;
    color: #1a1a2e !important;
}

.coming-soon-price {
    font-size: 2.5rem !important;
    letter-spacing: 0.3rem;
}

.coming-soon-message {
    margin-bottom: 2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

.btn-coming-soon {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.plan-price {
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.vat-note {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.plan-features .feature-included {
    color: #ffffff;
    font-weight: 600;
}

.plan-features .feature-excluded {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: line-through;
    opacity: 0.6;
}

.btn-plan {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

/* Credits Section */
.credits-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.credits-card {
    background: var(--dark-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(0, 206, 201, 0.2);
    transition: all 0.3s;
    position: relative;
}

.credits-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 206, 201, 0.2);
}

.credits-card-featured {
    border-color: rgba(0, 206, 201, 0.5);
}

.credits-card-featured:hover {
    box-shadow: 0 20px 40px rgba(0, 206, 201, 0.3);
}

.credits-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00b894, #00cec9);
    padding: 0.35rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-card-icon {
    color: #00cec9;
    margin-bottom: 1rem;
}

.credits-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.credits-card-price {
    margin-bottom: 1rem;
}

.credits-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00b894, #00cec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-vat {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 400;
}

.credits-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-credits {
    display: inline-block;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-credits:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 206, 201, 0.4);
}

/* Credits Tooltip (user menu) */
.credits-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: var(--dark-card);
    border: 1px solid rgba(0, 206, 201, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    text-align: center;
}

.credits-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--dark-card);
    border-left: 1px solid rgba(0, 206, 201, 0.3);
    border-top: 1px solid rgba(0, 206, 201, 0.3);
}

.credits-tooltip-balance {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.credits-tooltip-balance strong {
    color: #00cec9;
    font-size: 1.1rem;
}

.btn-credits-tooltip {
    display: inline-block;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-credits-tooltip:hover {
    box-shadow: 0 4px 12px rgba(0, 206, 201, 0.4);
}

/* Team Section */
.team {
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

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

.member-photo {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px;
    min-height: 120px;
    max-width: 120px;
    max-height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    margin: 0 auto 1rem;
    display: block;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.member-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-member:hover .member-photo {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-member p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--dark-card);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--dark-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.service-note {
    font-size: 0.9rem;
    font-style: italic;
}

.btn-service {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    text-align: center;
    background: var(--dark-bg);
}

/* Footer */
.footer {
    background: var(--dark-card);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */

/* Tablet landscape */
@media (max-width: 1024px) {
    .features-grid,
    .strategies-grid,
    .testimonials-grid,
    .pricing-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        padding: 7rem 0 3rem;
    }

    .pricing-card.featured {
        transform: scale(1.02);
    }

    .pricing-card.featured:hover {
        transform: scale(1.02) translateY(-10px);
    }
}

/* Tablet portrait / Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        border-bottom: 1px solid rgba(0, 102, 255, 0.2);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links > li {
        width: 100%;
        text-align: center;
    }

    /* === Mobile menu header (toggle + user card) === */
    .mobile-menu-header {
        display: block !important;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: none;
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-menu-toggle:hover {
        border-color: rgba(0, 102, 255, 0.3);
        color: var(--primary-color);
        background: rgba(0, 102, 255, 0.05);
    }

    .mobile-menu-toggle .toggle-arrow {
        margin-left: auto;
        opacity: 0.5;
        transition: transform 0.2s ease;
    }

    .mobile-user-card {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 1.25rem;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
    }

    /* Hide login button li on mobile when authenticated */
    .nav-links > li:has(#loginButton.authenticated) {
        display: none;
    }

    /* === User tab active: show dropdown items, hide nav items === */
    .nav-links.mobile-user-menu > li:not(.mobile-menu-header) {
        display: none;
    }

    .nav-links.mobile-user-menu > li:has(.user-dropdown) {
        display: block !important;
    }

    .nav-links.mobile-user-menu #loginButton {
        display: none;
    }

    .nav-links.mobile-user-menu .user-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
        pointer-events: auto;
        min-width: unset;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 0;
    }

    /* Hide user card from dropdown on mobile (shown in header instead) */
    .nav-links.mobile-user-menu .user-dropdown-header {
        display: none;
    }

    .nav-links.mobile-user-menu .user-dropdown-header + .user-dropdown-divider {
        display: none;
    }

    .nav-links.mobile-user-menu .user-dropdown-item {
        border-radius: 10px;
        padding: 0.85rem 1rem;
        justify-content: center;
    }

    .nav-links.mobile-user-menu .user-dropdown-item:hover {
        background: rgba(0, 102, 255, 0.15);
    }

    .nav-links.mobile-user-menu .user-dropdown-divider {
        margin: 0.25rem 0;
    }

    .hero {
        padding: 6rem 0 2rem;
        min-height: auto;
    }

    .hero-split {
        flex-direction: column;
    }

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

    .hero-cta {
        justify-content: center;
        flex-direction: column;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-bg::before {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }

    .hero-bg::after {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    .features,
    .strategies,
    .testimonials,
    .pricing,
    .credits-section,
    .team,
    .services,
    .cta {
        padding: 3rem 0;
    }

    .features-grid,
    .strategies-grid,
    .testimonials-grid,
    .pricing-grid,
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .credits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: none;
    }

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

    .feature-card,
    .testimonial-card,
    .service-card {
        padding: 2rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .app-badges {
        flex-direction: column;
        align-items: center;
    }

    .badge-link img {
        height: 40px;
    }

    .user-dropdown {
        min-width: 280px;
    }

    .auth-modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    .success-message {
        top: 80px;
        left: 1rem;
        right: 1rem;
        text-align: center;
    }

    .success-message.show {
        right: 1rem;
    }

    .subscription-modal {
        width: 98%;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 5.5rem 0 1.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }

    .feature-card,
    .testimonial-card,
    .service-card {
        padding: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .credits-card {
        padding: 1.5rem 1.25rem;
    }

    .credits-price {
        font-size: 2rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .auth-modal-content {
        padding: 1.5rem 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Auth Modal Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.auth-modal.active {
    opacity: 1;
}

.auth-modal-content {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(0, 102, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.auth-modal-close:hover {
    color: var(--primary-color);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    background: var(--dark-bg);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .password-input {
    width: 100%;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.btn-logout {
    color: #ff6b6b !important;
}

.btn-logout:hover {
    color: #ff5252 !important;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 100px;
    right: -400px;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    z-index: 10001;
    transition: right 0.3s ease;
}

.success-message.show {
    right: 2rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: rotate(15deg);
}

/* ================================================
   LIGHT THEME
   ================================================ */
[data-theme="light"] {
    --dark-bg: #f0f2f5;
    --dark-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --gradient-dark: linear-gradient(135deg, #f0f2f5 0%, #e5e7eb 100%);
}

/* Navbar - light */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .menu-toggle span {
    background: var(--text-primary);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.15);
}

/* Mobile nav - light */
@media (max-width: 768px) {
    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    [data-theme="light"] .mobile-menu-toggle {
        color: #666;
        border-color: rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .mobile-menu-toggle:hover {
        color: var(--primary-color);
        border-color: rgba(0, 102, 255, 0.3);
        background: rgba(0, 102, 255, 0.05);
    }

    [data-theme="light"] .mobile-user-card {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .nav-links.mobile-user-menu .user-dropdown-item:hover {
        background: rgba(0, 102, 255, 0.08);
    }
}

/* Cards & sections - light */
[data-theme="light"] .feature-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .service-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-card:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.12);
}

[data-theme="light"] .strategy-card {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pricing-card {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pricing-card.featured {
    border-color: var(--primary-color);
}

[data-theme="light"] .credits-card {
    border-color: rgba(0, 206, 201, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .credits-tooltip {
    background: #ffffff;
    border-color: rgba(0, 206, 201, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .credits-tooltip::before {
    background: #ffffff;
}

/* Plan features text - light */
[data-theme="light"] .plan-features .feature-included {
    color: #1a1a2e;
}

[data-theme="light"] .plan-features .feature-excluded {
    color: rgba(0, 0, 0, 0.3);
}

/* Hero section - light */
[data-theme="light"] .hero-bg {
    background: linear-gradient(135deg, #e8edf5 0%, #f0f2f5 100%);
}

[data-theme="light"] .hero-bg::before {
    background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .hero-bg::after {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
}

/* Footer - light */
[data-theme="light"] .footer {
    background: #1a1a2e;
    color: #ffffff;
}

[data-theme="light"] .footer-info h3,
[data-theme="light"] .footer-bottom p {
    color: #ffffff;
}

[data-theme="light"] .footer-info p,
[data-theme="light"] .footer-links a {
    color: #a0a0c0;
}

[data-theme="light"] .footer-content {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* User dropdown - light */
[data-theme="light"] .user-dropdown {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .user-dropdown-divider {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .user-dropdown-item:hover {
    background: rgba(0, 102, 255, 0.06);
}

[data-theme="light"] .user-dropdown-header {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
}

/* Auth modal - light */
[data-theme="light"] .auth-modal-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .form-group input {
    background: #f5f7fa;
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a2e;
}

[data-theme="light"] .form-group input:focus {
    border-color: var(--primary-color);
    background: #ffffff;
}

/* Coach section image - light */
[data-theme="light"] .coach-image .desk-image {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Secondary button - light */
[data-theme="light"] .btn-secondary {
    color: var(--primary-color);
}

/* Auth pages inline dark backgrounds - light override */
[data-theme="light"] .forgot-password-container,
[data-theme="light"] .reset-password-container,
[data-theme="light"] .setup-password-container {
    background: none;
}

[data-theme="light"] .forgot-password-card,
[data-theme="light"] .reset-password-card,
[data-theme="light"] .setup-password-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Auth page body background override */
[data-theme="light"] body {
    background-color: var(--dark-bg);
}
