* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern color palette - trust, hope, compassion (perfect for charity) */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --accent: #06b6d4;
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Gradients - calming, trustworthy colors */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-hero: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #10b981 100%);
    --gradient-card: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warm: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    
    /* Grays */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-colored: 0 10px 30px -5px rgba(37, 99, 235, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafa;
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo h1 {
    font-size: 1.875rem;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    font-size: 0.9375rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* Special styles for buttons in navbar (white background) */
.navbar .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.navbar .btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Special styles for buttons in hero section (gradient background) */
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-large {
    padding: 1.125rem 2.75rem;
    font-size: 1.125rem;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #10b981 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 7rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 4.5rem;
    color: var(--gray-900);
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 20px;
    padding: 1rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) translateY(-5px);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.feature-card h3 {
    font-size: 1.625rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-weight: 800;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1.0625rem;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.auth-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--gray-200);
}

.auth-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--gray-900);
    font-weight: 900;
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    font-style: italic;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.radio-group {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s;
}

.radio-label:hover {
    color: var(--primary);
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--primary);
}

.auth-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.auth-link a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Commitments */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-top: 2.5rem;
}

.page-header h2 {
    font-size: 2.75rem;
    color: var(--gray-900);
    font-weight: 900;
    letter-spacing: -1px;
}

.commitments-list {
    display: grid;
    gap: 2rem;
}

.commitment-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.commitment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s;
}

.commitment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.commitment-card:hover::before {
    transform: scaleY(1);
}

.commitment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.commitment-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
}

.commitment-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.commitment-share-btn {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-width: 40px;
    height: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.commitment-share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.commitment-status {
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.status-completed {
    background: var(--gradient-success);
    color: white;
}

.status-failed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.commitment-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.0625rem;
}

.commitment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.detail-value {
    font-weight: 800;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.detail-value a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.detail-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.commitment-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-results {
    margin-top: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 1.125rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.search-result-item:hover {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.search-result-item:last-child {
    border-bottom: none;
}

.amount-preview {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 2px solid var(--gray-200);
}

.amount-item {
    display: flex;
    justify-content: space-between;
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.amount-item:last-child {
    border-bottom: none;
}

.amount-item strong {
    color: var(--primary);
    font-size: 1.375rem;
    font-weight: 800;
}

.profile-container {
    background: var(--gray-50);
    min-height: 100vh;
}

.profile-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    margin-bottom: 0;
    min-height: 1px; /* Ensure it's visible even when empty */
}

.profile-cover {
    height: 350px;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    overflow: visible;
}

.profile-avatar-overlay {
    position: absolute;
    bottom: -90px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    padding: 0;
    z-index: 10;
}

.profile-avatar-overlay .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-container {
    position: relative;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 2rem;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--white);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-edit-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.profile-avatar-edit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Profile cover position already defined above, this is just for reference */

.profile-cover-edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.profile-cover-edit-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-info-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    margin-top: 90px;
}

.profile-info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile-name-section {
    flex: 1;
    min-width: 300px;
}

.profile-name-section h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.profile-join-date {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin: 0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.profile-friend-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.profile-friend-menu-btn {
    padding: 0.5rem;
    min-width: auto;
    border-radius: 8px;
}

.profile-friend-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.profile-friend-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.profile-friend-menu-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.profile-friend-menu-item.profile-action-remove-friend:hover {
    background: var(--gray-100);
    color: var(--danger);
}

.profile-friend-menu-item.profile-action-block-friend:hover {
    background: var(--gray-100);
    color: var(--danger);
}

.profile-friend-menu-item svg {
    flex-shrink: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon svg {
    flex-shrink: 0;
}

.profile-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.profile-stat-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.25rem;
}

.profile-tabs-container {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    background: var(--white);
    padding: 0;
    margin: 0;
}

.profile-tab {
    padding: 1.125rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9375rem;
    margin-bottom: -2px;
    position: relative;
}

.profile-tab:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.profile-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.profile-commitments {
    padding-bottom: 3rem;
    padding-top: 1rem;
}

.profile-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    border: 2px solid var(--gray-200);
}

.profile-info-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-label {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.9375rem;
}

.profile-value {
    color: var(--gray-900);
    font-weight: 800;
    font-size: 1.25rem;
}

.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-200);
    max-width: 800px;
    margin: 0 auto;
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fecaca;
}

.alert-success {
    background: var(--gradient-success);
    color: white;
    border: none;
}

/* Profile responsive */
@media (max-width: 768px) {
    .profile-cover {
        height: 250px;
    }
    
    .profile-avatar {
        width: 140px;
        height: 140px;
        font-size: 3.5rem;
        margin-left: 1rem;
        bottom: -70px;
    }
    
    .profile-info-bar {
        margin-top: 70px;
    }
    
    .profile-info-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .profile-name-section h1 {
        font-size: 1.75rem;
    }
    
    .profile-stats {
        width: 100%;
        justify-content: space-around;
        gap: 1rem;
    }
    
    .profile-stat {
        flex: 1;
    }
    
    .profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .profile-tab {
        white-space: nowrap;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .image-editor-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .image-editor-header {
        padding: 1rem 1.5rem;
    }
    
    .image-editor-header h2 {
        font-size: 1.25rem;
    }
    
    .image-editor-body {
        padding: 1.5rem;
    }
    
    .image-editor-preview {
        max-height: 50vh;
    }
    
    .image-editor-actions {
        flex-direction: column;
    }
    
    .image-editor-actions .btn {
        width: 100%;
    }
}

/* Image Editor Modal */
.image-editor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.image-editor-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.image-editor-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.image-editor-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.image-editor-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.image-editor-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: auto;
}

.image-editor-preview {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-editor-preview img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
}

.image-editor-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-200);
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--gray-600);
    color: var(--white);
    border: 2px solid var(--gray-600);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--gray-700);
    border-color: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cropper.js overrides */
