/* ============================================
   SwapSweep — Consolidated Styles
   ============================================ */

/* ═══════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════ */
/* Modern Browse Page - Clean Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #7c3aed;
    --accent-light: #ede9fe;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f0f4ff;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

/* Force all nav items to be visible for uniform look */
#browse-link,
#messages-link,
#bookmarks-link,
#community-link,
#logout-link,
#user-display-nav,
.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--gray-900);
}

.nav-link.active {
    color: var(--gray-900);
}

.badge {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* Tier Badge Styles */
.tier-badge {
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: none !important;
    outline: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tier-badge.tier-free {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.4);
}

.tier-badge.tier-basic {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.tier-badge.tier-pro {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.tier-badge.tier-unlimited {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Featured & Verified Badges */
.featured-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

header {
    background: var(--gray-900);
    color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-800);
    display: none; /* Hide old header */
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

header p {
    color: var(--gray-400);
    font-size: 1rem;
}

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

section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

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

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-header p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin: 0;
}

/* Collapsible Content */
.collapse-toggle {
    background: transparent;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
}

.collapse-toggle:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.collapsible-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

h2 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Form Styles */
.skill-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

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

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

/* Form labels use the colorful badge classes defined below */

.skill-form {
    gap: 0.9rem;
}

.skill-form .form-grid {
    gap: 0.75rem;
}

/* Colorful Form Badges */
.badge-offer {
    background: #bfdbfe;
    color: #1e3a8a;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-want {
    background: #fde68a;
    color: #78350f;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category {
    background: #e5e7eb;
    color: #374151;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-level {
    background: #fbcfe8;
    color: #831843;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-level-beginner {
    background: #bfdbfe;
    color: #1e3a8a;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-level-expert {
    background: #fda4af;
    color: #881337;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-status {
    background: #6ee7b7;
    color: #064e3b;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-status-busy {
    background: #fef3c7;
    color: #92400e;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-status-unavailable {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Category-specific badge colors */
.badge-category-design {
    background: #ffe4e6;
    color: #be123c;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category-tech {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category-video {
    background: #ede9fe;
    color: #6b21a8;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category-audio {
    background: #fef9c3;
    color: #a16207;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category-writing {
    background: #d1fae5;
    color: #047857;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category-business {
    background: #e5e7eb;
    color: #374151;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category-lifestyle {
    background: #ecfccb;
    color: #4d7c0f;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-category-photography {
    background: #cffafe;
    color: #0e7490;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Location badge */
.badge-location {
    background: #e9d5ff;
    color: #581c87;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Username badge */
.badge-username {
    background: #111827;
    color: #f9fafb;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Description badge */
.badge-description {
    background: #fed7aa;
    color: #7c2d12;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Response time badge */
.badge-response {
    background: #a5f3fc;
    color: #164e63;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-response-fast {
    background: #d1fae5;
    color: #065f46;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-response-medium {
    background: #fef3c7;
    color: #92400e;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-response-slow {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

#skill-form {
    display: grid;
    gap: 1.25rem;
}

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

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gray-900);
    box-shadow: 0 0 0 3px var(--gray-100);
}

input[readonly] {
    background: var(--gray-100);
    cursor: not-allowed;
}

/* Skill select dropdowns */
select#skill-offer,
select#skill-want {
    max-height: 300px;
    overflow-y: auto;
    cursor: pointer;
}

select optgroup {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gray-900);
    padding: 0.5rem 0;
}

select option {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
}

button {
    background: var(--gray-900);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-block {
    width: 100%;
}

/* Button category colors */
.btn-category-design {
    background: #be123c !important;
}

.btn-category-design:hover {
    background: #9f1239 !important;
}

.btn-category-tech {
    background: #1e40af !important;
}

.btn-category-tech:hover {
    background: #1e3a8a !important;
}

.btn-category-video {
    background: #6b21a8 !important;
}

.btn-category-video:hover {
    background: #581c87 !important;
}

.btn-category-audio {
    background: #a16207 !important;
}

.btn-category-audio:hover {
    background: #854d0e !important;
}

.btn-category-writing {
    background: #047857 !important;
}

.btn-category-writing:hover {
    background: #065f46 !important;
}

.btn-category-business {
    background: #374151 !important;
}

.btn-category-business:hover {
    background: #1f2937 !important;
}

.btn-category-lifestyle {
    background: #4d7c0f !important;
}

.btn-category-lifestyle:hover {
    background: #3f6212 !important;
}

.btn-category-photography {
    background: #0e7490 !important;
}

.btn-category-photography:hover {
    background: #155e75 !important;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
}

.filter-bar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-search {
    margin-bottom: 1rem;
}

.filter-search input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: all 0.2s;
}

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

.filter-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.filter-section .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-section .filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-section .filter-group select,
.filter-section .filter-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--white);
    transition: all 0.2s;
    color: inherit;
}

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

.filter-active {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.filter-active:empty {
    display: none;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.625rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.filter-tag button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.filter-tag button:hover {
    opacity: 1;
}

.filter-clear-all {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    text-decoration: underline;
}

.filter-clear-all:hover {
    color: var(--primary);
}

/* ─── Review Modal ─── */
.review-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.review-modal-overlay.active {
    display: flex;
}

.review-modal {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.review-modal h2 {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
}

.review-modal-skill {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.star-btn:hover,
.star-btn.active {
    color: #f59e0b;
}

.review-modal textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    margin-bottom: 1rem;
}

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

.review-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.review-error {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    font-size: 0.875rem;
}

.review-btn {
    padding: 0.5rem 1rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.review-btn:hover {
    background: #fde68a;
    transform: translateY(-1px);
}

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

#results-count {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Skills List */
.skills-list {
    background: transparent;
    padding: 0;
    border: none;
}

#skills-container {
    display: grid;
    gap: 1rem;
}

.skill-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.skill-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Priority Skills - Tier-based highlighting */
.skill-card.priority-skill {
    position: relative;
    border-width: 2px;
}

.skill-card.priority-skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

/* Unlimited tier - Purple */
.skill-card:has(.tier-unlimited) {
    background: linear-gradient(135deg, #faf5ff 0%, white 100%);
    border-color: #8b5cf6;
}

.skill-card:has(.tier-unlimited)::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #6d28d9 100%);
}

.skill-card:has(.tier-unlimited):hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

/* Pro tier - Gold */
.skill-card:has(.tier-pro) {
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
    border-color: #fbbf24;
}

.skill-card:has(.tier-pro)::before {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.skill-card:has(.tier-pro):hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}

/* Basic tier - Blue */
.skill-card:has(.tier-basic) {
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
    border-color: #60a5fa;
}

.skill-card:has(.tier-basic)::before {
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
}

.skill-card:has(.tier-basic):hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.25);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.skill-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.skill-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.rating-badge {
    background: var(--gray-100);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.skill-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-badge.offers {
    background: #dbeafe;
    color: #1e40af;
}

.skill-badge.wants {
    background: #fef3c7;
    color: #92400e;
}

.skill-badge.category-badge {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Category-specific skill card badges */
.skill-badge.category-design {
    background: #ffe4e6;
    color: #be123c;
}

.skill-badge.category-tech {
    background: #dbeafe;
    color: #1e40af;
}

.skill-badge.category-video {
    background: #ede9fe;
    color: #6b21a8;
}

.skill-badge.category-audio {
    background: #fef9c3;
    color: #a16207;
}

.skill-badge.category-writing {
    background: #d1fae5;
    color: #047857;
}

.skill-badge.category-business {
    background: #e5e7eb;
    color: #374151;
}

.skill-badge.category-lifestyle {
    background: #ecfccb;
    color: #4d7c0f;
}

.skill-badge.category-photography {
    background: #cffafe;
    color: #0e7490;
}

.skill-badge.level-beginner {
    background: #d1fae5;
    color: #065f46;
}

.skill-badge.level-intermediate {
    background: #dbeafe;
    color: #1e40af;
}

.skill-badge.level-expert {
    background: #fce7f3;
    color: #9f1239;
}

.skill-badge.availability-available {
    background: #d1fae5;
    color: #065f46;
}

.skill-badge.availability-busy {
    background: #fef3c7;
    color: #92400e;
}

.skill-badge.availability-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.skill-description {
    color: var(--gray-700);
    font-size: 0.9375rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.skill-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--gray-200);
}

.skill-stats .stat {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.skill-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bookmark-btn {
    padding: 0.625rem 1rem;
    font-size: 1.25rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.bookmark-btn:hover {
    background: var(--gray-50);
    border-color: var(--blue-600);
}

.bookmark-btn.bookmarked {
    background: var(--blue-600);
    border-color: var(--blue-600);
}

.contact-btn,
.delete-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    flex: 1;
}

.contact-btn {
    background: var(--gray-900);
}

.contact-btn:hover {
    background: var(--gray-800);
}

.delete-btn {
    background: var(--gray-600);
}

.delete-btn:hover {
    background: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-600);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--gray-200);
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-link {
        padding: 1rem 1.5rem !important;
        width: 100%;
        display: block !important;
    }
    
    #user-display-nav .nav-link {
        justify-content: flex-start !important;
    }
    
    .form-row,
    .form-grid,
    .filter-row {
        grid-template-columns: 1fr;
    }
}
    
    header h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }

/* ─── Notification Bell & Dropdown ─── */
.notif-wrapper {
    position: relative;
}

.notif-bell {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    line-height: 1;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.notif-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 340px;
    max-height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.notif-dropdown.open {
    display: flex;
    flex-direction: column;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
}

.notif-mark-all {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.notif-mark-all:hover {
    text-decoration: underline;
}

.notif-list {
    overflow-y: auto;
    max-height: 360px;
}

.notif-empty {
    text-align: center;
    color: #94a3b8;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item.notif-unread {
    background: #eef2ff;
}

.notif-item.notif-unread:hover {
    background: #e0e7ff;
}

.notif-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-dismiss {
    flex-shrink: 0;
    align-self: center;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.notif-item:hover .notif-dismiss {
    opacity: 1;
}

.notif-dismiss:hover {
    color: #ef4444;
    background: #fee2e2;
}

.notif-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e293b;
}

.notif-body {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 0.7rem;
    color: #94a3b8;
}

@media (max-width: 480px) {
    .notif-dropdown {
        width: 290px;
        right: -60px;
    }
}

/* ─── Skill Card Avatar (browse page) ─── */
.skill-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.skill-card-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-600);
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════ */
/* Old nav links styles - keep for backward compatibility */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.btn-outline {
    border: 1px solid var(--gray-300) !important;
    background: transparent !important;
    color: var(--gray-900) !important;
}

.btn-outline:hover {
    border-color: var(--gray-400) !important;
    background: var(--gray-100) !important;
}

.btn-primary {
    background: var(--gray-900) !important;
    color: var(--white) !important;
    border: 1px solid var(--gray-900) !important;
}

.btn-primary:hover {
    background: var(--gray-800) !important;
}

/* Hero Section */
.hero {
    width: 100%;
    margin: 0;
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-radius: 0;
    box-shadow: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.gradient-text {
    color: white;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-large.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-large.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-large.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

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

/* Stats Section */
.stats-section {
    background: var(--gray-100);
    padding: 4rem 0;
}

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

.stat-item {
    padding: 1rem;
}

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

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

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

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

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

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

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

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

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

/* Benefits Section */
.benefits-section {
    background: var(--gray-100);
    padding: 5rem 0;
}

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

.benefit-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

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

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: white;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

/* How It Works */
.how-it-works {
    background: var(--gray-100);
    padding: 5rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

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

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: white;
}

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

.category-card {
    background: var(--gray-100);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.category-card:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-large {
    background: white;
    color: var(--gray-900);
}

.cta-section .btn-large:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Features */
.features {
    background: var(--gray-900);
    color: var(--white);
    padding: 5rem 2rem;
}

.features .section-title {
    color: var(--white);
}

.features .section-subtitle {
    color: var(--gray-400);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

/* CTA */
.cta {
    background: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--gray-100);
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.footer-brand p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--gray-600);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--gray-900);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        display: block;
    }
    
    #user-display-nav .nav-link {
        justify-content: flex-start;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps,
    .categories-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feature-card,
    .step,
    .category-card {
        padding: 1.5rem;
    }
}

/* ═══════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════ */
.user-info-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 8px;
}

.user-name-display {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.9rem;
}

.user-tier-badge {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Old nav styles - hide */
.top-nav {
    display: none;
}

.user-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.user-menu span {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
}


.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 2rem 2rem;
    min-height: calc(100vh - 140px);
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    padding: 2rem 0;
    height: fit-content;
}

.user-profile {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.avatar {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.user-profile h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.25rem;
}

.user-profile p {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
}

.sidebar-nav {
    padding: 0 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-item.active {
    background: var(--gray-900);
    color: var(--white);
}

.nav-item .icon {
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

/* Main Content */
.main-content {
    padding: 2rem;
}

/* Stats Grid */
.dashboard-layout .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-layout .stat-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dashboard-layout .stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

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

.stat-info {
    flex: 1;
}

.dashboard-layout .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dashboard-layout .stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

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

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

/* Form Styles */
.skill-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

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

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

input[type="text"],
select,
textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gray-900);
    box-shadow: 0 0 0 3px var(--gray-100);
}

/* Skill select dropdowns */
select#skill-offer,
select#skill-want {
    max-height: 300px;
    overflow-y: auto;
    cursor: pointer;
}

select optgroup {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gray-900);
    padding: 0.5rem 0;
}

select option {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
}

select:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

textarea {
    resize: vertical;
}

/* Buttons */
.btn-primary {
    background: var(--gray-900);
    color: var(--white);
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: var(--gray-600);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Skill Cards */
.skill-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.skill-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.skill-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.rating-badge {
    background: var(--gray-100);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skill-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.skill-badge.offers {
    background: #dbeafe;
    color: #1e40af;
}

.skill-badge.wants {
    background: #fef3c7;
    color: #92400e;
}

.skill-badge.category-badge {
    background: var(--gray-100);
    color: var(--gray-700);
}

.skill-badge.level-beginner {
    background: #d1fae5;
    color: #065f46;
}

.skill-badge.level-intermediate {
    background: #dbeafe;
    color: #1e40af;
}

.skill-badge.level-expert {
    background: #fce7f3;
    color: #9f1239;
}

.skill-badge.availability-available {
    background: #d1fae5;
    color: #065f46;
}

.skill-badge.availability-busy {
    background: #fef3c7;
    color: #92400e;
}

.skill-badge.availability-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.skill-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin: 1rem 0;
    line-height: 1.5;
}

.skill-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--gray-200);
}

