/* TrainerChallengeHQ - Main Styles */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --success: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

/* Vue cloak - hide content until Vue is ready */
[v-cloak] {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

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

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

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: var(--secondary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

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

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Challenge Card */
.challenge-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.challenge-card-body {
    padding: 1.5rem;
}

.challenge-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.challenge-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--secondary);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-gray {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

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

.table th {
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 2rem 2rem 0;
}

/* Enhanced Modal Header */
.modal-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.modal-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-section-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-label-required {
    color: var(--danger);
    margin-left: 0.25rem;
}

/* Form Input Groups */
.form-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-prefix {
    position: absolute;
    left: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    pointer-events: none;
}

.form-input-with-prefix {
    padding-left: 2rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

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

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

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden {
    display: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Landing Page Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin: -2rem -1rem 4rem -1rem;
    border-radius: 0 0 3rem 3rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: 2rem;
}

.btn-hero {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: var(--gray-50);
}

.hero-stats {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

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

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background: var(--gray-50);
    margin: 4rem -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    margin: 4rem -1rem;
    border-radius: 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Featured Challenges Section */
.featured-challenges-section {
    padding: 4rem 0;
}

/* Page Headers */
.page-header {
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-600);
    margin: 0;
}

/* Enhanced Challenge Cards */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.challenge-card-enhanced {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.challenge-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.challenge-card-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--gray-200);
}

.challenge-card-content {
    padding: 1.5rem;
    flex: 1;
}

.challenge-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.challenge-trainer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.trainer-icon {
    font-size: 1.125rem;
}

.challenge-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.challenge-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.challenge-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    font-size: 1.125rem;
}

.stat-text {
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.challenge-card-footer {
    padding: 1.25rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.btn-block {
    width: 100%;
}

.badge-lg {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Challenge Detail Page */
.challenge-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.challenge-detail-header {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.challenge-detail-header-content {
    max-width: 100%;
}

.challenge-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
}

.challenge-detail-trainer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
}

.challenge-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.challenge-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.detail-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-stat-icon {
    font-size: 2.5rem;
}

.detail-stat-content {
    flex: 1;
}

.detail-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.detail-stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.challenge-detail-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

.challenge-detail-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin: 0;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.prize-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid;
}

.prize-card.prize-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.prize-card.prize-silver {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #9ca3af;
}

.prize-card.prize-bronze {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #f97316;
}

.prize-medal {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.prize-place {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.prize-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.challenge-detail-cta {
    text-align: center;
    padding: 2rem 0;
}

.btn-cta {
    min-width: 300px;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

/* Participant Dashboard (My Progress) */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-card-primary {
    border-color: var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.stat-card-success {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.stat-card-warning {
    border-color: var(--warning);
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

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

.stat-card-info {
    flex: 1;
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.stat-card-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Progress Cards */
.progress-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.progress-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.progress-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.progress-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--gray-200);
}

.progress-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.progress-card-trainer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.rank-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    min-width: 70px;
}

.rank-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.rank-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.progress-card-body {
    padding: 1.5rem;
    flex: 1;
}

.progress-section {
    margin-bottom: 1.5rem;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.progress-percentage {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar-container {
    background: var(--gray-200);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

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

.progress-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

.progress-stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.progress-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.progress-stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.week-status {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.week-status-complete {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.week-status-pending {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.progress-card-footer {
    padding: 1.25rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
}

/* Trainer Dashboard Table */
.table-responsive {
    overflow-x: auto;
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
}

.trainer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.trainer-table thead tr {
    border-bottom: 2px solid var(--gray-200);
}

.trainer-table th {
    padding: 0.875rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.trainer-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.trainer-table tbody tr {
    transition: background-color 0.2s;
}

.trainer-table tbody tr:hover {
    background: var(--gray-50);
}

.trainer-table th.text-center,
.trainer-table td.text-center {
    text-align: center;
}

.trainer-table td .progress-bar-container {
    max-width: 100px;
    margin: 0 auto;
}

/* Challenge Dashboard Header */
.challenge-dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.challenge-dashboard-header-content {
    max-width: 100%;
}

.challenge-dashboard-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.challenge-dashboard-dates {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.challenge-dashboard-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.meta-icon {
    font-size: 1.25rem;
}

/* Analytics Cards */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.analytics-card-primary {
    border-color: var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.analytics-card-success {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.analytics-card-warning {
    border-color: var(--warning);
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.analytics-card-info {
    border-color: var(--info);
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.analytics-card-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.analytics-card-content {
    flex: 1;
}

.analytics-card-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.analytics-card-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.analytics-card-detail {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Workout Plan Modal Styles */
.workout-plan-description {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0.75rem;
    border-left: 4px solid var(--info);
    margin-bottom: 2rem;
}

.workout-plan-description-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.workout-plan-description-text {
    flex: 1;
    color: var(--gray-700);
    line-height: 1.6;
}

.workout-day-section {
    margin-bottom: 2rem;
}

.workout-day-section:last-child {
    margin-bottom: 0;
}

.workout-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    border: 2px solid var(--gray-200);
    border-bottom: none;
}

.workout-day-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.workout-day-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.workout-day-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.workout-rest-day {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    color: var(--gray-500);
}

.rest-day-icon {
    font-size: 2rem;
}

.rest-day-text {
    font-size: 0.9375rem;
    font-weight: 500;
}

.workout-exercises-list {
    border: 2px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    overflow: hidden;
}

.exercise-card {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s;
}

.exercise-card:last-child {
    border-bottom: none;
}

.exercise-card:hover {
    background: var(--gray-50);
}

.exercise-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.exercise-name {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-900);
}

.exercise-card-body {
    padding: 1rem 1.25rem;
}

.exercise-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.exercise-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-icon {
    font-size: 1.125rem;
}

.detail-text {
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 500;
}

.exercise-notes {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.notes-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notes-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.exercise-video {
    margin-top: 0.75rem;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.video-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

.video-icon {
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-large {
        max-width: 95%;
    }

    .modal-header-enhanced {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

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

    .modal-subtitle {
        font-size: 0.875rem;
    }

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

    .form-footer {
        flex-direction: column-reverse;
    }

    .modal-footer button {
        width: 100%;
    }

    /* Challenge Dashboard Responsive */
    .challenge-dashboard-header {
        padding: 1.5rem;
    }

    .challenge-dashboard-title {
        font-size: 1.75rem;
    }

    .challenge-dashboard-meta {
        gap: 1rem;
    }

    .meta-item {
        font-size: 0.875rem;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .analytics-card {
        padding: 1.5rem;
    }

    .analytics-card-icon {
        font-size: 2.5rem;
    }

    .analytics-card-value {
        font-size: 1.875rem;
    }

    /* Workout Plan Modal Responsive */
    .workout-plan-description {
        flex-direction: column;
        padding: 1rem;
    }

    .workout-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .workout-day-header .btn {
        width: 100%;
    }

    .exercise-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .exercise-card-header .btn {
        width: 100%;
    }

    .exercise-details {
        flex-direction: column;
        gap: 0.75rem;
    }

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

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

    .hero-section {
        padding: 4rem 1.5rem;
        margin: -1rem -1rem 3rem -1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    /* Challenge Cards Responsive */
    .challenges-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.875rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .challenge-detail-title {
        font-size: 2rem;
    }

    .challenge-detail-header {
        padding: 1.5rem;
    }

    .challenge-detail-stats {
        grid-template-columns: 1fr;
    }

    .prizes-grid {
        grid-template-columns: 1fr;
    }

    .btn-cta {
        min-width: 100%;
    }

    .challenge-detail-price {
        font-size: 1.5rem;
    }

    /* Participant Dashboard Responsive */
    .stats-overview-grid {
        grid-template-columns: 1fr;
    }

    .progress-cards-grid {
        grid-template-columns: 1fr;
    }

    .progress-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-card-value {
        font-size: 2rem;
    }

    /* Trainer Table Responsive */
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .trainer-table {
        font-size: 0.8125rem;
    }

    .trainer-table th,
    .trainer-table td {
        padding: 0.75rem 0.5rem;
    }

    .trainer-table th {
        font-size: 0.75rem;
    }
}

/* ========================================
   ENHANCED LANDING PAGE STYLES
   ======================================== */

/* Enhanced Hero Section */
.hero-section-enhanced {
    position: relative;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(99, 102, 241, 0.85) 50%, rgba(139, 92, 246, 0.9) 100%),
        url('../trainhero.png') center center / cover no-repeat;
    color: white;
    padding: 8rem 2rem 6rem;
    text-align: center;
    margin: -2rem -1rem 4rem -1rem;
    border-radius: 0 0 3rem 3rem;
    overflow: hidden;
}

.hero-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content-enhanced {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

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

.hero-title-enhanced {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-enhanced {
    font-size: 1.375rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta-enhanced {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-hero-primary {
    padding: 1.125rem 3rem;
    font-size: 1.125rem;
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 0.75rem;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    background: var(--gray-50);
}

.btn-hero-secondary {
    padding: 1.125rem 3rem;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 0.75rem;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.hero-stats-enhanced {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9375rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Enhanced Section Headers */
.section-header-enhanced {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title-large {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description-large {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Enhanced Features Section */
.features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card-enhanced {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #6366f1 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-enhanced:hover::before {
    transform: scaleX(1);
}

.feature-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.feature-card-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.feature-card-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.feature-card-success {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.feature-card-warning {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.feature-card-info {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.feature-card-danger {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.feature-card-purple {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.feature-icon-enhanced {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    display: block;
}

.feature-title-enhanced {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description-enhanced {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary);
    color: white;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Enhanced How It Works Section */
.steps-container-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.step-card-enhanced {
    position: relative;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.step-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.step-number-enhanced {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 auto 1.75rem;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
    position: relative;
}

.step-number-enhanced::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.step-title-enhanced {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-description-enhanced {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.step-detail {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-connector-enhanced {
    display: none;
}

@media (min-width: 1024px) {
    .steps-container-enhanced {
        grid-template-columns: repeat(4, 1fr);
    }

    .step-card-enhanced::after {
        content: '→';
        position: absolute;
        right: -2.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.5rem;
        color: var(--primary);
        font-weight: 700;
        z-index: 10;
    }

    .step-card-enhanced:last-child::after {
        display: none;
    }
}

/* Enhanced CTA Section */
.cta-section-enhanced {
    position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 50%, #047857 100%);
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    margin: 4rem -1rem;
    border-radius: 2rem;
    overflow: hidden;
}

.cta-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
    pointer-events: none;
}

.cta-content-enhanced {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.cta-title-enhanced {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-description-enhanced {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-buttons-enhanced {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 1.125rem 3rem;
    font-size: 1.125rem;
    background: white;
    color: var(--secondary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-weight: 700;
    border-radius: 0.75rem;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    background: var(--gray-50);
}

.btn-cta-secondary {
    padding: 1.125rem 3rem;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 700;
    border-radius: 0.75rem;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.cta-note-enhanced {
    margin-top: 2rem;
    font-size: 0.9375rem;
    opacity: 0.9;
    font-style: italic;
}

/* ========================================
   AUTHENTICATION MODAL STYLES
   ======================================== */

/* Auth Modal Container */
.auth-modal {
    max-width: 480px;
    max-height: 90vh;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Auth Modal Header */
.modal-header-auth {
    position: relative;
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
}

.auth-icon {
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.modal-title-auth {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    color: white;
    line-height: 1.2;
}

.modal-subtitle-auth {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    color: white;
}

.modal-close-btn-auth {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.modal-close-btn-auth:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Auth Modal Body */
.modal-body-auth {
    padding: 2.5rem 2rem;
    flex: 1;
    overflow-y: auto;
}

.form-group-auth {
    margin-bottom: 1.75rem;
}

.form-label-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.label-icon {
    font-size: 1.125rem;
}

.form-input-auth {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: var(--gray-50);
}

.form-input-auth:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-input-auth::placeholder {
    color: var(--gray-400);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.role-option {
    cursor: pointer;
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.role-option:hover .role-card {
    border-color: var(--primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.role-option.active .role-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f3ff 0%, white 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.role-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.role-description {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Auth Primary Button */
.btn-auth-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.auth-footer-text {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Auth Modal Responsive */
@media (max-width: 576px) {
    .auth-modal {
        max-width: 95%;
        margin: 1rem;
    }

    .modal-header-auth {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .modal-title-auth {
        font-size: 1.75rem;
    }

    .modal-subtitle-auth {
        font-size: 0.875rem;
    }

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

    .role-selector {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .role-card {
        padding: 1.25rem 1rem;
    }

    .role-icon {
        font-size: 2rem;
    }
}

/* ========================================
   CREATE CHALLENGE MODAL ENHANCEMENTS
   ======================================== */

/* Enhanced Form Sections with Color */
.form-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 1rem;
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-section:last-of-type {
    margin-bottom: 0;
}

/* Section Icons and Titles */
.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Revenue Split Section - Special Styling */
.form-section:has(.form-range) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

/* Privacy Settings Section - Special Styling */
.form-section:has(.form-checkbox-label) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

/* Form Label Enhancements */
.form-label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.form-label-required {
    color: var(--danger);
    margin-left: 0.375rem;
    font-weight: 700;
}

/* Form Input Enhancements */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Form Row Grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

/* Input Group with Prefix */
.form-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--gray-600);
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.form-input-with-prefix {
    padding-left: 2.25rem;
}

/* Range Slider Styling */
.form-range {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg,
        #10b981 0%,
        #3b82f6 35%,
        #f59e0b 70%,
        #ef4444 100%
    );
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                0 0 0 4px var(--primary);
    transition: all 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3),
                0 0 0 6px var(--primary);
}

.form-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                0 0 0 4px var(--primary);
    transition: all 0.2s ease;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3),
                0 0 0 6px var(--primary);
}

/* Checkbox Label Enhancement */
.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-checkbox-label:hover {
    border-color: var(--warning);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.form-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 0.5rem;
    cursor: pointer;
    accent-color: var(--warning);
}

.form-checkbox-text {
    flex: 1;
}

.form-checkbox-text strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.form-checkbox-text small {
    display: block;
    margin-top: 0.375rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Modal Footer Enhancements */
.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.modal-footer .btn {
    min-width: 140px;
}

/* Enhanced Landing Page Responsive */
@media (max-width: 768px) {
    .hero-section-enhanced {
        padding: 5rem 1.5rem 4rem;
        margin: -1rem -1rem 3rem -1rem;
        border-radius: 0 0 2rem 2rem;
    }

    .hero-title-enhanced {
        font-size: 2.5rem;
    }

    .hero-subtitle-enhanced {
        font-size: 1.125rem;
    }

    .hero-cta-enhanced {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 1rem 2rem;
    }

    .hero-stats-enhanced {
        gap: 2rem;
    }

    .hero-stat-value {
        font-size: 1.75rem;
    }

    .hero-stat-label {
        font-size: 0.8125rem;
    }

    .section-title-large {
        font-size: 2rem;
    }

    .section-description-large {
        font-size: 1rem;
    }

    .features-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card-enhanced {
        padding: 2rem;
    }

    .steps-container-enhanced {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card-enhanced::after {
        content: '↓';
        position: absolute;
        left: 50%;
        bottom: -1.25rem;
        transform: translateX(-50%);
        font-size: 2rem;
        color: var(--primary);
    }

    .step-card-enhanced:last-child::after {
        display: none;
    }

    .cta-section-enhanced {
        padding: 4rem 1.5rem;
        margin: 3rem -1rem;
        border-radius: 1.5rem;
    }

    .cta-title-enhanced {
        font-size: 2rem;
    }

    .cta-description-enhanced {
        font-size: 1rem;
    }

    .cta-buttons-enhanced {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        padding: 1rem 2rem;
    }
}
