/* ========================================
   QuickPR Customer Portal - Mobile-First Design
   Native Mobile App Experience
   ======================================== */

/* CSS Variables for Mobile Design */
:root {
    /* Force Light Theme - Override System Preferences */
    color-scheme: light !important;
    
    /* Mobile-First Colors */
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    --info-color: #60a5fa;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Mobile Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Mobile Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    /* Mobile Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Mobile Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    
    /* Mobile Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Mobile Safe Areas */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);
    --safe-right: env(safe-area-inset-right);
}

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

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    
    /* Force Light Theme */
    color-scheme: light !important;
    background-color: var(--gray-50) !important;
    color: var(--gray-800) !important;
    
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

/* ========================================
   FORCE LIGHT THEME - OVERRIDE SYSTEM PREFERENCES
   ======================================== */

/* Ensure all elements use light theme colors */
* {
    color-scheme: light !important;
}

/* Force light backgrounds and text colors */
.mobile-card,
.mobile-form,
.mobile-list,
.mobile-form-input,
.mobile-form-textarea,
.mobile-form-select {
    background-color: var(--white) !important;
    color: var(--gray-800) !important;
    border-color: var(--gray-200) !important;
}

/* Force light theme for form elements */
input, textarea, select {
    background-color: var(--white) !important;
    color: var(--gray-800) !important;
    border-color: var(--gray-200) !important;
}

/* ========================================
   MOBILE CONTAINER & LAYOUT
   ======================================== */

.mobile-container {
    max-width: 100%;
    min-height: 100vh;
    background: var(--gray-50);
    position: relative;
    overflow-x: hidden;
    z-index: 1;
}

.mobile-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-md) var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.mobile-header-info {
    flex: 1;
    text-align: center;
}

.mobile-logo {
    height: 32px;
    width: auto;
}

.mobile-header-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    flex: 1;
    text-align: center;
    margin: 0;
}

.mobile-header-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-600);
    text-align: center;
    margin: var(--space-xs) 0 0 0;
    font-weight: 400;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mobile-main {
    padding: var(--space-lg);
    padding-bottom: calc(var(--space-2xl) + 80px); /* Space for bottom nav */
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + var(--safe-bottom));
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gray-500);
    transition: var(--transition-fast);
    min-width: 60px;
    position: relative;
    z-index: 2;
}

.mobile-nav-item.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.mobile-nav-icon {
    font-size: var(--text-lg);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-align: center;
}

/* Ensure bottom navigation stays at bottom and doesn't interfere with other elements */
.mobile-bottom-nav * {
    position: relative;
    z-index: inherit;
}

/* Prevent any elements from appearing above the bottom navigation */
.mobile-bottom-nav {
    isolation: isolate;
}

/* Ensure proper stacking context */
.mobile-container > *:not(.mobile-bottom-nav) {
    z-index: auto;
}

/* ========================================
   MOBILE CARDS & COMPONENTS
   ======================================== */

.mobile-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}

.mobile-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.mobile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.mobile-card-content {
    margin-top: var(--space-md);
}

.mobile-card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
}

.mobile-card-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

.mobile-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--white);
}

.mobile-card-icon.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.mobile-card-icon.success {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
}

.mobile-card-icon.warning {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
}

.mobile-card-icon.info {
    background: linear-gradient(135deg, var(--info-color), #3b82f6);
}

/* ========================================
   MOBILE STATS GRID
   ======================================== */

.mobile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.mobile-stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}

.mobile-stat-card:active {
    transform: scale(0.95);
}

.mobile-stat-number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.mobile-stat-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: 500;
}

/* ========================================
   MOBILE BUTTONS
   ======================================== */

.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 48px;
    width: 100%;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.mobile-btn-primary:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.mobile-btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.mobile-btn-secondary:active {
    background: var(--gray-100);
}

.mobile-btn-success {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
    color: var(--white);
}

.mobile-btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
    color: var(--white);
}