.cropper-container {
    max-width: 100%;
    max-height: 60vh;
}

.cropper-view-box {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.cropper-face {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .page-header h2 {
        font-size: 2.25rem;
    }
    
    .commitment-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .auth-card {
        padding: 2.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page {
    animation: fadeIn 0.5s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Wallet */
.wallet-container {
    max-width: 900px;
    margin: 0 auto;
}

.wallet-balance-card {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    color: var(--white);
}

.wallet-balance-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-balance-info {
    flex: 1;
}

.wallet-balance-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.wallet-balance-amount {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.wallet-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.wallet-action-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.wallet-action-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.wallet-action-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.wallet-action-icon.deposit {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: var(--white);
}

.wallet-action-icon.withdraw {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: var(--white);
}

.wallet-action-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.wallet-action-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.wallet-history {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
}

.wallet-history h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.wallet-history-list {
    min-height: 200px;
}

.wallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.wallet-modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.wallet-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.wallet-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.wallet-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.wallet-modal-body {
    padding: 2rem;
}

.wallet-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-200);
}

/* Wallet responsive */
@media (max-width: 768px) {
    .wallet-balance-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .wallet-balance-amount {
        font-size: 2.5rem;
    }
    
    .wallet-actions {
        grid-template-columns: 1fr;
    }
    
    .wallet-modal-content {
        max-width: 95vw;
    }
    
    .wallet-modal-header,
    .wallet-modal-body {
        padding: 1.5rem;
    }
    
    .wallet-modal-actions {
        flex-direction: column;
    }
    
    .wallet-modal-actions .btn {
        width: 100%;
    }
}

/* About Page */
.about-hero {
    background: var(--gradient-primary);
    padding-top: calc(70px + 4rem);
    padding-bottom: 3rem;
    color: var(--white);
    margin-top: 0;
}

.about-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 6rem;
}

.about-section-alt {
    background: var(--gray-50);
    padding: 4rem 0;
    margin: 0 -2rem 6rem;
    border-radius: 0;
}

.about-section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-section-text {
    flex: 1;
}

.about-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-section-title-center {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 3rem;
    text-align: center;
}

.about-section-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.about-section-paragraph strong {
    color: var(--gray-900);
    font-weight: 700;
}

.about-section-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.9;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1rem;
}

.about-cta {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    margin-top: 4rem;
}

.about-cta .btn-outline {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.about-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    color: var(--white);
}

.about-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-cta h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.about-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About responsive */
@media (max-width: 968px) {
    .about-section-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-section-image {
        order: -1;
    }
    
    .about-image-placeholder {
        max-width: 100%;
        height: 300px;
    }
    
    .about-section-alt {
        margin: 0 -1rem 4rem;
        padding: 3rem 1rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 4rem 0 3rem;
        margin-top: 70px;
    }
    
    .about-hero-title {
        font-size: 2.5rem;
    }
    
    .about-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .about-section-title,
    .about-section-title-center {
        font-size: 2rem;
    }
    
    .about-section-paragraph {
        font-size: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-cta {
        padding: 3rem 1.5rem;
    }
    
    .about-cta h2 {
        font-size: 2rem;
    }
    
    .about-cta-buttons {
        flex-direction: column;
    }
    
    .about-cta-buttons .btn {
        width: 100%;
    }
}

/* FAQ Page */
.faq-hero {
    background: var(--gradient-primary);
    padding-top: calc(70px + 4rem);
    padding-bottom: 3rem;
    color: var(--white);
    margin-top: 0;
}

.faq-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.faq-hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    font-weight: 400;
}

.faq-content {
    padding: 4rem 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
}

.faq-icon {
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 2rem 2rem;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer p strong {
    color: var(--gray-900);
    font-weight: 700;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--gray-700);
}

.faq-answer li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.faq-answer li strong {
    color: var(--gray-900);
    font-weight: 700;
}

.faq-cta {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.faq-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.faq-cta p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* FAQ responsive */
@media (max-width: 768px) {
    .faq-hero {
        padding-top: calc(70px + 3rem);
        padding-bottom: 2rem;
        margin-top: 0;
    }
    
    .faq-hero-title {
        font-size: 2.5rem;
    }
    
    .faq-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .faq-question {
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.125rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
    }
    
    .faq-cta h2 {
        font-size: 1.75rem;
    }
}

/* Share Modal */
.share-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.share-modal[style*="flex"] {
    display: flex !important;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.share-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.share-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.share-options {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.share-options::-webkit-scrollbar {
    display: none;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-width: 80px;
    transition: transform 0.2s;
}

.share-option:hover {
    transform: translateY(-2px);
}

.share-option-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.2s;
}

.share-option:hover .share-option-icon {
    transform: scale(1.1);
}

.share-option-icon.whatsapp {
    background: #25D366;
}

.share-option-icon.facebook {
    background: #1877F2;
}

.share-option-icon.twitter {
    background: #000000;
}

.share-option-icon.email {
    background: var(--gray-600);
}

.share-option-icon.link {
    background: var(--primary);
}

.share-option span {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
    text-align: center;
}

.share-url-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
}

.share-url-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--gray-50);
    font-family: 'Courier New', monospace;
}

