@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #080a0c;
    --bg-secondary: #0f1418;
    --bg-tertiary: #151c22;
    --bg-card: rgba(15, 20, 26, 0.95);
    --bg-glass: rgba(15, 22, 30, 0.75);
    --bg-elevated: rgba(25, 40, 50, 0.85);
    --text-primary: #e8f0f4;
    --text-secondary: #a8c0c8;
    --text-muted: #5a7a8a;
    --border-color: rgba(100, 200, 200, 0.12);
    --border-hover: rgba(100, 200, 200, 0.25);
    
    --silver: #b0d0d8;
    --silver-light: #d0e8f0;
    --silver-dark: #7aa0a8;
    --silver-glow: rgba(100, 200, 200, 0.3);
    
    --accent: #7dd8d8;
    --accent-light: #a0f0f0;
    --accent-dark: #50b0b0;
    --accent-glow: rgba(100, 220, 220, 0.35);
    --accent-bg: rgba(80, 200, 200, 0.08);
    --accent-bg-strong: rgba(80, 200, 200, 0.15);
    
    --secondary-accent: #90c8d0;
    --secondary-glow: rgba(100, 180, 200, 0.25);
    
    --tertiary: #608090;
    --tertiary-glow: rgba(80, 140, 160, 0.2);
    
    --gradient-main: linear-gradient(135deg, #1a2a30 0%, #2a4048 50%, #3a5560 100%);
    --gradient-secondary: linear-gradient(135deg, #203038, #305050, #406868);
    --gradient-accent: linear-gradient(135deg, #2a4048, #3a5560, #4a7080);
    --gradient-card: linear-gradient(180deg, rgba(18, 28, 35, 0.95) 0%, rgba(10, 15, 20, 0.98) 100%);
    --gradient-silver: linear-gradient(135deg, #5aa0a8 0%, #7dd8d8 50%, #a0f0f0 100%);
    --gradient-metallic: linear-gradient(180deg, rgba(100, 200, 200, 0.15) 0%, rgba(100, 200, 200, 0.02) 100%);
    
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 8px 30px rgba(80, 200, 200, 0.1);
    --shadow-accent-strong: 0 12px 40px rgba(80, 200, 200, 0.15);
    --shadow-silver: 0 4px 20px rgba(100, 200, 200, 0.12);
    
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(80, 200, 200, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 80% 70%, rgba(100, 220, 220, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 40% 90%, rgba(60, 180, 180, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 45% 35% at 70% 30%, rgba(100, 200, 220, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bgFloat 25s ease-in-out infinite, bgPulse 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='rgba(100,200,200,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
    animation: patternMove 40s linear infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-1%, -1.5%) rotate(0.5deg); }
    50% { transform: translate(-2%, -1%) rotate(1deg); }
    75% { transform: translate(-1%, -2%) rotate(0.5deg); }
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes patternMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(60px, 60px) rotate(0deg); }
}

.animated-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(80, 200, 200, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 180, 220, 0.25) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 22s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(60, 220, 200, 0.2) 0%, transparent 70%);
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 28s;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(120, 200, 180, 0.25) 0%, transparent 70%);
    top: 30%;
    right: 25%;
    animation-delay: -15s;
    animation-duration: 20s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(40px, 20px) scale(1.02); }
}

.container {
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

header {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 72px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 24px;
}

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

.header-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header Mail Button - Beautiful Style */
.header-mail-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.15), rgba(100, 180, 180, 0.08));
    border: 1px solid rgba(125, 216, 216, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.header-mail-btn:hover {
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.25), rgba(100, 180, 180, 0.15));
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(125, 216, 216, 0.3), inset 0 0 15px rgba(125, 216, 216, 0.1);
    transform: translateY(-2px);
}

.header-mail-btn .mail-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px rgba(125, 216, 216, 0.5));
}