.mobile-btn-danger {
    background: linear-gradient(135deg, var(--error-color), #ef4444);
    color: var(--white);
}

.mobile-btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    min-height: 36px;
}

.mobile-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.mobile-btn-icon:active {
    transform: scale(0.95);
}

/* ========================================
   MOBILE LISTS
   ======================================== */

.mobile-list {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.mobile-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
}

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

.mobile-list-item:active {
    background: var(--gray-50);
}

.mobile-list-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: #3b82f6;
    flex-shrink: 0;
}

.mobile-list-content {
    flex: 1;
    min-width: 0;
}

.mobile-list-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.mobile-list-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.mobile-list-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-list-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.mobile-list-badge.completed {
    background: rgba(74, 222, 128, 0.1);
    color: #059669;
}

.mobile-list-badge.published {
    background: rgba(96, 165, 250, 0.1);
    color: #2563eb;
}

/* ========================================
   MOBILE FORMS
   ======================================== */

.mobile-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.mobile-form-group {
    margin-bottom: var(--space-lg);
}

.mobile-form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.mobile-form-input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    background: var(--white);
    transition: var(--transition-fast);
    min-height: 48px;
}

.mobile-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.mobile-form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ========================================
   MOBILE ALERTS & NOTIFICATIONS
   ======================================== */

.mobile-alert {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mobile-alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #059669;
}

.mobile-alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #dc2626;
}

.mobile-alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #d97706;
}

.mobile-alert-info {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #2563eb;
}

.mobile-alert-icon {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.mobile-alert-content {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
}

/* ========================================
   MOBILE LOADING & ANIMATIONS
   ======================================== */

/* ========================================
   PAGE PRELOADER - LIGHT THEME
   ======================================== */

.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
    /* Prevent interaction during loading */
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* WebView loading state - prevent clicks during loading */
body.loading {
    overflow: hidden;
    pointer-events: none;
}

body.loading * {
    pointer-events: none !important;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    animation: preloader-logo-bounce 2s ease-in-out infinite;
}

.preloader-logo i {
    font-size: 2.5rem;
    color: white;
}

@keyframes preloader-logo-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: preloader-spin 1s linear infinite;
    margin-bottom: 2rem;
}

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

.preloader-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
    text-align: center;
}

.preloader-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 400px;
    line-height: 1.5;
}

.preloader-tips {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 500px;
    text-align: center;
}

.preloader-tip-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

.preloader-tip-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.preloader-tip-text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.preloader-tip-source {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 1rem 0;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: preloader-progress 3s ease-in-out infinite;
}

@keyframes preloader-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Preloader Tips Data */
.preloader-tips[data-tip="1"] .preloader-tip-icon i { content: "\f0a1"; }
.preloader-tips[data-tip="2"] .preloader-tip-icon i { content: "\f0a1"; }
.preloader-tips[data-tip="3"] .preloader-tip-icon i { content: "\f0a1"; }
.preloader-tips[data-tip="4"] .preloader-tip-icon i { content: "\f0a1"; }
.preloader-tips[data-tip="5"] .preloader-tip-icon i { content: "\f0a1"; }

/* ========================================
   OLD LOADING SYSTEM - REMOVED
   ======================================== */

/* Removing old mobile-loading, mobile-spinner, mobile-skeleton classes */

/* ========================================
   MOBILE UTILITIES
   ======================================== */

.mobile-text-center { text-align: center; }
.mobile-text-left { text-align: left; }
.mobile-text-right { text-align: right; }

.mobile-mb-0 { margin-bottom: 0; }
.mobile-mb-sm { margin-bottom: var(--space-sm); }
.mobile-mb-md { margin-bottom: var(--space-md); }
.mobile-mb-lg { margin-bottom: var(--space-lg); }
.mobile-mb-xl { margin-bottom: var(--space-xl); }