.share-url-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.share-url-section .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

/* Share Modal responsive */
@media (max-width: 768px) {
    .share-modal {
        padding: 1rem;
    }
    
    .share-modal-content {
        max-width: 100%;
    }
    
    .share-modal-header,
    .share-options,
    .share-url-section {
        padding: 1.25rem 1.5rem;
    }
    
    .share-option {
        min-width: 70px;
    }
    
    .share-option-icon {
        width: 48px;
        height: 48px;
    }
    
    .share-url-section {
        flex-direction: column;
    }
    
    .share-url-section .btn {
        width: 100%;
    }
}

/* Community Feed */
.community-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 2rem;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.community-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.community-sidebar-content {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
}

.community-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s;
}

.community-nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.community-nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.community-nav-item.has-unread {
    position: relative;
}

.community-nav-item svg {
    flex-shrink: 0;
}

.nav-unread-badge {
    display: none;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    margin-left: auto;
    line-height: 1.4;
}

.community-nav-item.has-unread .nav-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-main {
    flex: 1;
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.community-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
}

.community-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    flex: 1;
    max-width: 400px;
    transition: all 0.2s;
}

.community-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.community-search svg {
    color: var(--gray-500);
    flex-shrink: 0;
}

.community-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: transparent;
}

.community-search input::placeholder {
    color: var(--gray-400);
}

.community-search-results {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.user-search-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--gray-100);
}

.user-search-result:last-child {
    border-bottom: none;
}

.user-search-result:hover {
    background: var(--gray-50);
}

.user-search-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-search-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.user-search-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.community-section {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.community-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

/* Community Right Sidebar */
.community-sidebar-right {
    position: sticky;
    top: 90px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.community-widget {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
}

.community-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.community-widget h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.community-widget-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    line-height: 1.4;
}

.users-widget-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.friend-requests-widget-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.friend-request-widget-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 10px;
    transition: all 0.2s;
}

.friend-request-widget-item:hover {
    background: var(--gray-100);
}

.friend-request-widget-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.friend-request-widget-avatar:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.friend-request-widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-request-widget-info {
    flex: 1;
    min-width: 0;
    transition: all 0.2s;
}

