/* HowRichAm - Premium Luxury Styles */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base - Premium Typography */
html { 
    line-height: 1.6; 
    -webkit-text-size-adjust: 100%; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body { 
    margin: 0; 
    line-height: inherit; 
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f5 100%);
    min-height: 100vh;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button { cursor: pointer; background: transparent; border: none; }
a { color: inherit; text-decoration: none; }

/* Premium Color Palette - Black & Gold Theme */
:root {
    /* Primary - Sleek Black */
    --primary-50: #fafafa; --primary-100: #f4f4f5; --primary-200: #e4e4e7;
    --primary-300: #d4d4d8; --primary-400: #a1a1aa; --primary-500: #71717a;
    --primary-600: #52525b; --primary-700: #3f3f46; --primary-800: #27272a;
    --primary-900: #18181b; --primary-950: #09090b;
    
    /* Accent - Luxury Gold */
    --accent-50: #fffbeb; --accent-100: #fef3c7; --accent-200: #fde68a;
    --accent-300: #fcd34d; --accent-400: #fbbf24; --accent-500: #f59e0b;
    --accent-600: #d97706; --accent-700: #b45309;
    
    /* Purple kept for gradients */
    --purple-50: #faf5ff; --purple-100: #f3e8ff; --purple-200: #e9d5ff; --purple-300: #d8b4fe;
    --purple-400: #c084fc; --purple-500: #a855f7; --purple-600: #9333ea; --purple-700: #7c3aed;
    
    /* Rich Green - Money/Success */
    --green-50: #ecfdf5; --green-100: #d1fae5; --green-200: #a7f3d0; --green-300: #6ee7b7;
    --green-400: #34d399; --green-500: #10b981; --green-600: #059669; --green-700: #047857;
    
    /* Poor Red - Elegant */
    --red-50: #fef2f2; --red-100: #fee2e2; --red-200: #fecaca; --red-300: #fca5a5;
    --red-400: #f87171; --red-500: #ef4444; --red-600: #dc2626; --red-700: #b91c1c;
    
    /* Neutral - Sophisticated Grays */
    --gray-50: #fafafa; --gray-100: #f4f4f5; --gray-200: #e4e4e7; --gray-300: #d4d4d8;
    --gray-400: #a1a1aa; --gray-500: #71717a; --gray-600: #52525b; --gray-700: #3f3f46;
    --gray-800: #27272a; --gray-900: #18181b;
    
    /* Gold Accents */
    --gold-300: #fcd34d; --gold-400: #fbbf24; --gold-500: #f59e0b; --gold-600: #d97706;
    --yellow-400: #facc15; --yellow-500: #eab308; --yellow-600: #ca8a04;
    --blue-400: #60a5fa; --blue-500: #3b82f6; --blue-600: #2563eb;
    --amber-600: #d97706; --amber-800: #92400e;
    --cyan-300: #67e8f9; --cyan-500: #06b6d4;
    --pink-500: #ec4899;
    --orange-500: #f97316;
}

/* Layout */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }

/* Spacing */
.p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; } .p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-3 { padding-top: 0.75rem; } .pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; } .pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; } .pb-8 { padding-bottom: 2rem; }
.pb-20 { padding-bottom: 5rem; }
.m-0 { margin: 0; }
.m-2 { margin: 0.5rem; }
.-m-2 { margin: -0.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.-mx-2 { margin-left: -0.5rem; margin-right: -0.5rem; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.-mt-4 { margin-top: -1rem; } .-mt-8 { margin-top: -2rem; }
.-mt-16 { margin-top: -4rem; } .-mt-20 { margin-top: -5rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; } .ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-1 { margin-right: 0.25rem; } .mr-2 { margin-right: 0.5rem; }

/* Width & Height */
.w-4 { width: 1rem; } .w-5 { width: 1.25rem; } .w-6 { width: 1.5rem; }
.w-8 { width: 2rem; } .w-9 { width: 2.25rem; } .w-10 { width: 2.5rem; }
.w-12 { width: 3rem; } .w-16 { width: 4rem; } .w-20 { width: 5rem; }
.w-24 { width: 6rem; } .w-28 { width: 7rem; } .w-32 { width: 8rem; }
.w-40 { width: 10rem; } .w-48 { width: 12rem; } .w-64 { width: 16rem; }
.w-80 { width: 20rem; }
.w-full { width: 100%; }
.h-2 { height: 0.5rem; } .h-3 { height: 0.75rem; }
.h-4 { height: 1rem; } .h-5 { height: 1.25rem; } .h-6 { height: 1.5rem; }
.h-8 { height: 2rem; } .h-9 { height: 2.25rem; } .h-10 { height: 2.5rem; }
.h-12 { height: 3rem; } .h-16 { height: 4rem; } .h-20 { height: 5rem; }
.h-24 { height: 6rem; } .h-28 { height: 7rem; } .h-32 { height: 8rem; }
.h-40 { height: 10rem; } .h-48 { height: 12rem; } .h-64 { height: 16rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[80vh\] { min-height: 80vh; }
.min-w-0 { min-width: 0; }
.max-h-64 { max-height: 16rem; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; } .top-2 { top: 0.5rem; } .top-4 { top: 1rem; }
.top-24 { top: 6rem; }
.-top-1 { top: -0.25rem; } .-top-2 { top: -0.5rem; } .-top-6 { top: -1.5rem; }
.right-0 { right: 0; } .right-2 { right: 0.5rem; } .right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.-right-1 { right: -0.25rem; }
.bottom-0 { bottom: 0; } .bottom-2 { bottom: 0.5rem; } .bottom-3 { bottom: 0.75rem; }
.bottom-4 { bottom: 1rem; }
.-bottom-2 { bottom: -0.5rem; }
.left-0 { left: 0; } .left-3 { left: 0.75rem; } .left-4 { left: 1rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.border-purple-100 { border-color: var(--purple-100); }
.border-purple-200 { border-color: var(--purple-200); }
.border-purple-500 { border-color: var(--purple-500); }
.border-green-200 { border-color: var(--green-200); }
.border-red-100 { border-color: var(--red-100); }
.border-red-200 { border-color: var(--red-200); }
.border-white { border-color: white; }
.border-yellow-400 { border-color: var(--yellow-400); }
.border-dashed { border-style: dashed; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }

/* Background */
.bg-white { background-color: white; }
.bg-black { background-color: black; }
.bg-transparent { background-color: transparent; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-300 { background-color: var(--gray-300); }
.bg-gray-500 { background-color: var(--gray-500); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-purple-50 { background-color: var(--purple-50); }
.bg-purple-100 { background-color: var(--purple-100); }
.bg-purple-600 { background-color: var(--purple-600); }
.bg-green-50 { background-color: var(--green-50); }
.bg-green-100 { background-color: var(--green-100); }
.bg-green-500 { background-color: var(--green-500); }
.bg-red-50 { background-color: var(--red-50); }
.bg-red-100 { background-color: var(--red-100); }
.bg-red-500 { background-color: var(--red-500); }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-blue-400 { background-color: var(--blue-400); }
.bg-blue-600 { background-color: var(--blue-600); }
.bg-black\/30 { background-color: rgba(0,0,0,0.3); }
.bg-black\/50 { background-color: rgba(0,0,0,0.5); }
.bg-black\/60 { background-color: rgba(0,0,0,0.6); }
.bg-white\/20 { background-color: rgba(255,255,255,0.2); }

/* Text */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: white; }
.text-black { color: black; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-purple-100 { color: var(--purple-100); }
.text-purple-200 { color: var(--purple-200); }
.text-purple-400 { color: var(--purple-400); }
.text-purple-500 { color: var(--purple-500); }
.text-purple-600 { color: var(--purple-600); }
.text-green-300 { color: var(--green-300); }
.text-green-500 { color: var(--green-500); }
.text-green-600 { color: var(--green-600); }
.text-green-700 { color: var(--green-700); }
.text-red-300 { color: var(--red-300); }
.text-red-500 { color: var(--red-500); }
.text-red-600 { color: var(--red-600); }
.text-red-700 { color: var(--red-700); }
.text-yellow-500 { color: var(--yellow-500); }
.text-yellow-700 { color: #a16207; }
.text-yellow-900 { color: #713f12; }
.text-blue-500 { color: var(--blue-500); }
.text-orange-500 { color: var(--orange-500); }
.text-amber-500 { color: #f59e0b; }
.bg-amber-500 { background-color: #f59e0b; }
.border-amber-500 { border-color: #f59e0b; }
.hover\:text-gray-900:hover { color: #18181b; }
.hover\:bg-gray-50:hover { background-color: #fafafa; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Transform */
.scale-110 { transform: scale(1.1); }
.scale-95 { transform: scale(0.95); }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Resize */
.resize-none { resize: none; }

/* Visibility */
.invisible { visibility: hidden; }
.visible { visibility: visible; }

/* Divide */
.divide-y > * + * { border-top-width: 1px; border-color: var(--gray-200); }

/* Ring */
.ring-2 { box-shadow: 0 0 0 2px; }
.ring-4 { box-shadow: 0 0 0 4px; }
.ring-green-300 { --tw-ring-color: var(--green-300); box-shadow: 0 0 0 2px var(--green-300); }
.ring-green-400 { --tw-ring-color: var(--green-400); box-shadow: 0 0 0 2px var(--green-400); }
.ring-red-300 { --tw-ring-color: var(--red-300); box-shadow: 0 0 0 2px var(--red-300); }
.ring-red-400 { --tw-ring-color: var(--red-400); box-shadow: 0 0 0 2px var(--red-400); }

/* Focus */
.focus\:ring-2:focus { box-shadow: 0 0 0 2px; }
.focus\:ring-purple-500:focus { box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.4); }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4); }
.focus\:border-transparent:focus { border-color: transparent; }
.focus\:outline-none:focus { outline: none; }

/* Hover */
.hover\:bg-gray-50:hover { background-color: var(--gray-50); }
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-200:hover { background-color: var(--gray-200); }
.hover\:bg-purple-50:hover { background-color: var(--purple-50); }
.hover\:bg-purple-200:hover { background-color: var(--purple-200); }
.hover\:bg-green-100:hover { background-color: var(--green-100); }
.hover\:bg-green-200:hover { background-color: var(--green-200); }
.hover\:bg-green-600:hover { background-color: var(--green-600); }
.hover\:bg-red-50:hover { background-color: var(--red-50); }
.hover\:bg-red-100:hover { background-color: var(--red-100); }
.hover\:bg-red-200:hover { background-color: var(--red-200); }
.hover\:bg-red-600:hover { background-color: var(--red-600); }
.hover\:bg-yellow-200:hover { background-color: #fef08a; }
.hover\:bg-blue-500:hover { background-color: var(--blue-500); }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-700:hover { background-color: var(--gray-700); }
.hover\:text-purple-600:hover { color: var(--purple-600); }
.hover\:text-gray-700:hover { color: var(--gray-700); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:border-purple-300:hover { border-color: var(--purple-300); }
.hover\:border-purple-400:hover { border-color: var(--purple-400); }
.hover\:border-purple-500:hover { border-color: var(--purple-500); }

/* Group Hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:bg-black\/30 { background-color: rgba(0,0,0,0.3); }

/* Peer */
.peer:checked ~ .peer-checked\:border-purple-500 { border-color: var(--purple-500); }
.peer:checked ~ .peer-checked\:bg-purple-50 { background-color: var(--purple-50); }

/* Custom Classes - Black & Gold Luxury */
.gradient-bg { 
    background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #3f3f46 100%);
}
.gradient-bg-gold { 
    background: linear-gradient(135deg, #18181b 0%, #27272a 40%, #f59e0b 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.rich-gradient { 
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%); 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.poor-gradient { 
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%); 
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.gold-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.black-gold-gradient {
    background: linear-gradient(135deg, #18181b 0%, #f59e0b 100%);
}
.card-hover { 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid rgba(0,0,0,0.05);
}
.card-hover:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(245, 158, 11, 0.1); 
}
.flash-message { animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1), fadeOut 0.4s ease 2.6s forwards; }
@keyframes slideIn { from { transform: translateX(100%) scale(0.8); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(100%) scale(0.8); } }
.vote-btn { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    position: relative;
    overflow: hidden;
}
.vote-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.vote-btn:hover::before { width: 300px; height: 300px; }
.vote-btn:active { transform: scale(0.92); }
.shimmer { background: linear-gradient(90deg, #f4f4f5 25%, #e4e4e7 50%, #f4f4f5 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.badge-shine { position: relative; overflow: hidden; }
.badge-shine::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%); animation: shine 3s infinite; }
@keyframes shine { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.backdrop-blur-sm { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Premium Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Luxury Text Styles */
.text-gradient {
    background: linear-gradient(135deg, #18181b 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Button Styles */
.btn-premium {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    color: #f59e0b;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f59e0b;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    background: #f59e0b;
    color: #18181b;
}

/* Premium Input Styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
}

/* Floating Animation */
.float {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pulse Glow */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 40px rgba(245, 158, 11, 0.4); }
}

/* Badge Gradients */
.from-amber-600 { --tw-gradient-from: #d97706; }
.to-amber-800 { --tw-gradient-to: #92400e; }
.from-gray-300 { --tw-gradient-from: #d1d5db; }
.to-gray-500 { --tw-gradient-to: #6b7280; }
.from-yellow-400 { --tw-gradient-from: #facc15; }
.to-yellow-600 { --tw-gradient-to: #ca8a04; }
.from-cyan-300 { --tw-gradient-from: #67e8f9; }
.to-cyan-500 { --tw-gradient-to: #06b6d4; }
.from-blue-400 { --tw-gradient-from: #60a5fa; }
.to-purple-500 { --tw-gradient-to: #a855f7; }
.from-purple-600 { --tw-gradient-from: #9333ea; }
.to-pink-500 { --tw-gradient-to: #ec4899; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-from), var(--tw-gradient-to)); }

/* Responsive - md (768px+) */
@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:items-end { align-items: flex-end; }
    .md\:justify-between { justify-content: space-between; }
    .md\:space-x-6 > * + * { margin-left: 1.5rem; }
    .md\:mt-0 { margin-top: 0; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:p-8 { padding: 2rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:pb-8 { padding-bottom: 2rem; }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:h-48 { height: 12rem; }
    .md\:w-40 { width: 10rem; }
    .md\:-mt-20 { margin-top: -5rem; }
}

/* Responsive - lg (1024px+) */
@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:flex-row { flex-direction: row; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:w-80 { width: 20rem; }
}

/* Small screens */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* Drop Shadow */
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgba(0,0,0,0.04)) drop-shadow(0 4px 3px rgba(0,0,0,0.1)); }

/* Leading */
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Transition All */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.hover\:scale-105:hover { transform: scale(1.05); }

/* White with opacity */
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/20 { background-color: rgba(255,255,255,0.2); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.text-white\/80 { color: rgba(255,255,255,0.8); }

/* Prose (for content pages) */
.prose { max-width: 65ch; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose h2 { margin-top: 2em; margin-bottom: 1em; font-weight: 700; }
.prose ul, .prose ol { margin-top: 1.25em; margin-bottom: 1.25em; padding-left: 1.625em; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }

/* ============================================
   MOBILE-FIRST RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Safe Area for Mobile (notch support) */
@supports (padding: max(0px)) {
    .safe-bottom { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
    .safe-top { padding-top: max(0px, env(safe-area-inset-top)); }
}

/* Touch-friendly tap targets */
.touch-target { min-height: 44px; min-width: 44px; }

/* Mobile-optimized spacing */
.mobile-padding { padding-left: 1rem; padding-right: 1rem; }

/* Prevent horizontal scroll */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Better text sizing for mobile */
@media (max-width: 640px) {
    html { font-size: 15px; }
    h1 { font-size: 1.75rem !important; line-height: 1.2; }
    h2 { font-size: 1.35rem !important; }
    h3 { font-size: 1.15rem !important; }
    .text-4xl { font-size: 1.75rem !important; }
    .text-3xl { font-size: 1.5rem !important; }
    .text-2xl { font-size: 1.25rem !important; }
    .text-xl { font-size: 1.1rem !important; }
    
    /* Mobile card improvements */
    .card-hover:hover { transform: none; }
    
    /* Full-width buttons on mobile */
    .mobile-full { width: 100%; }
    
    /* Stack flex items on mobile */
    .mobile-stack { flex-direction: column; }
    
    /* Hide on mobile */
    .hide-mobile { display: none !important; }
    
    /* Mobile-friendly margins */
    .mb-8 { margin-bottom: 1.5rem; }
    .mt-8 { margin-top: 1.5rem; }
    .py-12 { padding-top: 2rem; padding-bottom: 2rem; }
    .py-16 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    
    /* Better touch scrolling */
    .overflow-x-auto { -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
    .overflow-x-auto > * { scroll-snap-align: start; }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
    .tablet-2-cols { grid-template-columns: repeat(2, 1fr); }
    .hide-tablet { display: none !important; }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
    .hide-desktop { display: none !important; }
    .desktop-3-cols { grid-template-columns: repeat(3, 1fr); }
    .desktop-4-cols { grid-template-columns: repeat(4, 1fr); }
    
    /* Hover effects only on desktop */
    .desktop-hover:hover { transform: translateY(-4px); }
}

/* ============================================
   USER-FRIENDLY COMPONENTS
   ============================================ */

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 100;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Better Form Inputs */
.input-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}
.input-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}
.input-modern::placeholder { color: #9ca3af; }

/* Better Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}
.btn-primary {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #27272a 0%, #3f3f46 100%);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: #f4f4f5;
    color: #3f3f46;
}
.btn-secondary:hover { background: #e4e4e7; }

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #3f3f46;
}
.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Icon Buttons */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 50;
    transition: all 0.3s ease;
    border: 2px solid #f59e0b;
}
.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
    background: #f59e0b;
    color: #18181b;
}
@media (min-width: 768px) {
    .fab { display: none; }
}

/* ============================================
   IMPROVED CARD LAYOUTS
   ============================================ */

/* Post Card - Mobile Optimized */
.post-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.post-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
@media (min-width: 768px) {
    .post-card:hover { transform: translateY(-4px); }
}

/* Post Image Container */
.post-image-container {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f4f4f5;
}
.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-image-container img {
    transform: scale(1.05);
}

/* Vote Overlay */
.vote-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Vote Buttons - Touch Friendly */
.vote-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 80px;
    cursor: pointer;
    border: none;
}
.vote-button-rich {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}
.vote-button-rich:hover, .vote-button-rich.active {
    background: #10b981;
    transform: scale(1.05);
}
.vote-button-poor {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}
.vote-button-poor:hover, .vote-button-poor.active {
    background: #ef4444;
    transform: scale(1.05);
}

/* User Info Row */
.user-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f4f4f5;
}
.user-info {
    flex: 1;
    min-width: 0;
}
.user-name {
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ============================================
   NAVIGATION IMPROVEMENTS
   ============================================ */

/* Mobile Bottom Nav - Enhanced */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: #6b7280;
    transition: color 0.2s;
    text-decoration: none;
    min-width: 64px;
}
.bottom-nav-item.active { color: #18181b; }
.bottom-nav-item:hover { color: #18181b; }
.bottom-nav-item span { font-size: 0.7rem; font-weight: 500; }

/* Center Create Button */
.bottom-nav-create {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

/* Desktop Sidebar */
@media (min-width: 1024px) {
    .with-sidebar {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    .sidebar {
        position: sticky;
        top: 5rem;
        height: fit-content;
    }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

/* Responsive Post Grid */
.post-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 768px) {
    .post-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
    .post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Feed Layout (Single Column) */
.feed-layout {
    max-width: 500px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .feed-layout { max-width: 540px; }
}

/* Profile Grid */
.profile-grid {
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 640px) {
    .profile-grid { gap: 0.5rem; }
}

/* ============================================
   ACCESSIBILITY & UX
   ============================================ */

/* Focus Visible */
:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary { background: #4338ca; }
    .gradient-bg { background: #4338ca; }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: #f4f4f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.empty-state-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Pull to Refresh Indicator */
.pull-indicator {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Swipe Hint */
.swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.8rem;
    padding: 0.5rem;
}
@media (min-width: 768px) {
    .swipe-hint { display: none; }
}

/* Max Height */
.max-h-\[70vh\] { max-height: 70vh; }

/* Backdrop Blur */
.backdrop-blur-sm { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }

/* Transition Transform */
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.group-hover\:scale-105:hover { transform: scale(1.05); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Small Screen Show */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
}

/* Touch Action */
.touch-action-pan-y { touch-action: pan-y; }

/* Tab Styles */
.tab-btn {
    color: #6b7280;
    background: transparent;
}
.tab-btn.active {
    background: #18181b;
    color: white;
}
.tab-btn:hover:not(.active) {
    background: #e5e7eb;
}

/* Border Colors for Ranks */
.border-amber-400 { border-color: #fbbf24; }
.border-amber-600 { border-color: #d97706; }
.border-gray-400 { border-color: #9ca3af; }

/* Scroll Behavior */
html { scroll-behavior: smooth; }

/* Image Loading */
img { 
    background-color: #f4f4f5;
}
img[src] {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