.mobile-mt-0 { margin-top: 0; }
.mobile-mt-sm { margin-top: var(--space-sm); }
.mobile-mt-md { margin-top: var(--space-md); }
.mobile-mt-lg { margin-top: var(--space-lg); }
.mobile-mt-xl { margin-top: var(--space-xl); }

.mobile-hidden { display: none; }
.mobile-block { display: block; }
.mobile-flex { display: flex; }
.mobile-grid { display: grid; }

.mobile-w-full { width: 100%; }
.mobile-h-full { height: 100%; }

.mobile-rounded { border-radius: var(--radius-md); }
.mobile-rounded-lg { border-radius: var(--radius-lg); }
.mobile-rounded-xl { border-radius: var(--radius-xl); }

/* ========================================
   MOBILE RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet and up */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 768px;
        margin: 0 auto;
    }
    
    .mobile-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .mobile-btn {
        width: auto;
        min-width: 120px;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .mobile-container {
        max-width: 1024px;
    }
    
    .mobile-main {
        padding: var(--space-xl);
    }
}



/* ========================================
   ONBOARDING & BEGINNER-FRIENDLY FEATURES
   ======================================== */

/* Onboarding Styles */
.onboarding-card {
    margin-bottom: var(--space-lg);
}

.onboarding-steps {
    margin: var(--space-lg) 0;
}

.onboarding-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.onboarding-step.active {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: var(--space-md);
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 var(--space-xs) 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.4;
}

/* Enhanced Quick Actions */
.quick-actions-grid {
    display: grid;
    gap: var(--space-md);
}

.quick-action-item {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action-item:hover {
    background: var(--gray-100);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
}

.quick-action-content h4 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.quick-action-content p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.4;
}

.quick-action-arrow {
    color: var(--gray-400);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.quick-action-item:hover .quick-action-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* Help Tooltip */
.help-tooltip {
    position: relative;
    display: inline-block;
    margin-left: var(--space-xs);
}

.help-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--gray-900);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: var(--space-sm);
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.help-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    margin: var(--space-md) 0;
}

.progress-step {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin: 0 var(--space-xs);
    position: relative;
}

.progress-step.active {
    background: var(--primary-color);
}

.progress-step.completed {
    background: var(--success-color);
}

/* Beginner-Friendly Form Enhancements */
.form-help-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-top: var(--space-xs);
    line-height: 1.4;
}

.form-example {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--gray-700);
}

.form-example strong {
    color: var(--gray-900);
}

/* Smart Suggestions */
.smart-suggestions {
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin: var(--space-md) 0;
}

.smart-suggestions h4 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 16px;
    font-weight: 600;
}

.smart-suggestions ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.smart-suggestions li {
    margin-bottom: var(--space-xs);
    font-size: 14px;
    line-height: 1.4;
}

/* Mobile Responsive Enhancements */
@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .onboarding-steps {
        margin: var(--space-md) 0;
    }
    
    .step-content h4 {
        font-size: 15px;
    }
    
    .step-content p {
        font-size: 13px;
    }
}

/* ========================================
   ENHANCED RICH TEXT EDITOR STYLES
   ======================================== */

/* Rich Text Editor Container */
.rich-text-editor {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    margin-bottom: var(--space-md);
}

.rich-text-editor:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Toolbar Styling */
.editor-toolbar {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    gap: var(--space-xs);
    flex-wrap: wrap;
    min-height: 48px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: var(--text-sm);
    position: relative;
}

.toolbar-btn:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.toolbar-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: var(--gray-300);
    margin: 0 var(--space-xs);
}