.friend-request-widget-info:hover h5 {
    color: var(--primary);
}

.friend-request-widget-info h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.125rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-request-widget-info p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-request-widget-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon-small {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-icon-small svg {
    width: 16px;
    height: 16px;
}

.btn-icon-small.btn-accept {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.btn-icon-small.btn-accept:hover {
    background: var(--success-light);
    border-color: var(--success-light);
}

.btn-icon-small.btn-decline {
    background: var(--white);
    color: var(--gray-600);
    border-color: var(--gray-300);
}

.btn-icon-small.btn-decline:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-400);
}

.user-widget-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-widget-item:hover {
    background: var(--gray-50);
}

.user-widget-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-placeholder-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
}

.user-widget-info {
    flex: 1;
    min-width: 0;
}

.user-widget-info h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-widget-info p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.commitments-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.commitment-feed-item {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.commitment-feed-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.commitment-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.commitment-feed-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.commitment-feed-user img,
.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-small {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
}

.commitment-feed-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.commitment-feed-item p {
    color: var(--gray-600);
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.commitment-feed-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Community responsive */
@media (max-width: 1200px) {
    .community-container {
        grid-template-columns: 280px 1fr;
    }
    
    .community-sidebar-right {
        display: none;
    }
}

@media (max-width: 968px) {
    .community-container {
        grid-template-columns: 1fr;
    }
    
    .community-sidebar {
        position: static;
    }
    
    .community-sidebar-right {
        display: none;
    }
    
    .community-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .community-nav::-webkit-scrollbar {
        display: none;
    }
    
    .community-nav-item {
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .community-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .community-search {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .community-section {
        padding: 1.5rem;
    }
}

/* Chat Widget */
.chat-conversations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.chat-conversation-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.chat-conversation-item:hover {
    background: var(--gray-50);
}

.chat-conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-conversation-info {
    flex: 1;
    min-width: 0;
}

.chat-conversation-info h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.125rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conversation-info p {
    font-size: 0.6875rem;
    color: var(--gray-600);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-unread-badge {
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Inactivity Warning Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    animation: slideUp 0.3s ease-out;
}

.modal-content h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.modal-content p {
    margin: 0 0 1.5rem 0;
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-content p strong {
    color: var(--danger);
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-actions .btn {
    min-width: 140px;
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.chat-modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.chat-modal-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-modal-user h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.chat-status {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.chat-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--gray-600);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
    max-height: calc(80vh - 200px);
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.chat-message-own {
    align-self: flex-end;
}

.chat-message-other {
    align-self: flex-start;
}

.chat-message-content {
    background: var(--gray-100);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
}

.chat-message-own .chat-message-content {
    background: var(--primary);
    color: var(--white);
}

.chat-message-content p {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.chat-message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 2px solid var(--gray-200);
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s;
}

.chat-input-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-send-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Chat Page */
.chat-page-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    height: calc(100vh - 160px);
    max-height: calc(100vh - 160px);
    max-width: 1100px;
    margin: 0.5rem auto;
    background: var(--white);
    border: 2px solid var(--gray-200);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.chat-page-sidebar {
    border-right: 2px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.chat-page-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}

.chat-page-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
}

.chat-new-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-new-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.chat-new-search {
    padding: 0.375rem 0.5rem;
    border-bottom: 2px solid var(--gray-200);
    background: var(--white);
    flex-shrink: 0;
}

.chat-new-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s;
}

.chat-new-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-new-search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.chat-search-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--gray-100);
}

.chat-search-user-item:last-child {
    border-bottom: none;
}

.chat-search-user-item:hover {
    background: var(--gray-50);
}

.chat-search-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-search-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-search-user-info {
    flex: 1;
    min-width: 0;
}

.chat-search-user-info h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-search-user-info p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--gray-500);
}

.chat-empty-state svg {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.chat-empty-state h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-700);
    margin: 0 0 0.5rem 0;
}

.chat-empty-state p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0 0 1rem 0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.chat-conversations-page {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem;
}

.chat-page-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.chat-page-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--gray-500);
}

.chat-page-empty svg {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.chat-page-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-700);
    margin: 0 0 0.5rem 0;
}

.chat-page-empty p {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
}

.chat-page-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-page-header-bar {
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--gray-200);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-page-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.chat-page-header-actions {
    position: relative;
    display: flex;
    align-items: center;
}