.skill-stats .stat {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-600);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--gray-200);
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-link {
        padding: 1rem 1.5rem !important;
        width: 100%;
        display: block !important;
    }
    
    #user-display-nav .nav-link {
        justify-content: flex-start !important;
    }
    
    .dashboard-layout {
        margin: 1rem auto;
        padding: 0 1rem 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
    
    .dashboard-layout {
        padding: 0 0.75rem 0.75rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .card-header h2 {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .skill-card {
        padding: 1.25rem;
    }
    
    .skill-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    input[type="text"],
    select,
    textarea {
        font-size: 1rem; /* Prevents zoom on iOS */
    }
}

/* ─── Match Cards ─── */
.match-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.match-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.match-card.match-mutual {
    border-left: 4px solid #10b981;
}

.match-card.match-they-offer {
    border-left: 4px solid #2563eb;
}

.match-card.match-they-want {
    border-left: 4px solid #f59e0b;
}

.match-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.match-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.match-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.match-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.match-username {
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    font-size: 0.9375rem;
}

.match-username:hover {
    text-decoration: underline;
}

.match-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.match-rating {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.match-msg-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

/* ─── Skill Card Avatar (browse page) ─── */
.skill-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.skill-card-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-600);
    flex-shrink: 0;
}

/* ─── Email Verification Banner ─── */
.verify-email-banner {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    border: 1px solid #fde68a;
}

.verify-email-banner a {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* ═══════════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════════ */
.messages-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    height: calc(100vh - 140px);
}

/* Conversations Panel */
.conversations-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.new-conversation-btn {
    background: transparent;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
}

.new-conversation-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

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

.conversation-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.conversation-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 3px solid var(--primary);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.conversation-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.conversation-preview {
    font-size: 0.9rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item.unread .conversation-preview {
    font-weight: 600;
    color: var(--gray-900);
}

.unread-indicator {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Chat Panel */
.chat-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-panel .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    padding: 3rem;
    text-align: center;
}

.chat-panel .empty-state svg {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

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

.chat-panel .empty-state p {
    color: var(--gray-500);
}

.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.chat-user-info h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.username {
    font-size: 0.9rem;
    color: var(--gray-500);
}

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

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 70%;
    animation: messageSlideIn 0.3s ease-out;
}

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

.message.sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message.sent .message-content {
    align-items: flex-end;
}

.message.sent .message-header {
    text-align: right;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.message.sent .message-avatar {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message-bubble {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border-top-left-radius: 4px;
    word-wrap: break-word;
    color: var(--gray-900);
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0 0.5rem;
}

/* Message Input */
.message-input-container {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    background: white;
}

#message-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    max-height: 120px;
    transition: border-color 0.2s;
}

#message-input:focus {
    outline: none;
    border-color: var(--primary);
}

.send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.send-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

/* Scrollbar Styling */
.conversations-list::-webkit-scrollbar,
.messages-list::-webkit-scrollbar {
    width: 8px;
}

.conversations-list::-webkit-scrollbar-track,
.messages-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.conversations-list::-webkit-scrollbar-thumb,
.messages-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.conversations-list::-webkit-scrollbar-thumb:hover,
.messages-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .messages-container {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 968px) {
    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .conversations-panel {
        max-height: 400px;
    }
    
    .chat-panel {
        min-height: 500px;
    }
    
    .message {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--gray-200);
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-link {
        padding: 1rem 1.5rem !important;
        width: 100%;
        display: block !important;
    }
    
    #user-display-nav .nav-link {
        justify-content: flex-start !important;
    }
    
    .messages-container {
        padding: 0 1rem 1rem;
        margin: 1rem auto;
    }
    
    .panel-header h2 {
        font-size: 1.25rem;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .messages-list {
        padding: 1rem;
    }
    
    .message-input-container {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        gap: 0.75rem;
        font-size: 0.875rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .messages-container {
        padding: 0 0.75rem 0.75rem;
        margin: 0.75rem auto;
    }
    
    .message {
        max-width: 90%;
    }
    
    .conversation-item {
        padding: 0.875rem 1rem;
    }
    
    .conversation-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .panel-header {
        padding: 1rem;
    }
    
    .new-conversation-btn {
        width: 36px;
        height: 36px;
    }
    
    #message-input {
        font-size: 1rem; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .conversations-panel {
        max-height: 300px;
    }
    
    .chat-panel {
        min-height: 400px;
    }
    
    .message-bubble {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .chat-user-info h3 {
        font-size: 1.125rem;
    }
}

/* Message Actions (Edit/Delete) */
.message-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.message:hover .message-actions {
    opacity: 1;
}

.message-action-btn {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.message-action-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.edit-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.delete-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.edited-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-style: italic;
    margin-left: 0.4rem;
}

/* Message Edit Interface */
.message-edit-container {
    margin-top: 0.5rem;
}

.message-edit-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    background: white;
}

.message-edit-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.message-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.message-edit-save,
.message-edit-cancel {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.message-edit-save {
    background: var(--primary);
    color: white;
}

.message-edit-save:hover {
    background: var(--primary-dark);
}

.message-edit-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
}

.message-edit-cancel:hover {
    background: var(--gray-300);
}


/* ═══════════════════════════════════════════
   COMMUNITY
   ═══════════════════════════════════════════ */
/* Community-specific styles */
.community-header {
    text-align: center;
    margin: 2rem 0 2rem;
}

/* Recently Posted Carousel */
.recently-posted-carousel {
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    overflow: hidden;
}

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

.carousel-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--gray-400);
}

.carousel-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
}