/* Editor Content Area */
.editor-content {
    min-height: 150px;
    max-height: 400px;
    padding: var(--space-lg);
    outline: none;
    font-family: inherit;
    line-height: 1.6;
    color: var(--gray-900);
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.editor-content:empty:before {
    content: attr(placeholder);
    color: var(--gray-400);
    font-style: italic;
    pointer-events: none;
    position: absolute;
}

.editor-content.empty:before {
    content: attr(placeholder);
    color: var(--gray-400);
    font-style: italic;
    pointer-events: none;
}

.editor-content:focus {
    background: rgba(102, 126, 234, 0.02);
}

/* Content Styling */
.editor-content p {
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.6;
}

.editor-content p:last-child {
    margin-bottom: 0;
}

.editor-content strong {
    font-weight: 600;
    color: var(--gray-900);
}

.editor-content em {
    font-style: italic;
}

.editor-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.editor-content a:hover {
    color: var(--secondary-color);
}

.editor-content ul, .editor-content ol {
    margin: var(--space-sm) 0;
    padding-left: var(--space-xl);
}

.editor-content li {
    margin: var(--space-xs) 0;
    line-height: 1.5;
}

.editor-content ul li {
    list-style-type: disc;
}

.editor-content ol li {
    list-style-type: decimal;
}

/* Mobile Rich Text Editor */
@media (max-width: 768px) {
    .editor-toolbar {
        padding: var(--space-xs) var(--space-sm);
        gap: 2px;
    }
    
    .toolbar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .editor-content {
        min-height: 120px;
        padding: var(--space-md);
        font-size: var(--text-sm);
    }
    
    .toolbar-separator {
        height: 20px;
        margin: 0 2px;
    }
}

/* ========================================
   AI-POWERED PR GENERATOR STYLES
   ======================================== */

.ai-pr-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.ai-pr-intro::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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.ai-pr-intro p {
    color: white;
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.ai-toggle-section {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ai-toggle-section .mobile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ai-toggle-section .mobile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ai-toggle-section .mobile-btn:hover::before {
    left: 100%;
}

.ai-toggle-section .mobile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.ai-toggle-section .mobile-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ai-toggle-section .mobile-btn i {
    margin-right: var(--space-sm);
    font-size: var(--text-lg);
    animation: pulse 2s infinite;
}

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

/* AI Integration Line Styling */
.ai-integration-line {
    margin-bottom: var(--space-lg);
}

.ai-line-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.ai-line-content::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="grain3" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain3)"/></svg>');
    opacity: 0.2;
}

.ai-line-content i.fa-robot {
    font-size: var(--text-xl);
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.ai-line-content span {
    flex: 1;
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.ai-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ai-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ai-toggle-btn i {
    margin-right: var(--space-xs);
    font-size: var(--text-sm);
}

/* Mobile Responsive AI Integration */
@media (max-width: 768px) {
    .ai-line-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    
    .ai-line-content span {
        text-align: center;
        font-size: var(--text-sm);
    }
    
    .ai-toggle-btn {
        width: 100%;
        padding: var(--space-md);
        font-size: var(--text-base);
    }
    
    .ai-toggle-btn i {
        margin-right: var(--space-sm);
        font-size: var(--text-base);
    }
}

/* AI Form Container Styling */
#ai-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-top: var(--space-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

#ai-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#ai-form-container .mobile-form-group {
    margin-bottom: var(--space-lg);
}

#ai-form-container .mobile-form-label {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ai-form-container .mobile-form-input {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    font-size: var(--text-base);
    transition: all 0.3s ease;
    background: white;
}

#ai-form-container .mobile-form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

#ai-form-container .mobile-form-input:hover {
    border-color: #cbd5e1;
}

#ai-form-container .mobile-form-input {
    position: relative;
}

#ai-form-container .mobile-form-input:not(:placeholder-shown) {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

#ai-form-container select.mobile-form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

#ai-form-container textarea.mobile-form-input {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

#ai-form-container textarea.mobile-form-input:focus {
    min-height: 100px;
}

#ai-form-container .mobile-form-actions {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid #e2e8f0;
}

#ai-form-container .mobile-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#ai-form-container .mobile-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#ai-form-container .mobile-btn-primary:hover::before {
    left: 100%;
}