.header-mail-btn .mail-text {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(90deg, #7dd8d8, #a8f0f0, #7dd8d8);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.header-mail-btn .mail-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

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

.logo {
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, 
        #4a7a7a 0%, 
        #5a9a9a 8%, 
        #6db8b8 16%, 
        #7dd8d8 24%, 
        #90e8e8 32%, 
        #a8f0f0 40%, 
        #b8f8f8 50%, 
        #a8f0f0 60%, 
        #90e8e8 68%, 
        #7dd8d8 76%, 
        #6db8b8 84%, 
        #5a9a9a 92%, 
        #4a7a7a 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.logo-text p {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: -2px;
}

nav {
    flex: 1;
    min-width: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

nav ul li a:hover {
    color: var(--accent);
    background: var(--accent-bg);
}

nav ul li a.active {
    color: var(--accent);
    background: var(--accent-bg-strong);
}


main {
    padding: 32px 0;
    min-height: 100%;
}

.app-shell {
    display: flex;
    gap: 0;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
    padding-top: 72px;
}

.sidebar {
    width: 260px;
    flex: 0 0 260px;
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.4;
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
}

.sidebar-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 2;
}

.sidebar-title {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.sidebar nav {
    flex: none;
    width: 100%;
    padding-bottom: 100px;
}

.sidebar nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.sidebar nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 4px;
    height: 24px;
    background: var(--gradient-main);
    border-radius: 0 4px 4px 0;
    transition: transform 0.25s ease;
    transform-origin: left;
}

.sidebar nav ul li a.active::before,
.sidebar nav ul li a:hover::before {
    transform: translateY(-50%) scaleX(1);
}

.sidebar nav ul li a.active {
    background: var(--accent-bg-strong);
    color: var(--accent);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-silver);
}

.sidebar nav ul li a:hover:not(.active) {
    background: var(--accent-bg);
    color: var(--accent-light);
    transform: translateX(4px);
}

.sidebar nav ul li a .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.sidebar nav ul li a:hover .nav-icon {
    transform: scale(1.15);
}

.sidebar nav ul li a .nav-text {
    flex: 1;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 6px 0;
}

.sidebar-divider-item {
    padding: 2px 14px !important;
}

.app-shell > main {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 260px;
    padding: 32px 40px;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .app-shell > main {
        margin-left: 220px;
        padding: 24px 28px;
    }
}

@media (max-width: 768px) {
    header {
        height: 64px;
    }

    .app-shell {
        flex-direction: column;
        gap: 0;
        padding-top: 64px;
    }
    
    .app-shell > main {
        margin-left: 0;
        padding: 20px 16px;
    }

    .sidebar {
        position: relative;
        top: 0;
        bottom: auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar::before,
    .sidebar::after {
        display: none;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-divider,
    .sidebar-divider-item {
        display: none;
    }

    .sidebar nav {
        padding-bottom: 0;
    }

    .sidebar nav ul {
        flex-direction: row;
        padding: 10px 14px;
        overflow-x: auto;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar nav ul li {
        flex: 0 0 auto;
    }

    .sidebar nav ul li a {
        white-space: nowrap;
        padding: 10px 14px;
        gap: 8px;
        font-size: 0.85rem;
        border: none;
    }

    .sidebar nav ul li a::before {
        display: none;
    }

    .sidebar nav ul li a:hover:not(.active) {
        transform: none;
    }
}

section {
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

section.active {
    display: block;
}

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

.hero {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    padding: 50px 36px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, var(--accent-bg) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--purple-glow) 0%, transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
}

.hero-text h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.server-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.server-btn {
    display: flex;
    flex-direction: column;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 180px;
    text-align: center;
}

.server-btn:hover {
    background: var(--accent-bg-strong);
    transform: translateY(-6px);
    box-shadow: var(--shadow-accent-strong);
    border-color: var(--accent);
}

.server-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.server-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-primary {
    background: var(--gradient-main);
    color: #000;
    border: none;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-accent-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 11px 26px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--accent-bg);
}

.offers-widget {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.widget-header h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.offers-slider {
    position: relative;
    height: 160px;
    overflow: hidden;
    margin-bottom: 16px;
}

.offer-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.offer-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.offer-slide h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.offer-price {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.offer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.slider-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

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

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-hover);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

#catalog h2,
#gallery h2,
#contacts h2,
#auction h2,
#achievements h2,
#players h2,
#profile h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, 
        #5a8a8a 0%, 
        #7dd8d8 25%, 
        #a8e8e8 50%, 
        #7dd8d8 75%, 
        #5a8a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalog-description,
.gallery-description,
.auction-description,
.achievements-description,
.players-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.apartment-card {
    background: var(--gradient-card);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.apartment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.apartment-card:hover::before {
    transform: scaleX(1);
}

.apartment-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.apartment-image {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.08);
}

.apartment-info {
    padding: 20px;
}

.apartment-info h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.apartment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.apartment-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.apartment-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.apartment-card .btn-primary {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
}

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

.gallery-item {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.gallery-image {
    height: 170px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.gallery-info {
    padding: 18px;
}

.gallery-info h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}

.gallery-info p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.88rem;
}

.gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.gallery-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 8px 0;
}

.contact-info {
    background: var(--gradient-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-width: 450px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.contact-info p {
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-info strong {
    color: var(--accent);
    font-weight: 600;
    min-width: 120px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.user-info h3 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.user-info p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

@media (max-width: 900px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
}

.purchases-section h3,
.profile-stats h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 600;
}

.purchases-list {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    min-height: 180px;
}

.purchase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    transition: background 0.2s ease;
}

.purchase-item:hover {
    background: var(--accent-bg);
}

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

.purchase-info h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.purchase-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.purchase-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

.no-purchases {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.stats-grid {
    display: grid;
    gap: 12px;
}

.stat-item {
    background: var(--gradient-card);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.25s ease;
}

.stat-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.form-container {
    max-width: 400px;
    margin: 0 auto;
    background: var(--gradient-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.form-container p {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.form-container a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

footer {
    background: var(--bg-secondary);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

.message.success {
    background: var(--accent-bg-strong);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.apartment-quantity {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
}

.apartment-quantity.available {
    background: var(--accent-bg);
    color: var(--accent);
}

.apartment-quantity.sold-out {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-apartments,
.no-items {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.auction-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.auction-tab {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.auction-tab.active {
    background: var(--accent-bg-strong);
    color: var(--accent);
    border-color: var(--accent);
}

.auction-tab:hover:not(.active) {
    background: var(--accent-bg);
}

.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.auction-item {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.auction-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.auction-tab-content {
    display: none;
}

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

.achievements-header {
    margin-bottom: 28px;
}

.achievements-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.achievements-stats .stat-box {
    background: var(--gradient-card);
    padding: 18px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    min-width: 120px;
}

.achievements-stats .stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.achievements-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.achievements-status-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.status-filter-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-filter-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.status-filter-btn.active {
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.15), rgba(100, 180, 180, 0.1));
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(125, 216, 216, 0.2);
}

.achievements-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(192, 192, 208, 0.2), rgba(128, 128, 144, 0.1));
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(192, 192, 208, 0.2);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.achievement-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    text-align: center;
}

.achievement-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.achievement-card.completed {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-bg) 0%, var(--bg-card) 100%);
}

.achievements-leaderboard {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.achievements-leaderboard h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 600;
}

.players-search {
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.players-search input {
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.players-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.player-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.player-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.player-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.player-card-header .player-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-card-header img.player-head {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    image-rendering: pixelated;
    border: 2px solid rgba(125, 216, 216, 0.3);
}

.player-initial {
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
}

.player-info {
    flex: 1;
}

.player-name {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.player-role {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 600;
    display: inline-block;
}

.role-user {
    background: var(--accent-bg);
    color: var(--accent);
}

.role-editor {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.role-admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.player-card-body {
    margin-bottom: 14px;
}

.player-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.player-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.player-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.player-stat .stat-icon {
    font-size: 1.15rem;
}

.player-stat .stat-value {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

.player-stat .stat-label {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.player-card-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.view-profile-btn {
    width: 100%;
}

.public-profile-modal,
.apartment-modal,
.edit-email-modal,
.balance-edit-modal,
.edit-user-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-apartment-image {
    height: 240px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    overflow: hidden;
}

.modal-apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-apartment-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-apartment-price {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-apartment-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-apartment-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.modal-apartment-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-buttons .btn-primary,
.modal-buttons .btn-secondary {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }

    header {
        height: auto;
        position: relative;
    }

    .app-shell {
        padding-top: 16px;
    }

    .hero {
        padding: 32px 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

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

    .apartments-grid,
    .gallery-grid,
    .auction-grid,
    .achievements-grid,
    .players-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.35rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .form-container {
        padding: 24px 18px;
    }
}

.popular-apartment-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.apartment-title {
    color: var(--text-primary);
    font-weight: 500;
}

.purchase-count {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

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

::selection {
    background: var(--accent-bg-strong);
    color: var(--text-primary);
}

/* ========================================
   ENHANCED MODERN STYLES FOR ALL SECTIONS
   ======================================== */

/* Section Headers - Modern Style */
section h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        #5a8a8a 0%, 
        #7dd8d8 25%, 
        #a8e8e8 50%, 
        #7dd8d8 75%, 
        #5a8a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

section p.auction-description,
section p.achievements-description,
section p.players-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    max-width: 600px;
}

section p.auction-description code {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
}

/* Auction Items - Enhanced Design */
.auction-item {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 0;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.auction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auction-item:hover::before {
    transform: scaleX(1);
}

.auction-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 229, 191, 0.15);
}

.auction-item-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.auction-item-image {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    image-rendering: pixelated;
}

.auction-item-image img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.auction-item-body {
    padding: 16px 20px;
}

.auction-item-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auction-item-seller {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.auction-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.auction-item-price .price-value {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
}

.auction-item-price .price-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.auction-item-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border-color);
}

.auction-item-footer .btn-primary {
    width: 100%;
}

/* Achievement Cards - Premium Design */
.achievement-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 229, 191, 0.12);
}

.achievement-card.completed {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(0, 229, 191, 0.08) 0%, rgba(10, 10, 20, 0.98) 100%);
}

.achievement-card.completed::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--gradient-main);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.achievement-card.hidden {
    background: linear-gradient(180deg, rgba(30, 30, 45, 0.6) 0%, rgba(15, 15, 25, 0.7) 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

.achievement-card.hidden .achievement-icon {
    filter: grayscale(1) opacity(0.3);
}

.achievement-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1) rotate(5deg);
}

.achievement-name {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.achievement-description {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.achievement-progress-bar,
.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 100px;
    transition: width 0.5s ease;
}

.progress-bar {
    background: var(--bg-tertiary);
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
    flex: 1;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
}

.achievement-points {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-bg);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Achievement Stats - Premium Boxes */
.achievements-stats .stat-box {
    background: var(--gradient-card);
    padding: 24px 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    min-width: 140px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievements-stats .stat-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievements-stats .stat-box:hover::before {
    transform: scaleX(1);
}

.achievements-stats .stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.achievements-stats .stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

/* Leaderboard - Premium Style */
.achievements-leaderboard {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.achievements-leaderboard h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.leaderboard-item:hover {
    background: var(--accent-bg);
}

.leaderboard-item:first-child {
    background: linear-gradient(90deg, rgba(224, 224, 240, 0.1), transparent);
    border: 1px solid rgba(224, 224, 240, 0.2);
}

.leaderboard-item:nth-child(2) {
    background: linear-gradient(90deg, rgba(160, 160, 176, 0.08), transparent);
    border: 1px solid rgba(160, 160, 176, 0.15);
}

.leaderboard-item:nth-child(3) {
    background: linear-gradient(90deg, rgba(106, 106, 122, 0.08), transparent);
    border: 1px solid rgba(106, 106, 122, 0.15);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.leaderboard-item:first-child .leaderboard-rank {
    background: linear-gradient(135deg, #e0e0f0, #c0c0d0);
    color: #000;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    background: linear-gradient(135deg, #a0a0b0, #808090);
    color: #000;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    background: linear-gradient(135deg, #6a6a7a, #4a4a5a);
    color: #fff;
}

.leaderboard-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.leaderboard-score {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Achievements Layout - Two Column Design */
.achievements-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.achievements-main {
    min-width: 0;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.achievements-main h2 {
    margin-bottom: 16px;
    text-align: center;
}

.achievements-main .achievements-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
    max-width: 500px;
}

.achievements-main .achievements-filters {
    justify-content: center;
    margin-bottom: 28px;
    gap: 10px;
}

.achievements-main .achievements-grid {
    min-height: 200px;
}

.achievements-main .achievements-grid .loading,
.achievements-main .achievements-grid .no-items {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.achievements-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

/* Stats Card - Beautiful Glass Design */
.achievements-stats-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.08), rgba(100, 180, 180, 0.04));
    border-bottom: 1px solid var(--border-color);
}

.stats-card-header .stats-icon {
    font-size: 1.4rem;
}

.stats-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.stat-item.highlight {
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.1), rgba(100, 180, 180, 0.05));
    border-color: rgba(125, 216, 216, 0.3);
}

.stat-icon-wrap {
    width: 42px;
    height: 42px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid var(--border-color);
}

.stat-item.highlight .stat-icon-wrap {
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.2), rgba(100, 180, 180, 0.1));
    border-color: rgba(125, 216, 216, 0.3);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5a8a8a 0%, #7dd8d8 50%, #a8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-info .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Leaderboard Card - Premium Sidebar Style */
.achievements-leaderboard-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.leaderboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.08), rgba(100, 180, 180, 0.04));
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-header .leaderboard-icon {
    font-size: 1.4rem;
}

.leaderboard-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.achievements-leaderboard-card .leaderboard-list {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.achievements-leaderboard-card .leaderboard-list .no-items,
.leaderboard-list .no-items {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: transparent;
}

.achievements-leaderboard-card .leaderboard-item {
    padding: 12px 14px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.achievements-leaderboard-card .leaderboard-rank {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.achievements-leaderboard-card .leaderboard-name {
    font-size: 0.9rem;
}

.achievements-leaderboard-card .leaderboard-score {
    font-size: 0.95rem;
}

/* Responsive - Mobile View */
@media (max-width: 900px) {
    .achievements-layout {
        grid-template-columns: 1fr;
    }
    
    .achievements-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .achievements-stats-card,
    .achievements-leaderboard-card {
        flex: 1;
        min-width: 280px;
    }
    
    .achievements-main .achievements-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .achievements-main .achievements-filters {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .achievements-sidebar {
        flex-direction: column;
    }
    
    .achievements-stats-card,
    .achievements-leaderboard-card {
        min-width: 100%;
    }
}

/* Profile Section - Modern Dashboard */
.profile-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
    padding: 28px;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.profile-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.profile-email-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    text-decoration: underline;
    transition: opacity 0.2s;
}

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

.balance-section {
    margin: 16px 0;
}

.balance-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-bg-strong);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 229, 191, 0.2);
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.balance-amount {
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 800;
}

.balance-currency {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Profile Content Sections */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.profile-description-section,
.profile-posts-section,
.mail-section,
.purchases-section,
.profile-stats {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.profile-description-section h3,
.profile-posts-section h3,
.mail-section h3,
.purchases-section h3,
.profile-stats h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-description-textarea,
.post-textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.profile-description-textarea:focus,
.post-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

/* Post Form Actions */
.post-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.btn-upload-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-upload-image:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-upload-image .upload-icon {
    font-size: 1.1rem;
}

.post-image-preview {
    margin-top: 12px;
}

.image-preview-wrapper {
    position: relative;
    display: inline-block;
    max-width: 200px;
}

.image-preview-wrapper img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s;
}

.remove-image-btn:hover {
    transform: scale(1.1);
}

/* Post Image Display */
.post-image {
    margin-top: 12px;
    max-width: 100%;
}

.post-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* Mail Items - Enhanced */
.mail-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.mail-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.mail-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.mail-item-header {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.mail-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    image-rendering: pixelated;
}

.mail-item-info {
    flex: 1;
}

.mail-item-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.mail-item-quantity {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mail-item .btn-primary {
    width: 100%;
    margin-top: 12px;
}

/* Mail Item Cards - For pending items modal */
.mail-item-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.25s ease;
}

.mail-item-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mail-item-card .mail-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.1), rgba(100, 180, 180, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.mail-item-card .mail-item-header .item-rarity {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.mail-item-card .mail-item-header.rarity-common .item-rarity {
    background: rgba(150, 150, 150, 0.2);
    color: #b0b0b0;
}

.mail-item-card .mail-item-header.rarity-uncommon .item-rarity {
    background: rgba(100, 200, 100, 0.15);
    color: #64c864;
}

.mail-item-card .mail-item-header.rarity-rare .item-rarity {
    background: rgba(100, 150, 255, 0.15);
    color: #6496ff;
}

.mail-item-card .mail-item-header.rarity-epic .item-rarity {
    background: rgba(180, 100, 255, 0.15);
    color: #b464ff;
}

.mail-item-card .mail-item-header.rarity-legendary .item-rarity {
    background: rgba(255, 180, 50, 0.15);
    color: #ffb432;
}

.mail-item-card .mail-item-header.rarity-mythic .item-rarity {
    background: rgba(255, 100, 150, 0.15);
    color: #ff6496;
}

.mail-item-card .mail-item-header .item-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.mail-item-card .mail-item-body {
    padding: 16px;
}

.mail-item-card .mail-item-body h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.mail-item-card .mail-item-body p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.mail-item-card .mail-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.mail-item-card .mail-item-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Expandable Mail Item Styles */
.mail-item-card {
    margin-bottom: 8px;
    overflow: hidden;
}

.mail-item-card.expanded {
    border-color: var(--accent);
}

.mail-item-header-row {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: var(--radius-lg);
    transition: background 0.2s ease;
}

.mail-item-header-row:hover {
    background: var(--bg-tertiary);
}

.mail-item-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mail-item-icon {
    font-size: 1.2rem;
}

.mail-item-title {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.mail-item-amount {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

.mail-item-date-short {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mail-expand-icon {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.mail-item-card.expanded .mail-expand-icon {
    transform: rotate(180deg);
}

.mail-item-details {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    animation: slideDown 0.2s ease;
}

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

.mail-item-info {
    padding: 12px 0;
}

.mail-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.mail-info-row:last-child {
    border-bottom: none;
}

.mail-info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mail-info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.mail-item-actions {
    padding-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.mail-item-actions .btn-claim-item {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Rarity styles for mail header row */
.mail-item-header-row.rarity-uncommon {
    border-left: 3px solid #64c864;
}

.mail-item-header-row.rarity-rare {
    border-left: 3px solid #6496ff;
}

.mail-item-header-row.rarity-epic {
    border-left: 3px solid #b464ff;
}

.mail-item-header-row.rarity-legendary {
    border-left: 3px solid #ffb432;
}

.mail-item-header-row.rarity-mythic {
    border-left: 3px solid #ff6496;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.post-item:hover {
    border-color: var(--border-hover);
}

.post-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.post-actions {
    display: flex;
    gap: 8px;
}

.post-delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.no-posts {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

/* Contact Section - Enhanced */
.contact-info {
    background: var(--gradient-card);
    padding: 36px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.contact-info p:last-child {
    border-bottom: none;
}

.contact-info p:hover {
    background: var(--accent-bg);
}

/* Auth Form - Enhanced */
#auth-form .form-container {
    max-width: 420px;
    background: var(--gradient-card);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

#auth-form .form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

#auth-form .form-container h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.6rem;
}

.register-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.register-info code {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
}

/* Players Grid - Enhanced */
.player-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.player-card:hover::before {
    transform: scaleX(1);
}

.player-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 229, 191, 0.1);
}

.player-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

img.player-head {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    image-rendering: pixelated;
    border: 2px solid rgba(125, 216, 216, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer - Enhanced */
footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    margin-left: 260px;
}

@media (max-width: 768px) {
    footer {
        margin-left: 0;
    }
    
    .achievements-stats {
        gap: 12px;
    }
    
    .achievements-stats .stat-box {
        padding: 18px 20px;
        min-width: 100px;
    }
    
    .achievements-stats .stat-value {
        font-size: 1.6rem;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .balance-display {
        padding: 12px 18px;
        flex-wrap: wrap;
    }
    
    .balance-amount {
        font-size: 1.3rem;
    }
}

/* ========================================
   ABOUT SECTION - SIMPLIFIED
   ======================================== */

#about .section-title {
    font-size: 2rem;
    margin-bottom: 32px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.about-feature-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.about-feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.about-feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-feature-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.about-feature-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.about-feature-card code {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
}

.about-contact-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 40px;
}

.about-contact-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 12px 24px;
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.contact-btn:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.about-section {
    margin-bottom: 48px;
}

.about-section-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Team Section */
.team-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.team-grid.team-main {
    gap: 32px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-avatar:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.team-avatar span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.team-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.team-role {
    color: var(--accent);
    font-size: 0.75rem;
}

/* Small team members */
.team-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
}

.team-section {
    text-align: center;
}

.team-grid.team-small {
    gap: 16px;
    margin-bottom: 0;
}

.team-member-small {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 8px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.team-member-small:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.team-member-small img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.team-member-small span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.team-member-small.past {
    opacity: 0.6;
}

.team-member-small.founder {
    background: var(--gradient-metallic);
    border-color: var(--border-hover);
}

.team-member-small.founder span {
    color: var(--silver-light);
}

/* Thanks Section */
.thanks-text {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.thanks-list {
    list-style: disc;
    padding-left: 24px;
}

.thanks-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Developer Section */
.dev-info {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.dev-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dev-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.dev-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.dev-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.dev-list {
    list-style: disc;
    padding-left: 24px;
}

.dev-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.highlight {
    color: var(--accent);
    font-weight: 500;
}

/* ========================================
   PLAYER PROFILE PAGE
   ======================================== */

.player-profile-page {
    max-width: 800px;
    margin: 0 auto;
}

.player-profile-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 32px;
    padding: 32px;
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.player-profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.player-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.player-profile-avatar .player-initial {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
}

.player-profile-info {
    flex: 1;
}

.player-profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-profile-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 12px;
}

.player-profile-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.player-profile-posts-section {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-color);
}

.player-profile-posts-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.player-profile-posts {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

/* ========================================
   AUCTION LAYOUT WITH SIDEBAR
   ======================================== */

.auction-layout {
    display: flex;
    gap: 28px;
}

.auction-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.auction-sidebar-section {
    background: transparent;
    border-radius: var(--radius-xl);
    padding: 0;
    border: none;
    margin-bottom: 20px;
}

.auction-sidebar-section h4 {
    color: var(--silver);
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-left: 4px;
}

.auction-category-filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auction-filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.auction-filter-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-silver);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.auction-filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-light);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.auction-filter-btn:hover::before {
    transform: scaleY(1);
}

.auction-filter-btn.active {
    background: var(--accent-bg-strong);
    color: var(--accent);
    border-color: var(--silver-dark);
    box-shadow: var(--shadow-silver);
}

.auction-filter-btn.active::before {
    transform: scaleY(1);
}

.filter-icon {
    font-size: 1.1rem;
}

.auction-rarity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rarity-filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.rarity-filter-btn.active {
    background: var(--accent-bg-strong);
    color: var(--accent);
    border-color: var(--accent);
}

.auction-sort-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a8a8b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.auction-sort-select:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-tertiary);
}

.auction-sort-select:focus {
    outline: none;
    border-color: var(--silver-dark);
    box-shadow: var(--shadow-silver);
}

.auction-main {
    flex: 1;
    min-width: 0;
}

.auction-header {
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .auction-layout {
        flex-direction: column;
    }
    
    .auction-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .auction-category-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .auction-filter-btn {
        flex: 0 0 auto;
    }
}

/* ========================================
   IMPROVED MODAL STYLES
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, rgba(25, 25, 40, 0.98) 0%, rgba(12, 12, 20, 0.99) 100%);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
}

.apartment-modal .modal-content,
.public-profile-modal .modal-content {
    max-width: 550px;
}

/* Confirm Dialog */
.confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.confirm-dialog .modal-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    padding: 32px 40px;
}

.confirm-dialog h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.confirm-dialog p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.confirm-dialog .modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ========================================
   PROFILE LAYOUT - REDESIGNED
   ======================================== */

.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.profile-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--accent);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.avatar-initial {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
}

.profile-name {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-email {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.btn-link-small {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
}

.profile-balance-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-bg);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.balance-icon {
    font-size: 1.5rem;
}

.balance-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.balance-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.balance-info .balance-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-stats-mini {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-mini {
    text-align: center;
}

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

.stat-mini-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.btn-logout {
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

.profile-about-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.profile-about-card h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-section-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.profile-section-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.posts-list-container,
.posts-list-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.posts-list-container::-webkit-scrollbar,
.posts-list-scrollable::-webkit-scrollbar {
    width: 6px;
}

.posts-list-container::-webkit-scrollbar-track,
.posts-list-scrollable::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.posts-list-container::-webkit-scrollbar-thumb,
.posts-list-scrollable::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: relative;
        top: 0;
    }
}

/* ========================================
   AUCTION ITEMS - IMPROVED
   ======================================== */

.auction-item-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auction-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
    border-color: var(--accent);
}

.auction-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-secondary);
}

.auction-item-header.rarity-common { border-top: 3px solid #9d9d9d; background: linear-gradient(135deg, rgba(157,157,157,0.1) 0%, transparent 100%); }
.auction-item-header.rarity-uncommon { border-top: 3px solid #55ff55; background: linear-gradient(135deg, rgba(85,255,85,0.1) 0%, transparent 100%); }
.auction-item-header.rarity-rare { border-top: 3px solid #5555ff; background: linear-gradient(135deg, rgba(85,85,255,0.1) 0%, transparent 100%); }
.auction-item-header.rarity-epic { border-top: 3px solid #aa00aa; background: linear-gradient(135deg, rgba(170,0,170,0.1) 0%, transparent 100%); }
.auction-item-header.rarity-legendary { border-top: 3px solid #ffaa00; background: linear-gradient(135deg, rgba(255,170,0,0.15) 0%, transparent 100%); }
.auction-item-header.rarity-mythic { border-top: 3px solid #ff55ff; background: linear-gradient(135deg, rgba(255,85,255,0.1) 0%, transparent 100%); }

.rarity-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
}

.rarity-common .rarity-badge { color: #9d9d9d; background: rgba(157,157,157,0.15); }
.rarity-uncommon .rarity-badge { color: #55ff55; background: rgba(85,255,85,0.15); }
.rarity-rare .rarity-badge { color: #5555ff; background: rgba(85,85,255,0.2); }
.rarity-epic .rarity-badge { color: #aa00aa; background: rgba(170,0,170,0.15); }
.rarity-legendary .rarity-badge { color: #ffaa00; background: rgba(255,170,0,0.2); }
.rarity-mythic .rarity-badge { color: #ff55ff; background: rgba(255,85,255,0.15); }

.item-amount {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 100px;
}

.auction-item-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
}

.item-emoji {
    font-size: 3rem;
}

.minecraft-texture {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.fallback-emoji {
    display: none;
}

.auction-item-body {
    padding: 16px;
}

.auction-item-body .item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auction-item-body .item-seller {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.auction-item-body .item-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auction-item-body .item-time.expired {
    color: #ef4444;
}

.auction-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.auction-item-footer .item-price {
    display: flex;
    flex-direction: column;
}

.auction-item-footer .price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.auction-item-footer .price-currency {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-buy-auction {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-buy-auction:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.btn-cancel-auction {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-auction:hover {
    background: rgba(239, 68, 68, 0.2);
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 100px;
}

.status-badge.status-sold {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ========================================
   ACHIEVEMENTS - EMOJI ICONS
   ======================================== */

.achievement-card .achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.achievement-emoji {
    font-size: 2rem;
}

.achievement-card.locked .achievement-icon {
    filter: grayscale(1);
    opacity: 0.5;
}

.achievement-card.completed .achievement-icon {
    background: var(--accent-bg);
    border: 2px solid var(--accent);
}

.achievement-icon .check-mark {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.rarity-badge-common { color: #555555; }
.rarity-badge-uncommon { color: #777777; }
.rarity-badge-rare { color: #888888; }
.rarity-badge-epic { color: #aaaaaa; }
.rarity-badge-legendary { color: #cccccc; }
.rarity-badge-mythic { color: #dddddd; }

/* Auction Sort Select Styled */
.auction-sort-wrapper {
    margin-bottom: 16px;
}

.auction-sort-wrapper label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.auction-sort-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 24 24' fill='none' stroke='%239898b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ==================== ПОИСК АУКЦИОНА ==================== */
.auction-search-container {
    margin-top: 16px;
}

.auction-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auction-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.auction-search-input::placeholder {
    color: var(--text-muted);
}

/* ==================== КНОПКА ПОЧТЫ В ПРОФИЛЕ ==================== */
.btn-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 16px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.btn-mail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

.btn-mail .mail-icon {
    font-size: 1.2rem;
}

.mail-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* ==================== МОДАЛЬНОЕ ОКНО ПОЧТЫ ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content.mail-modal {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: var(--radius-xl);
    max-width: 550px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(125, 216, 216, 0.1);
    border: 1px solid rgba(125, 216, 216, 0.2);
    overflow: hidden;
}

.modal-content.mail-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.08), rgba(100, 180, 180, 0.03));
    border-bottom: 1px solid rgba(125, 216, 216, 0.15);
}

.modal-content.mail-modal .modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #7dd8d8, #a8f0f0, #7dd8d8);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.modal-content.mail-modal .modal-close {
    background: rgba(125, 216, 216, 0.1);
    border: 1px solid rgba(125, 216, 216, 0.2);
    font-size: 1.3rem;
    color: var(--accent);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-content.mail-modal .modal-close:hover {
    background: rgba(125, 216, 216, 0.2);
    border-color: var(--accent);
    transform: scale(1.05);
}

.modal-content.mail-modal .modal-description {
    padding: 16px 28px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.modal-content.mail-modal .mail-items-container {
    padding: 20px 28px;
    overflow-y: auto;
    max-height: 450px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
}

.modal-content.mail-modal .no-items {
    text-align: center;
    color: var(--text-muted);
    padding: 50px 20px;
    font-size: 1rem;
}

.mail-items-container {
    padding: 16px 24px;
    overflow-y: auto;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Compact expandable mail items */
.mail-item-card {
    flex-shrink: 0;
    background: var(--gradient-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.mail-item-card:hover {
    border-color: var(--accent);
}

.mail-item-header-row {
    padding: 10px 14px;
    cursor: pointer;
    border-radius: var(--radius-md);
}

.mail-item-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mail-item-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.mail-item-title {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mail-item-amount {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mail-item-date-short {
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.mail-expand-icon {
    color: var(--text-muted);
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mail-item-card.expanded .mail-expand-icon {
    transform: rotate(180deg);
}

/* Compact expanded details - just enough for button */
.mail-item-details {
    padding: 8px 14px 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mail-item-info {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mail-item-info-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mail-item-actions {
    flex-shrink: 0;
}

.mail-item-actions .btn-claim-item {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mail-item-actions .btn-claim-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 216, 216, 0.3);
}

/* Rarity left border for mail items */
.mail-item-header-row.rarity-common { border-left: 3px solid #888; }
.mail-item-header-row.rarity-uncommon { border-left: 3px solid #64c864; }
.mail-item-header-row.rarity-rare { border-left: 3px solid #6496ff; }
.mail-item-header-row.rarity-epic { border-left: 3px solid #b464ff; }
.mail-item-header-row.rarity-legendary { border-left: 3px solid #ffb432; }
.mail-item-header-row.rarity-mythic { border-left: 3px solid #ff6496; }

/* Potion effect colors */
.potion-effect {
    font-size: 0.85rem;
    margin: 4px 0;
    font-weight: 600;
}

.potion-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 6px 0;
    font-style: italic;
}

/* Fish rarity in auction cards */
.fish-rarity {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 4px 0;
}

.fish-rarity.rarity-common { color: #888; }
.fish-rarity.rarity-uncommon { color: #64c864; }
.fish-rarity.rarity-rare { color: #6496ff; }
.fish-rarity.rarity-epic { color: #b464ff; }
.fish-rarity.rarity-legendary { color: #ffb432; }
.fish-rarity.rarity-mythic { color: #ff6496; }

/* Enchantment info in auction cards */
.enchant-info {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 4px 0;
    color: #64c8ff;
}

/* Enchantment section in modal */
.auction-modal-enchant-section {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.auction-modal-enchant-section .label {
    display: block;
    color: #64c8ff;
    font-weight: 600;
    margin-bottom: 8px;
}

.enchant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.enchant-item {
    background: rgba(100, 200, 255, 0.15);
    color: #64c8ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.potion-effect-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Positive potions - warm colors */
.potion-healing, .auction-item-header.potion-healing { background: rgba(255, 100, 100, 0.15) !important; color: #ff6464; border-color: #ff6464; }
.potion-regen, .auction-item-header.potion-regen { background: rgba(255, 150, 200, 0.15) !important; color: #ff96c8; border-color: #ff96c8; }
.potion-strength, .auction-item-header.potion-strength { background: rgba(150, 50, 50, 0.2) !important; color: #c83232; border-color: #c83232; }
.potion-speed, .auction-item-header.potion-speed { background: rgba(100, 200, 255, 0.15) !important; color: #64c8ff; border-color: #64c8ff; }
.potion-jump, .auction-item-header.potion-jump { background: rgba(100, 255, 100, 0.15) !important; color: #64ff64; border-color: #64ff64; }
.potion-invis, .auction-item-header.potion-invis { background: rgba(200, 200, 200, 0.15) !important; color: #c8c8c8; border-color: #c8c8c8; }
.potion-night, .auction-item-header.potion-night { background: rgba(100, 100, 200, 0.15) !important; color: #6464c8; border-color: #6464c8; }
.potion-water, .auction-item-header.potion-water { background: rgba(50, 150, 200, 0.15) !important; color: #3296c8; border-color: #3296c8; }
.potion-fire, .auction-item-header.potion-fire { background: rgba(255, 150, 50, 0.15) !important; color: #ff9632; border-color: #ff9632; }
.potion-luck, .auction-item-header.potion-luck { background: rgba(100, 200, 100, 0.15) !important; color: #64c864; border-color: #64c864; }
.potion-slow-fall, .auction-item-header.potion-slow-fall { background: rgba(255, 255, 200, 0.15) !important; color: #ffffc8; border-color: #ffffc8; }

/* Negative potions - dark colors */
.potion-poison, .auction-item-header.potion-poison { background: rgba(100, 150, 50, 0.2) !important; color: #649632; border-color: #649632; }
.potion-harming, .auction-item-header.potion-harming { background: rgba(100, 50, 100, 0.2) !important; color: #643264; border-color: #643264; }
.potion-weakness, .auction-item-header.potion-weakness { background: rgba(70, 70, 70, 0.2) !important; color: #969696; border-color: #969696; }
.potion-slowness, .auction-item-header.potion-slowness { background: rgba(100, 100, 150, 0.2) !important; color: #646496; border-color: #646496; }
.potion-decay, .auction-item-header.potion-decay { background: rgba(50, 50, 50, 0.3) !important; color: #505050; border-color: #505050; }
.potion-wither, .auction-item-header.potion-wither { background: rgba(50, 50, 50, 0.3) !important; color: #323232; border-color: #323232; }

/* Special potions */
.potion-turtle, .auction-item-header.potion-turtle { background: rgba(100, 150, 100, 0.15) !important; color: #649664; border-color: #649664; }
.potion-awkward, .auction-item-header.potion-awkward { background: rgba(100, 100, 200, 0.1) !important; color: #6464c8; border-color: #6464c8; }
.potion-mundane, .auction-item-header.potion-mundane { background: rgba(150, 150, 150, 0.1) !important; color: #969696; border-color: #969696; }
.potion-thick, .auction-item-header.potion-thick { background: rgba(150, 150, 150, 0.1) !important; color: #969696; border-color: #969696; }
.potion-unknown, .auction-item-header.potion-unknown { background: rgba(150, 100, 200, 0.1) !important; color: #9664c8; border-color: #9664c8; }

.mail-items-container::-webkit-scrollbar {
    width: 8px;
}

.mail-items-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.mail-items-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.mail-items-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.mail-items-container .no-items {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

/* Fixed Mail Button - Top Right Corner */
#open-mail-btn.btn-mail-floating {
    position: fixed;
    top: 85px;
    right: 20px;
    z-index: 999;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
    transition: all 0.3s ease;
}

#open-mail-btn.btn-mail-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.5);
}

#open-mail-btn.btn-mail-floating .mail-icon {
    font-size: 1.4rem;
}

#open-mail-btn.btn-mail-floating span:not(.mail-icon):not(.mail-badge) {
    display: none;
}

#open-mail-btn.btn-mail-floating .mail-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Delete Post Button Styling */
.btn-delete-post {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-xs, 6px);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-delete-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Claim Item Button Styling in Mail Panel */
.btn-claim-item {
    background: linear-gradient(135deg, #7dd8d8, #5ab8b8);
    color: #0a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(125, 216, 216, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-claim-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(125, 216, 216, 0.5);
    background: linear-gradient(135deg, #90e8e8, #7dd8d8);
}

.btn-claim-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-claim-item.btn-success {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

/* Auction Pagination Buttons */
.auction-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm, 10px);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #000;
    font-weight: 600;
}

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

/* Fish Sort Filters */
.fish-sort-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fish-sort-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: left;
}

.fish-sort-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    color: var(--text-primary);
}

.fish-sort-btn.active {
    background: rgba(125, 216, 216, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Auction Detail Modal */
.modal-content.auction-detail-modal {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(125, 216, 216, 0.2);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(125, 216, 216, 0.1);
}

.modal-content.auction-detail-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(125, 216, 216, 0.08), rgba(100, 180, 180, 0.03));
    border-bottom: 1px solid rgba(125, 216, 216, 0.15);
}

.modal-content.auction-detail-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #7dd8d8, #a8f0f0, #7dd8d8);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.modal-content.auction-detail-modal .modal-close {
    background: rgba(125, 216, 216, 0.1);
    border: 1px solid rgba(125, 216, 216, 0.2);
    font-size: 1.3rem;
    color: var(--accent);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-content.auction-detail-modal .modal-close:hover {
    background: rgba(125, 216, 216, 0.2);
    border-color: var(--accent);
}

.auction-modal-body {
    padding: 24px;
    display: flex;
    gap: 20px;
}

.auction-modal-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.auction-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auction-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.auction-modal-row:last-of-type {
    border-bottom: none;
}

.auction-modal-row .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auction-modal-row .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.auction-modal-row .value.rarity-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

.auction-modal-description {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.auction-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-buy-auction-modal {
    background: linear-gradient(135deg, #7dd8d8, #5ab8b8);
    color: #0a1a1a;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(125, 216, 216, 0.3);
}

.btn-buy-auction-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(125, 216, 216, 0.5);
}

.btn-cancel-auction-modal {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-cancel-auction-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Fish size display in auction cards */
.fish-size {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 4px;
}

/* Clickable auction card */
.auction-item-card {
    cursor: pointer;
}

.auction-item-card:hover {
    transform: translateY(-4px);
}

/* Проданный лот - затускнение и оверлей */
.auction-item-card.sold-item {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius-lg);
}

.sold-overlay span {
    background: var(--danger);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Недостаточно денег */
.auction-item-card.not-enough-money {
    border-color: var(--warning);
    opacity: 0.8;
}

.not-enough-money-badge {
    background: var(--warning);
    color: #000;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
}

/* Rarity badges styling for modal */
.rarity-badge.rarity-common {
    background: rgba(150, 150, 150, 0.2);
    color: #b0b0b0;
}

.rarity-badge.rarity-uncommon {
    background: rgba(100, 200, 100, 0.15);
    color: #64c864;
}

.rarity-badge.rarity-rare {
    background: rgba(100, 150, 255, 0.15);
    color: #6496ff;
}

.rarity-badge.rarity-epic {
    background: rgba(180, 100, 255, 0.15);
    color: #b464ff;
}

.rarity-badge.rarity-legendary {
    background: rgba(255, 180, 50, 0.15);
    color: #ffb432;
}

.rarity-badge.rarity-mythic {
    background: rgba(255, 100, 150, 0.15);
    color: #ff6496;
}

/* ==================== NEWS STYLES ==================== */

.news-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.news-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-accent);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.news-date {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.news-author {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-preview {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.news-image-preview {
    margin-bottom: 16px;
}

.news-image-preview img {
    max-width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.news-read-more {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* News Modal */
.news-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    z-index: 10001;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-view-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.news-modal-content::-webkit-scrollbar {
    width: 8px;
}

.news-modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.news-modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 4px;
}

.news-modal-header {
    margin-bottom: 20px;
}

.news-modal-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.news-modal-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.news-modal-image {
    margin-bottom: 20px;
}

.news-modal-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.news-modal-body {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.news-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Admin News Styles */
.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.news-admin-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.news-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.news-admin-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.news-admin-date {
    color: var(--accent);
    font-size: 0.8rem;
    white-space: nowrap;
}

.news-admin-preview {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-admin-actions {
    display: flex;
    gap: 8px;
}

/* Edit News Modal */
.edit-news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-news-modal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
}

.edit-news-modal .modal-content h2 {
    margin-bottom: 20px;
    color: var(--accent);
}

.edit-news-modal .form-group {
    margin-bottom: 16px;
}

.edit-news-modal .form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.edit-news-modal .form-group input,
.edit-news-modal .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

.edit-news-modal .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.edit-news-modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.news-edit-actions {
    flex-wrap: wrap;
}

.edit-news-modal .btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.edit-news-modal .btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-2px);
}

/* News Reactions */
.news-reactions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    justify-content: center;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.reaction-btn:hover {
    transform: translateY(-2px);
}

.reaction-up {
    color: #6ee7b7;
}

.reaction-up:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.reaction-up.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.reaction-down {
    color: #fca5a5;
}

.reaction-down:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.reaction-down.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.reaction-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.reaction-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* News Sorting Buttons */
.news-sort-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.news-sort-btn {
    padding: 10px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-sort-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.news-sort-btn.active {
    background: var(--gradient-accent);
    border-color: var(--accent);
    color: white;
}

/* Centered Modal */
.centered-modal .modal-content.centered-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* File Upload Styles */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-input {
    display: none;
}

.file-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 200, 0.3);
}

.file-name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-preview {
    margin-top: 12px;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.current-image {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.current-image img {
    max-width: 100px;
    max-height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.remove-image-btn {
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Centered section title */
.section-title-centered {
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Community Section */
.community-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.community-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.community-posts-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 500px;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.community-posts-scroll::-webkit-scrollbar {
    width: 8px;
}

.community-posts-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.community-posts-scroll::-webkit-scrollbar-thumb {
    background: var(--silver-dark);
    border-radius: 4px;
}

.community-post-card {
    flex: 0 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.community-post-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

.community-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.community-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.community-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg-strong);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.community-post-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.community-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.community-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.community-post-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.community-post-image {
    margin-top: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.community-post-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.post-modal-image {
    margin-top: 16px;
}

.post-modal-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* Community Post Modal */
.post-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-view-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.post-modal-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    z-index: 10001;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.post-modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.post-modal-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-bg-strong);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.post-modal-user-info {
    flex: 1;
}

.post-modal-username {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.post-modal-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-modal-body {
    margin-bottom: 1.5rem;
}

.post-modal-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-modal-image {
    margin-top: 1rem;
}

.post-modal-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Post Reactions */
.post-reactions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.post-reaction-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.post-reaction-btn.like-btn:hover,
.post-reaction-btn.like-btn.active {
    color: #4ade80;
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.post-reaction-btn.dislike-btn:hover,
.post-reaction-btn.dislike-btn.active {
    color: #f87171;
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.post-reaction-icon {
    font-size: 1.1rem;
}

.post-reaction-count {
    font-weight: 600;
}

/* Image Upload Button */
.image-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.image-upload-input {
    display: none;
}

.image-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.image-upload-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.image-upload-btn .upload-icon {
    font-size: 1.1rem;
}

.image-preview-container {
    margin-top: 0.75rem;
}

.image-preview-item {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.image-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.image-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.selected-image-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