.carousel-item {
    flex: 0 0 100%;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.carousel-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.carousel-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.carousel-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.carousel-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: -12px;
}

.carousel-next {
    right: -12px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
    
    .carousel-prev {
        left: -8px;
    }
    
    .carousel-next {
        right: -8px;
    }
    
    .carousel-item {
        padding: 1.25rem;
    }
    
    .carousel-item h3 {
        font-size: 0.9375rem;
    }
    
    .carousel-item-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
}

.community-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

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

.create-topic-section {
    margin-bottom: 2rem;
}

.collapse-toggle {
    background: transparent;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
}

.collapse-toggle:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.topic-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.community-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

/* Featured Posts Section */
#featured-posts-section {
    margin-bottom: 2rem;
}

.featured-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.featured-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

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

.featured-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.featured-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.featured-card.featured-unlimited::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #6d28d9 100%);
}

.featured-card.featured-unlimited {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, white 100%);
}

.featured-card.featured-pro::before {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.featured-card.featured-pro {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.featured-card.featured-basic::before {
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
}

.featured-card.featured-basic {
    border-color: #60a5fa;
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
}

.featured-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.featured-time {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
}

.featured-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.featured-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.featured-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .featured-posts-container {
        grid-template-columns: 1fr;
    }
}

/* Pinned Posts Section */
#pinned-posts-section {
    margin-bottom: 2rem;
}

