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

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #2563eb;
    --secondary-color: #059669;
    --accent-color: #0891b2;
    --success-color: #16a34a;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --background: #ffffff;
    --surface: #f8fafc;
    --surface-dark: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    --gradient-secondary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-accent: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Utility Classes */
.hidden { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.btn-white:hover:not(:disabled) {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.9);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(220, 38, 38, 1);
    border-color: rgba(220, 38, 38, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading .btn-loading {
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand .brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-brand .brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-brand .brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-brand .brand-slogan {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-overlay {
    display: none;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--surface);
    color: var(--primary-color);
}

.notification-badge {
    background: var(--success-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-image {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    transition: var(--transition);
}

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

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.process-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.process {
    display: none;
}

.process.active {
    display: block;
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    margin: 2rem;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content.large {
    max-width: 750px;
    width: 85%;
}

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

.modal-header h2 {
    margin: 0;
    padding-right: 1rem;
}

.close-btn,
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
}

.close-btn:hover,
.modal-close:hover {
    color: var(--text-primary);
    background: var(--surface-light);
}

/* Form Styles */
.auth-form {
    padding: 2rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: visible;
}

/* Extra margin for form groups with errors to accommodate error messages */
.form-group:has(.field-error) {
    margin-bottom: 2.5rem;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

/* Disable browser default validation styling */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    box-shadow: none;
    outline: none;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    box-shadow: none;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    z-index: 10;
    line-height: 1;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add left padding for inputs that have an icon */
.form-group:has(i) input,
.form-group:has(i) textarea {
    padding-left: 3rem;
}

/* Add right padding for password inputs to make room for toggle button */
.form-group input[type="password"] {
    padding-right: 3rem !important;
}

/* Password toggle button styling */
.password-toggle {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--text-light) !important;
    cursor: pointer !important;
    z-index: 15 !important;
    padding: 0.5rem !important;
    width: 2rem !important;
    height: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-primary) !important;
}

/* Field error styling - position below input */
.field-error {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0.25rem !important;
    color: var(--error-color) !important;
    font-size: 0.75rem !important;
    z-index: 5 !important;
}

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

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

.user-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.type-btn i {
    font-size: 1.5rem;
}

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

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

.athlete-fields,
.business-fields {
    margin-top: 1rem;
}

/* Form Validation */
.form-group.error input {
    border-color: var(--error-color);
}

.form-group.success input {
    border-color: var(--success-color);
}


/* Password Strength Indicator */
.password-strength {
    margin: 0.5rem 0 1rem;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.strength-meter {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 2px;
}

.strength-meter-fill.weak {
    background: var(--error-color);
    width: 33%;
}

.strength-meter-fill.medium {
    background: var(--warning-color);
    width: 66%;
}

.strength-meter-fill.strong {
    background: var(--success-color);
    width: 100%;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.strength-text.weak {
    color: var(--error-color);
}

.strength-text.medium {
    color: var(--warning-color);
}

.strength-text.strong {
    color: var(--success-color);
}

/* Profile Completion Badge */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    min-height: 60px;
    flex-shrink: 0;
}

.profile-header h3 {
    margin-bottom: 0;
}

.profile-completion-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: var(--background);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.mini-progress-bar {
    width: 100px;
    height: 8px;
    background: var(--surface-dark);
    border-radius: 4px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    width: 0%;
}

.completion-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: var(--surface);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 70px);
    width: 100%;
    overflow: hidden;
}

.dashboard-header {
    grid-column: 1 / -1;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

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

.header-actions {
    display: flex;
    gap: 1rem;
}

.dashboard-sidebar {
    background: linear-gradient(180deg, #1e40af 0%, #0891b2 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    box-shadow: 2px 0 10px rgba(30, 64, 175, 0.2);
}

.sidebar-profile {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sidebar-profile:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.profile-pic-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
}

.sidebar-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    background: white;
}

.profile-pic-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    border: 3px solid white;
}

.sidebar-profile-name {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-right-color: white;
    border-left: 3px solid white;
    margin-left: -3px;
    padding-left: calc(2rem + 3px);
}

.nav-item i {
    font-size: 1.125rem;
}

.dashboard-main {
    padding: 2rem;
    overflow-y: auto;
    min-height: 600px;
    max-height: calc(100vh - 70px);
    overflow-x: hidden;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e40af 0%, #0891b2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.15);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Activity List */
.recent-activity {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}


.activity-list {
    margin-top: 1rem;
    min-height: 200px;
}

.promotions-grid {
    min-height: 200px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0 -1rem;
    border-bottom: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--surface);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.clickable-section {
    transition: all 0.3s ease;
}

.clickable-section:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.activity-content p {
    color: var(--text-light);
    font-size: 0.75rem;
    margin: 0;
}

.activity-time {
    display: block;
    color: var(--text-light);
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* Profile Form */
.profile-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* Promotion Form Sections */
.promotion-form {
    padding: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.promotion-form .btn-full {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: white;
}

.form-section h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

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

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    padding: 0.25rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

/* Card-style checkbox groups for sports and colleges */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-card {
    position: relative;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: white;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.checkbox-card:hover {
    border-color: #f59e0b;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-content {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    border-radius: calc(var(--border-radius) - 2px);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-card {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.checkbox-card.checked {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
}

.checkbox-card-content {
    display: block;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: calc(var(--border-radius) - 2px);
}

.checkbox-card label {
    display: block;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

/* Inline checkbox styles */
.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-inline input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.checkbox-inline label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.profile-form .form-group input,
.profile-form .form-group textarea,
.profile-form .form-group select {
    padding: 0.75rem 1rem;
}

.social-media-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.social-media-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Promotions */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.promotion-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    min-width: 0;
}

.promotion-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.promotion-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.promotion-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promotion-company {
    color: var(--text-secondary);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promotion-body {
    padding: 1.5rem;
}

.promotion-description {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.promotion-commission {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.125rem;
}

.promotion-budget {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.promotion-footer {
    padding: 1rem 1.5rem;
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promotion-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-completed {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

/* Browse Promotions */
.promotions-browse {
    padding: 1.5rem;
}

.browse-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.filter-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.promotions-list {
    max-height: 60vh;
    overflow-y: auto;
}

/* Messages */
.messages-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - 200px);
    min-height: 500px;
    overflow: hidden;
}

.messages-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.messages-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    flex-shrink: 0;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover {
    background: var(--surface);
}

.conversation-item.active {
    background: var(--primary-color);
    color: white;
}

.conversation-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.conversation-preview {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.conversation-item.active .conversation-preview {
    color: rgba(255, 255, 255, 0.8);
}

.messages-main {
    display: flex;
    flex-direction: column;
}

.conversation-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.conversation-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

.messages-area {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
}

.message.sent {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
}

.message.received {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text-primary);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.message-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.message-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.message-input button {
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

/* Earnings */
.earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    min-height: 60px;
    flex-shrink: 0;
}

.earnings-filter select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
}

.earnings-summary {
    margin-bottom: 2rem;
}

.earnings-total-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
}

.earnings-total-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.earnings-total-info {
    flex: 1;
}

.earnings-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.earnings-total-info h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.earnings-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.earnings-row {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.earnings-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.earnings-row .promotion-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.earnings-row .promotion-logo img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.earnings-row .promotion-logo .logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    border: 1px solid var(--border-light);
}

.earnings-row .promotion-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.earnings-row .promotion-details .business-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.earnings-row .promotion-details .promotion-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.earnings-stat {
    text-align: center;
    min-width: 90px;
    flex-shrink: 0;
}

.earnings-stat .stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.earnings-stat .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.earnings-stat.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    min-width: 110px;
}

.earnings-stat.highlight .stat-value {
    color: var(--success-color);
    font-size: 1.35rem;
}

.earnings-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.earnings-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.earnings-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.earning-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
}

.chart-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.earnings-history {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    transform: translateX(100%);
    animation: slideIn 0.3s ease-out forwards;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--error-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

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

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--error-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--primary-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.loading-spinner {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Analytics */
.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    min-height: 60px;
    flex-shrink: 0;
}

.analytics-filter select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    min-height: 300px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.empty-state p {
    margin: 0;
    max-width: 400px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.loading-state p {
    margin: 0;
}

.chart-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.chart-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.chart-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
}

.metrics-table {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

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

.table th {
    background: var(--surface);
    font-weight: 500;
    color: var(--text-primary);
}

.table td {
    color: var(--text-secondary);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    min-height: 60px;
    flex-shrink: 0;
}

.section-header h3 {
    margin: 0;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand .brand-logo {
        height: 45px;
    }

    .nav-brand .brand-name {
        font-size: 1.25rem;
    }

    .nav-brand .brand-slogan {
        font-size: 0.65rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        transform: translateY(-100%);
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: block;
        color: white;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        position: relative;
    }

    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        top: 70px;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }

    .dashboard-sidebar.active {
        left: 0;
    }

    .dashboard-main {
        width: 100%;
        padding: 1rem;
    }

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

    .user-type-selector {
        flex-direction: column;
    }

    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
        position: relative;
    }

    .messages-sidebar {
        position: fixed;
        left: -300px;
        top: 70px;
        bottom: 0;
        width: 300px;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        background: var(--background);
    }

    .messages-sidebar.active {
        left: 0;
    }

    .browse-filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: auto;
    }

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

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

    .earnings-overview {
        grid-template-columns: 1fr;
    }

    .earnings-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .earnings-row .promotion-details {
        flex-basis: 100%;
        order: 2;
    }

    .earnings-row .promotion-logo {
        order: 1;
    }

    .earnings-stat {
        order: 3;
        min-width: 85px;
    }

    .earnings-stat.highlight {
        min-width: 100px;
    }

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

    .charts-container {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .header-actions {
        justify-content: center;
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    /* Overlay for mobile menus */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .mobile-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .nav-container {
        padding: 0 0.5rem;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .nav-brand .brand-logo {
        height: 35px;
    }

    .nav-brand .brand-name {
        font-size: 1rem;
    }

    .nav-brand .brand-slogan {
        font-size: 0.6rem;
    }

    .nav-toggle {
        font-size: 1.25rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

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

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

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

    .dashboard-main {
        padding: 0.5rem;
    }

    .section-header h3 {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

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

    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        width: 95%;
        margin: 1rem;
        max-width: none;
    }
    
    .modal-content.large {
        width: 95%;
        max-width: none;
    }
    
    .promotion-form {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .dashboard-main {
        padding: 1rem;
    }

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

    .toast-container {
        left: 0.5rem;
        right: 0.5rem;
    }

    .toast {
        max-width: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Enhanced Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .navbar,
    .modal,
    .toast-container,
    .loading-overlay {
        display: none !important;
    }

    .dashboard {
        margin-top: 0;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: none;
    }
}

/* Profile Image Upload Styles */
.profile-image-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.image-upload-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
    background: var(--surface-light);
}

.image-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-upload-controls .btn {
    min-width: 150px;
}

/* Analytics Modal */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analytics-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: white;
}

.analytics-card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 400;
}

.analytics-value {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

/* Promo Codes Section */
.promo-codes-section {
    padding: 1.5rem;
}

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

.promo-verifier {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.verifier-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.verifier-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.verification-result {
    margin-top: 1rem;
}

.verification-success {
    background: #f0f9ff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
}

.verification-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 1.5rem;
}

.calculation-breakdown {
    background: white;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.calculation-breakdown p.highlight {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.promo-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.promo-code-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.promo-code-card.inactive {
    opacity: 0.7;
    background: #f9f9f9;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.code-display {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Monaco', 'Courier New', monospace;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.active {
    background: #10b981;
    color: white;
}

.status-badge.inactive {
    background: #6b7280;
    color: white;
}

.code-details {
    margin-bottom: 1rem;
}

.code-details p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.code-details p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.code-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.redemptions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.redemptions-table th {
    background: var(--surface-light);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-light);
}

.redemptions-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.redemptions-table tr:hover {
    background: var(--surface-light);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--surface-light);
    border-radius: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Dashboard Title Profile Image Alignment Fix */
.dashboard-title h1 {
    margin: 0;
    line-height: 1.2;
}

.dashboard-title img {
    vertical-align: middle;
    flex-shrink: 0;
}

/* Role-based Navigation Styles */
.nav-link.logged-in-only,
.nav-link.business-only,
.nav-link.athlete-only {
    display: none;
}

.nav-link.public-only {
    display: flex; /* Show public links by default */
}

.nav-link.logged-in-only.show,
.nav-link.business-only.show,
.nav-link.athlete-only.show {
    display: flex;
}

.nav-link.public-only.hide {
    display: none; /* Hide public links when user is logged in */
}

/* Page Section Styles */
.page-section {
    padding: 80px 0 60px;
    min-height: 100vh;
    background: var(--background);
}

.page-section.hidden {
    display: none;
}

/* Filters Container */
.filters-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input, .filter-input, .filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    min-width: 200px;
}

.search-input {
    flex: 1;
    min-width: 300px;
}

.search-input:focus, .filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Athletes Grid */
.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.athlete-card {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.athlete-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.athlete-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-dark);
}

.athlete-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.athlete-info h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.athlete-info p {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.athlete-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.athlete-stat {
    color: var(--text-secondary);
}

.athlete-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.athlete-actions {
    display: flex;
    gap: 0.5rem;
}

/* Promotions Grid */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.promotion-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.promotion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.promotion-card.business-promotion {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid var(--primary-color);
}

.promotion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: rgba(30, 64, 175, 0.02);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.promotion-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promotion-header-text {
    flex: 1;
    min-width: 0;
}

.promotion-body {
    padding: 1.5rem;
}

.business-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    object-fit: cover;
    background: var(--surface-dark);
}

.promotion-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-name {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promotion-details {
    margin: 1rem 0;
}

.promotion-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.promotion-type {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.promotion-type i {
    font-size: 0.75rem;
}

.commission-rate {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--success-color);
}

.commission-rate i {
    font-size: 0.9rem;
}

.promotion-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.promotion-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.promotion-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Business Promotion Enhancements */
.promotion-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.promotion-status.paused {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.promotion-status.ended {
    background: rgba(148, 163, 184, 0.1);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.promotion-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.75rem 0;
}

.promotion-dates i {
    color: var(--primary-color);
}

.promotion-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.promotion-progress {
    margin: 1rem 0;
}

.progress-item {
    margin-bottom: 0.75rem;
}

.progress-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(226, 232, 240, 0.6);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

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

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pending-applications {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #b45309;
}

.promotion-footer {
    padding: 1rem 1.5rem;
    background: rgba(248, 250, 252, 0.3);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    margin: 0;
}

.promotion-footer .promotion-actions {
    gap: 0.75rem;
}

.promotion-footer .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

/* Promo Code Display in Campaign Cards */
.promo-code-display {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.promo-code-display label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.promo-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-code code {
    flex: 1;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px dashed var(--primary-color);
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.promo-code .btn-sm {
    padding: 0.6rem 0.8rem;
}

/* Split Info Display */
.split-info {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.split-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.split-breakdown {
    display: flex;
    gap: 1rem;
}

.split-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.split-item-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.split-item-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
}

/* Promotional Value Display in Modal */
.promotional-value-display {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    text-align: center;
}

.promotional-value-display .label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.promotional-value-display .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Split Configurator in Modal */
.split-configurator {
    margin: 1.5rem 0;
}

.split-configurator .form-group {
    margin-bottom: 1rem;
}

.split-configurator .help-text {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(107, 114, 128, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
}

/* Promo Code Checker */
.promo-checker-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.promo-input-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.promo-code-input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    min-width: 300px;
    text-transform: uppercase;
    transition: var(--transition);
}

.promo-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.promo-result {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.promo-result.success {
    border-left: 4px solid var(--success-color);
}

.promo-result.error {
    border-left: 4px solid var(--error-color);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--background);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--surface);
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input, .filter-input, .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .athletes-grid, .promotions-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-input-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .promo-code-input {
        min-width: auto;
    }
}

/* Redeem Code Section */
.redeem-container {
    max-width: 900px;
    margin: 0 auto;
}

.redeem-form-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.redemption-success-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #10b981;
    text-align: center;
    margin-bottom: 2rem;
}

.success-header {
    margin-bottom: 1.5rem;
}

.calculation-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.calc-row.discount .calc-value {
    color: #10b981;
}

.calc-row.total {
    border-top: 2px solid #374151;
    border-bottom: 2px solid #374151;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.calc-row.commission {
    color: #6b7280;
    font-size: 0.9rem;
    border-bottom: none;
}

.promotion-info {
    text-align: left;
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.promotion-info p {
    margin: 0.5rem 0;
}

.recent-redemptions h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.redemption-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.redemption-item.cancelled {
    opacity: 0.6;
    background: #f9fafb;
}

.redemption-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.redemption-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.redemption-item-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.cancelled-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.btn-block {
    width: 100%;
}

/* Message Compose Modal */
.message-modal {
    max-width: 500px;
}

.message-compose-container {
    position: relative;
    min-height: 400px;
}

/* Recipient Selection View */
.recipient-selection-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipient-search {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.recipient-search input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
}

.recipient-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.recipient-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.recipient-item:hover {
    background-color: var(--background-secondary);
}

.recipient-item .recipient-avatar,
.recipient-item .recipient-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    flex-shrink: 0;
}

.recipient-item .recipient-avatar-placeholder {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.recipient-details {
    flex: 1;
    min-width: 0;
}

.recipient-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.recipient-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recipient-item i.fa-chevron-right {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Message Compose View */
.message-compose-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.message-recipient-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    opacity: 0.8;
}

.recipient-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.recipient-info .recipient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.recipient-info .recipient-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.recipient-info span {
    font-weight: 600;
    color: var(--text-primary);
}

.message-input-area {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-input-area textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.btn-send {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* iMessage-style conversation view */
.imessage-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: white;
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.header-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.header-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.imessage-input {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: white;
}

.imessage-input input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s;
}

.imessage-input input:focus {
    border-color: var(--primary-color);
}

.imessage-input .send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

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

.imessage-input .send-btn i {
    font-size: 0.875rem;
}

/* Enhanced scrolling for messages area */
.messages-area {
    overflow-y: auto !important;
    min-height: 0;
    scroll-behavior: smooth;
}

.messages-area::-webkit-scrollbar {
    width: 8px;
}

.messages-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.messages-area::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Fix conversation view height to enable scrolling */
.messages-sidebar {
    overflow: hidden;
    min-height: 0;
}

.conversations-list {
    overflow-y: auto !important;
    min-height: 0;
}

.messages-main {
    overflow: hidden;
    min-height: 0;
}

.conversation-view {
    overflow: hidden;
    min-height: 0;
}

/* iMessage-style conversation items */
.conversation-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
}

.conversation-avatar {
    flex-shrink: 0;
}

.conversation-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.conversation-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conversation-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.conversation-name {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.conversation-time {
    font-size: 0.8125rem;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 8px;
}

.conversation-item.active .conversation-time {
    color: rgba(255, 255, 255, 0.8);
}

.conversation-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.conversation-preview {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    margin: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.conversation-item.active .conversation-preview {
    color: rgba(255, 255, 255, 0.85) !important;
}

.unread-badge {
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.conversation-item.active .unread-badge {
    background: white;
    color: var(--primary-color);
}

/* Make messages section extend to bottom only when active */
#messages.dashboard-section.active,
#business-messages.dashboard-section.active {
    height: calc(100vh - 120px);
    display: flex !important;
    flex-direction: column;
}

#messages.dashboard-section.active .messages-container,
#business-messages.dashboard-section.active .messages-container {
    height: 100%;
    flex: 1;
}

/* Already Applied Badge */
.already-applied-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9375rem;
}

.already-applied-badge i {
    font-size: 1.125rem;
}
/* Notification Badges */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b00;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-badge.hidden {
    display: none !important;
}

.nav-item {
    position: relative;
}

.nav-item .notification-badge {
    top: 4px;
    right: 4px;
}

/* Promotion Detail View Styles */
.promotion-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.promotion-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
}

.promotion-detail-header-content {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.business-logo-large {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.promotion-detail-title h2 {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
}

.business-name-large {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.promotion-status-large {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
}

.promotion-status-large.accepted {
    background: #dcfce7;
    color: #16a34a;
}

.promotion-status-large.pending {
    background: #fef3c7;
    color: #d97706;
}

.promotion-detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-code-section {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.promo-code-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
    font-size: 0.8125rem;
}

.promo-code-large {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.promo-code-large code {
    font-size: 1.125rem;
    font-family: 'Courier New', monospace;
    background: var(--surface);
    padding: 0.375rem 0.875rem;
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
    flex: 1;
}

.promotion-description {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.promotion-description h3 {
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
}

.promotion-description p {
    font-size: 0.8125rem;
}

.promotion-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.625rem;
}

.info-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-card i {
    font-size: 1.25rem;
    color: white;
    background: var(--primary-color);
    padding: 0.625rem;
    border-radius: var(--border-radius);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-card p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.promotion-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.625rem;
}

.promotion-stats .stat-card {
    background: var(--gradient-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promotion-stats .stat-card h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.promotion-stats .stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fbbf24;
}

/* Redemptions History Styles */
.redemptions-history {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.redemptions-history h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.redemptions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.redemption-item {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.875rem 1rem;
    background: var(--surface);
    transition: var(--transition);
}

.redemption-item:hover {
    box-shadow: var(--shadow);
}

.redemption-item.cancelled {
    background: #fef2f2;
    border-color: #fecaca;
    opacity: 0.8;
}

.redemption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border-light);
}

.redemption-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.redemption-date i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.redemption-received-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.redemption-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: #fef3c7;
    color: #d97706;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.redemption-cancelled-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.redemption-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.redemption-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.redemption-detail-item .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.redemption-detail-item .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.redemption-detail-item .value.earnings {
    color: var(--success-color);
}

.cancellation-reason {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: white;
    border-radius: var(--border-radius);
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cancellation-reason i {
    color: var(--error-color);
    font-size: 0.75rem;
}

.cancellation-date {
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===================================
   Payments & Billing Styles
   =================================== */

.payments-dashboard {
    padding: 2rem 0;
}

.payment-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-info {
    flex: 1;
}

.summary-label {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

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

.payment-section h2 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.payment-method-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.payment-method-actions {
    display: flex;
    gap: 0.5rem;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table thead {
    background: var(--surface);
}

.transactions-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.transactions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.transactions-table tbody tr:hover {
    background: var(--surface);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.status-refunded {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.status-failed {
    background: #fee2e2;
    color: #dc2626;
}

.payout-account-status {
    text-align: center;
    padding: 2rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-indicator.status-success {
    background: #dcfce7;
    color: #16a34a;
}

.status-indicator.status-warning {
    background: #fef3c7;
    color: #d97706;
}

.payout-setup-prompt {
    text-align: center;
    padding: 3rem 2rem;
}

.payout-setup-prompt i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.payout-setup-prompt h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.payout-setup-prompt p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--error);
}


/* Page Content Wrapper */
.page-content {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--surface);
    position: relative;
    width: 100%;
}

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

.page-content h1 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Athlete Profile Modal */
.athlete-profile-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.athlete-profile-modal .close {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding-bottom: 2px;
    z-index: 10;
}

.athlete-profile-modal .close:hover {
    color: white;
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.athlete-profile-content {
    padding: 0;
}

.athlete-profile-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
}

.athlete-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.athlete-profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.athlete-profile-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: white;
}

.athlete-profile-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0.95;
}

.athlete-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.athlete-profile-section {
    margin-bottom: 2rem;
}

.athlete-profile-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.athlete-profile-bio {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    line-height: 1.8;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

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

.athlete-profile-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.athlete-profile-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.athlete-profile-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.athlete-profile-stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.athlete-profile-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.athlete-profile-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.athlete-profile-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.athlete-profile-social-link i {
    font-size: 1.25rem;
}

.athlete-profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.athlete-profile-actions .btn {
    flex: 1;
}

@media (max-width: 768px) {
    .athlete-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .athlete-profile-meta {
        justify-content: center;
    }
    
    .athlete-profile-actions {
        flex-direction: column;
    }
}