.chat-menu-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    transition: all 0.2s;
    cursor: pointer;
}

.chat-menu-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
}

.chat-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.chat-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.chat-menu-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.chat-menu-item#chatMenuBlock:hover {
    background: var(--gray-100);
    color: var(--danger);
}

.chat-menu-item svg {
    flex-shrink: 0;
}

.chat-page-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--gray-50);
    min-height: 0;
}

.chat-page-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-top: 2px solid var(--gray-200);
    background: var(--white);
    flex-shrink: 0;
}

.chat-page-input-container input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.chat-page-input-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .chat-page-container {
        grid-template-columns: 1fr;
    }
    
    .chat-page-sidebar {
        display: none;
    }
}

/* Settings Page */
.settings-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.settings-sidebar {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.settings-nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.settings-nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.settings-nav-item svg {
    flex-shrink: 0;
}

.settings-content {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2.5rem;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.settings-section h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.settings-form {
    max-width: 600px;
}

.settings-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.settings-toggle-item:last-child {
    border-bottom: none;
}

.toggle-info {
    flex: 1;
}

.toggle-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.toggle-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin-left: 1rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.settings-danger-zone {
    background: var(--gray-50);
    border: 2px solid var(--danger);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.settings-danger-zone h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.settings-danger-zone p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border: 2px solid var(--danger);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Settings responsive */
@media (max-width: 968px) {
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .settings-sidebar {
        position: static;
    }
    
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .settings-nav::-webkit-scrollbar {
        display: none;
    }
    
    .settings-nav-item {
        white-space: nowrap;
        min-width: fit-content;
    }
}

@media (max-width: 768px) {
    .settings-content {
        padding: 1.5rem;
    }
    
    .settings-section h3 {
        font-size: 1.75rem;
    }
    
    .settings-toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .toggle-switch {
        margin-left: 0;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-700);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-logo h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Error Page (404) */
.error-page-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.error-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    color: var(--primary);
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -4px;
}

.error-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.error-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.error-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.error-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.error-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.error-links span {
    color: var(--gray-400);
}

/* Responsive Error Page */
@media (max-width: 768px) {
    .error-page-container {
        padding: 2rem 1rem;
        min-height: calc(100vh - 150px);
    }
    
    .error-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .error-title {
        font-size: 5rem;
        letter-spacing: -2px;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .error-links {
        flex-wrap: wrap;
        font-size: 0.875rem;
    }
}

/* Admin Dashboard */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -1px;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.dashboard-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-200);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9375rem;
    margin-bottom: -2px;
    position: relative;
}

.dashboard-tab:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.dashboard-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.dashboard-tab svg {
    width: 20px;
    height: 20px;
}

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
}

.dashboard-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-search {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: var(--white);
}

.dashboard-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dashboard-filter {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9375rem;
    background: var(--white);
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 150px;
}

.dashboard-filter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dashboard-table-container {
    overflow-x: auto;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.dashboard-table thead {
    background: var(--gray-50);
}

.dashboard-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.dashboard-table tbody tr:hover {
    background: var(--gray-50);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dashboard-pagination button {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.2s;
}

.dashboard-pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-50);
}

.dashboard-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dashboard-pagination button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.dashboard-section {
    margin-bottom: 2.5rem;
}

.dashboard-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

/* Responsive Admin Dashboard */
@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .dashboard-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .dashboard-tab {
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .dashboard-toolbar {
        flex-direction: column;
    }
    
    .dashboard-search,
    .dashboard-filter {
        width: 100%;
    }
    
    .dashboard-table-container {
        overflow-x: auto;
    }
    
    .dashboard-table {
        min-width: 600px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
}

/* Commitment Detail View */
.commitment-detail-view {
    width: 100%;
}

.commitment-detail-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.commitment-detail-header-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.commitment-detail-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.commitment-detail-avatar,
.commitment-detail-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.commitment-detail-avatar {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
}

.commitment-detail-user h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.commitment-detail-date {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.commitment-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.commitment-detail-description {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0 0 2rem 0;
}

.commitment-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.commitment-detail-reactions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.reactions-container {
    display: flex;
    gap: 0.5rem;
}

.emoji-btn {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.emoji-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.reactions-count {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
}

.commitment-detail-comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.commitment-detail-comments-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 1.5rem 0;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.comment-form .btn {
    width: auto;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.comment-avatar,
.comment-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-avatar {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.comment-header strong {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
}

.comment-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.comment-text {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}