.pinned-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.pinned-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

#pinned-posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Community Layout */
.community-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Priority Sidebar */
.priority-sidebar {
    position: sticky;
    top: 80px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.sidebar-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

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

#priority-posts-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Priority Sidebar Item */
.priority-sidebar-item {
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
    border: 1px solid var(--primary);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.priority-sidebar-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-dark);
}

.priority-sidebar-item.unlimited {
    background: linear-gradient(135deg, #f5f3ff 0%, white 100%);
    border-color: #8b5cf6;
    border-left-color: #8b5cf6;
}

.priority-sidebar-item.unlimited:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.priority-sidebar-item.pro {
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
    border-color: #fbbf24;
    border-left-color: #fbbf24;
}

.priority-sidebar-item.pro:hover {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

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

.priority-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.priority-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.priority-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Main Topics Area */
.main-topics {
    min-width: 0;
}

#topics-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .community-layout {
        grid-template-columns: 1fr;
    }
    
    .priority-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        order: -1;
    }
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.filter-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

/* Topic Card */
.topic-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

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

/* Tier-based Priority Styling */
.priority-unlimited {
    border: 2px solid #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff 0%, white 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.priority-unlimited:hover {
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

.priority-pro {
    border: 2px solid #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.priority-pro:hover {
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.3);
}