#ai-form-container .mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

#ai-form-container .mobile-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#ai-form-container .mobile-btn-primary i {
    margin-right: var(--space-sm);
    font-size: var(--text-lg);
}

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

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

/* Success Alert Styles */
.mobile-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid;
}

.mobile-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.mobile-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.mobile-alert-content {
    flex: 1;
}

.mobile-alert-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
}

.mobile-alert-message {
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* QuickAI Card Header Enhancement */
.mobile-card:has(.mobile-card-title:contains("QuickAI PR Generator")) .mobile-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg) calc(-1 * var(--space-lg));
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.mobile-card:has(.mobile-card-title:contains("QuickAI PR Generator")) .mobile-card-header::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="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    opacity: 0.2;
}

.mobile-card:has(.mobile-card-title:contains("QuickAI PR Generator")) .mobile-card-title {
    color: white;
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.mobile-card:has(.mobile-card-title:contains("QuickAI PR Generator")) .mobile-card-title i {
    color: #fbbf24;
    margin-right: var(--space-sm);
    font-size: var(--text-2xl);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mobile-card:has(.mobile-card-title:contains("QuickAI PR Generator")) .mobile-card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* AI Progress Container */
.ai-progress-container {
    text-align: center;
    padding: var(--space-lg) 0;
}

.ai-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    position: relative;
}

.ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.5s ease-in-out;
    position: relative;
}

.ai-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ai-progress-text {
    color: var(--gray-700);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xl);
    font-weight: 500;
}

.ai-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
}

.ai-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    position: relative;
}

.ai-step i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: all 0.3s ease;
}

.ai-step.active i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.ai-step.completed i {
    background: var(--success-color);
    color: white;
}

.ai-step span {
    font-size: var(--text-xs);
    color: var(--gray-600);
    text-align: center;
    max-width: 80px;
}

/* AI Preview Card */
.ai-preview-card .mobile-form-input[readonly] {
    background: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

.ai-preview-card .mobile-form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
}

/* Mobile Responsive AI */
@media (max-width: 768px) {
    .ai-progress-steps {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .ai-step {
        flex-direction: row;
        gap: var(--space-md);
        width: 100%;
        justify-content: flex-start;
    }
    
    .ai-step span {
        max-width: none;
        text-align: left;
    }
    
    .ai-preview-card .mobile-form-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ========================================
   REFERRAL PROGRAM STYLES
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.milestone-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.milestone-info p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.referral-link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.referral-link-container input {
    flex: 1;
    font-size: 0.875rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-buttons .mobile-btn {
    flex: 1;
    font-size: 0.875rem;
}

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

.tier-item {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: all 0.3s ease;
}

.tier-item.active {
    border-color: var(--primary-color);
    background: var(--primary-50);
}

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

.tier-header h4 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.125rem;
}

.tier-requirement {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.tier-reward {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

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

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.reward-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.reward-info p {
    margin: 0 0 0.25rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.reward-info small {
    color: var(--gray-500);
    font-size: 0.75rem;
}

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

.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.referral-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--gray-800);
    font-size: 1rem;
}

.referral-info p {
    margin: 0 0 0.25rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.referral-info small {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: var(--warning-50);
    color: var(--warning-700);
}

.status-completed {
    background: var(--success-50);
    color: var(--success-700);
}

.status-cancelled {
    background: var(--danger-50);
    color: var(--danger-700);
}

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

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.leaderboard-item.current-user {
    border-color: var(--primary-color);
    background: var(--primary-50);
}

.leaderboard-rank {
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--gray-800);
    font-size: 1rem;
}

.leaderboard-info p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.leaderboard-stats {
    display: flex;
    gap: 1rem;
}

.leaderboard-stats .stat {
    text-align: center;
}

.leaderboard-stats .stat-number {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.leaderboard-stats .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* Referral Mobile Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .referral-link-container {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .leaderboard-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .reward-item,
    .referral-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
} 