.priority-basic {
    border: 2px solid #60a5fa;
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

.priority-basic:hover {
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.3);
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.priority-badge.priority-unlimited {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.priority-badge.priority-pro {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.priority-badge.priority-basic {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 2px 4px rgba(96, 165, 250, 0.3);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.topic-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    cursor: pointer;
}

.topic-header h3:hover {
    color: var(--gray-700);
}

.topic-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.topic-content-preview {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.topic-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

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

.topic-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #374151;
    min-height: 36px;
}

.topic-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.topic-btn.liked {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e40af;
}

/* Topic Detail Modal */
.topic-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.topic-detail-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.topic-detail-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    margin: 2rem auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.topic-detail-header {
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.topic-detail-body {
    padding: 2rem;
}

.topic-detail-close {
    float: right;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
}

.topic-detail-close:hover {
    color: var(--gray-900);
}

.topic-full-content {
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

/* Replies Section */
.replies-section {
    border-top: 2px solid var(--gray-200);
    padding-top: 2rem;
}

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

.reply-card {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--gray-300);
}

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

.reply-author {
    font-weight: 600;
    color: var(--gray-900);
}

.reply-time {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-left: 0.5rem;
}

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

.reply-actions .edit-btn,
.reply-actions .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.reply-actions .edit-btn:hover {
    background-color: var(--gray-200);
}

.reply-actions .delete-btn:hover {
    background-color: #fee;
}

.reply-content {
    color: var(--gray-700);
    line-height: 1.6;
    white-space: pre-wrap;
}

.reply-edit-form {
    margin-top: 0.5rem;
}

.reply-edit-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
}

.btn-secondary {
    background: var(--gray-500);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

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

.reply-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Category badges */
.category-general {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.category-tips {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.category-success {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.category-questions {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.category-features {
    background: #ede9fe;
    color: #6b21a8;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.category-events {
    background: #ffe4e6;
    color: #be123c;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .community-header h1 {
        font-size: 2rem;
    }

    .community-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        flex: 1;
    }

    .topic-detail-modal.active {
        padding: 0;
    }

    .topic-detail-content {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .topic-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* ═══════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════ */
/* Profile Page Styles */

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

/* Profile Header */
.profile-header {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.profile-username {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-bio {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

.profile-actions {
    flex-shrink: 0;
}

.btn-edit-profile {
    padding: 0.6rem 1.25rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-profile:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.btn-dashboard {
    padding: 0.6rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-dashboard:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-message-user {
    padding: 0.6rem 1.25rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-message-user:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Stats Row */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.stat-box .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Skills List */
.profile-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.profile-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.profile-skill {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.profile-skill:last-child {
    border-bottom: none;
}

.profile-skill-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.profile-skill-info p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.profile-skill-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-skill-meta span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

.meta-category {
    background: #dbeafe;
    color: #1e40af;
}

.meta-level {
    background: #d1fae5;
    color: #065f46;
}

.meta-availability {
    background: #fef3c7;
    color: #92400e;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

/* Edit Profile Modal */
.edit-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.edit-modal-overlay.active {
    display: flex;
}

.edit-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.edit-modal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.edit-modal .form-group {
    margin-bottom: 1.25rem;
}

.edit-modal label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}

.edit-modal input,
.edit-modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

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

.edit-modal input:focus,
.edit-modal textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.edit-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-cancel {
    padding: 0.6rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.btn-save {
    padding: 0.6rem 1.25rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.btn-save:hover {
    background: #1e40af;
}

/* Responsive */
@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-meta {
        justify-content: center;
    }

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

    .profile-skill {
        flex-direction: column;
    }
}

/* ─── Reviews ─── */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviews-header h2 {
    margin: 0;
}

.reviews-avg {
    font-size: 0.9375rem;
    color: #f59e0b;
    font-weight: 600;
}

.review-card {
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #f8fafc;
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-author-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9375rem;
}

.review-author-link:hover {
    text-decoration: underline;
}

.review-date {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.review-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 1px;
}

.review-skill {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    font-style: italic;
}

.review-text {
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
    margin: 0.25rem 0 0;
}

/* ─── Avatar Upload ─── */
.avatar-upload-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
}

.btn-upload {
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upload:hover {
    background: #1d4ed8;
}

.upload-hint {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ═══════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════ */
/* Admin Panel Styles - Matching Landing Page */

/* Hero Section */
.admin-hero {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

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

.admin-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.admin-hero .hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    color: var(--gray-300);
}

/* Section Titles */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

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

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.2s;
}

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

.stat-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
}

/* Tier Breakdown */
.tier-breakdown {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    margin-top: 1.5rem;
}

.tier-breakdown h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

#tier-chart {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tier-item {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    min-width: 110px;
    text-align: center;
}

.tier-item.tier-free {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-color: #0f766e;
    color: #ffffff;
}

.tier-item.tier-basic {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    border-color: #1d4ed8;
    color: #ffffff;
}

.tier-item.tier-pro {
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    border-color: #b45309;
    color: #ffffff;
}

.tier-item.tier-unlimited {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #5b21b6;
    color: #ffffff;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.tab-btn.active {
    background: var(--gray-900);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

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

thead {
    background: var(--gray-50);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 0.9375rem;
}

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

tbody tr:last-child td {
    border-bottom: none;
}

/* Tier Badges */
.tier-badge {
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tier-free {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.4);
}

.tier-basic {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.tier-pro {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.tier-unlimited {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Action Buttons */
.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

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

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

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

.admin-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Tier Select */
select.tier-select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    background: white;
    color: var(--gray-700);
    font-weight: 500;
}

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

/* Responsive */
@media (max-width: 768px) {
    .admin-hero {
        padding: 3rem 1.5rem;
    }
    
    .admin-hero .hero-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .table-container {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* ═══════════════════════════════════════════
   ANIMATIONS & ENHANCEMENTS
   ═══════════════════════════════════════════ */
/* Modern UI Enhancements - Add glassmorphism, animations, and polish */

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

/* Enhanced card shadows and hover effects */
.skill-card,
.topic-card,
.stat-card,
.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover,
.topic-card:hover,
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Button enhancements with ripple effect */
.btn-primary,
.btn-secondary,
.topic-btn,
.action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

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

/* Glassmorphism for navbar and cards */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

body {
    padding-top: 73px;
}

/* Enhanced input focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Smooth page transitions */
body {
    animation: fadeIn 0.3s ease-in;
}

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

/* Loading skeleton animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #f8f8f8 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}

/* Badge and tier badge enhancements */
.tier-badge,
.priority-badge,
.badge {
    animation: slideIn 0.3s ease;
    transition: transform 0.2s ease;
}

.tier-badge:hover,
.priority-badge:hover {
    transform: scale(1.05);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced dropdown/select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Stat card number animation */
.stat-number {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

/* Message bubble animations */
.message {
    animation: messageSlide 0.3s ease;
}

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

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Pulse animation for notifications */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.badge.pulse {
    animation: pulse 2s infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced focus ring */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Table row hover effect */
tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: var(--gray-50);
    transform: scale(1.01);
}

/* Enhanced modal/dialog backdrop */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

/* Tooltip styling */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--gray-900);
    color: white;
    font-size: 0.875rem;
    border-radius: 6px;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.2s ease;
    z-index: 1000;
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

/* Responsive enhancement */
@media (max-width: 768px) {
    .skill-card:hover,
    .topic-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .fab,
    .action-btn,
    .topic-actions {
        display: none;
    }
}
