/* ===========================
   Gensyn World - Minecraft Theme
   =========================== */
:root {
    /* Minecraft Colors */
    --mc-grass-green: #7cbd53;
    --mc-dirt-brown: #8b6f47;
    --mc-stone-gray: #7f7f7f;
    --mc-emerald: #50c878;
    --mc-diamond: #5dcae3;
    --mc-gold: #f4ce4a;
    --mc-redstone: #ff0000;
    --mc-dark-oak: #4a3729;
    --mc-oak: #9c7f4f;

    /* Typography */
    --font-display: 'Space Grotesk', 'Mondwest', 'Minecraftia', sans-serif;
    --font-body: 'DM Mono', monospace;
    --font-ui: 'DM Mono', monospace;
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #1a1a2e 0%, var(--mc-dark-oak) 100%);
    color: #ffffff;
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Minecraft sky background with moving clouds */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 40%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 25%, transparent 50%, rgba(255, 255, 255, 0.1) 75%, transparent 100%),
        linear-gradient(180deg, #4a90e2 0%, #87ceeb 100%);
    background-size: 200px 100%, 100% 100%;
    z-index: -1;
    animation: clouds 30s linear infinite;
}

@keyframes clouds {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Minecraft grass ground */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background:
        repeating-linear-gradient(90deg, var(--mc-grass-green) 0px, var(--mc-grass-green) 8px, transparent 8px, transparent 16px),
        repeating-linear-gradient(0deg, var(--mc-grass-green) 0px, var(--mc-grass-green) 8px, transparent 8px, transparent 16px),
        linear-gradient(180deg, var(--mc-grass-green) 0%, var(--mc-grass-green) 30%, var(--mc-dirt-brown) 30%, var(--mc-dirt-brown) 100%);
    opacity: 0.3;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ===========================
   Header - Minecraft Style
   =========================== */
.header {
    text-align: center;
    margin-bottom: 60px;
    background: rgba(74, 55, 41, 0.9);
    padding: 30px;
    border: 4px solid var(--mc-dark-oak);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.4),
        inset 4px 4px 0 rgba(255, 255, 255, 0.1),
        0 8px 0 rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

/* Gensyn Logo with Minecraft border */
.gensyn-logo-img {
    width: 60px;
    height: 60px;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5));
}

.title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.5),
        -2px -2px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: -0.02em;
}

.subtitle {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--mc-gold);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* ===========================
   Search Section - Minecraft UI
   =========================== */
.search-section {
    margin-bottom: 60px;
}

.search-wrapper {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(127, 127, 127, 0.8);
    border: 4px solid var(--mc-stone-gray);
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.5),
        inset 3px 3px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 1rem;
    image-rendering: pixelated;
}

.search-input:focus {
    outline: none;
    border-color: var(--mc-diamond);
    background: rgba(127, 127, 127, 0.9);
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.5),
        inset 3px 3px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px var(--mc-diamond);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 16px 32px;
    background: var(--mc-emerald);
    color: #ffffff;
    border: 4px solid var(--mc-grass-green);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.3),
        inset 4px 4px 0 rgba(255, 255, 255, 0.2),
        0 6px 0 rgba(0, 0, 0, 0.3);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.1s;
    image-rendering: pixelated;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.search-btn:hover {
    background: var(--mc-grass-green);
    transform: translateY(2px);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.3),
        inset 4px 4px 0 rgba(255, 255, 255, 0.2),
        0 4px 0 rgba(0, 0, 0, 0.3);
}

.search-btn:active {
    transform: translateY(4px);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.2);
}

.search-results {
    max-width: 600px;
    margin: 20px auto 0;
    background: rgba(74, 55, 41, 0.95);
    border: 4px solid var(--mc-dark-oak);
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.4),
        0 6px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.search-result-item {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

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

.search-result-item:hover {
    background: rgba(80, 200, 120, 0.2);
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border: 3px solid var(--mc-emerald);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
}

/* ===========================
   Stats Dashboard - Minecraft Blocks
   =========================== */
.stats-dashboard {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: rgba(74, 55, 41, 0.95);
    border: 4px solid var(--mc-dark-oak);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.4),
        inset 4px 4px 0 rgba(255, 255, 255, 0.1),
        0 8px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 32px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border: 4px solid var(--mc-diamond);
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(93, 202, 227, 0.5);
    image-rendering: pixelated;
}

.user-info {
    flex: 1;
}

.user-displayname {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.user-username {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    color: var(--mc-gold);
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.rank-badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--mc-gold);
    color: var(--mc-dark-oak);
    border: 3px solid var(--mc-oak);
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.3),
        inset 3px 3px 0 rgba(255, 255, 255, 0.2),
        0 4px 0 rgba(0, 0, 0, 0.3);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

/* Stats Grid - Minecraft Item Boxes */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    background: rgba(127, 127, 127, 0.9);
    border: 4px solid var(--mc-stone-gray);
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.5),
        inset 3px 3px 0 rgba(255, 255, 255, 0.2),
        0 6px 0 rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.5),
        inset 3px 3px 0 rgba(255, 255, 255, 0.2),
        0 10px 0 rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mc-emerald);
    margin-bottom: 8px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* Roles Section - Minecraft Achievement Style */
.roles-section {
    margin-bottom: 40px;
}

.roles-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.roles-category {
    margin-bottom: 28px;
}

.category-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--mc-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.roles-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.role-badge {
    padding: 14px 20px;
    background: rgba(127, 127, 127, 0.8);
    border: 3px solid var(--mc-stone-gray);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.4),
        inset 2px 2px 0 rgba(255, 255, 255, 0.2),
        0 4px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    transition: all 0.2s ease;
}

.role-badge.active {
    background: var(--mc-emerald);
    border-color: var(--mc-grass-green);
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.3),
        inset 3px 3px 0 rgba(255, 255, 255, 0.2),
        0 6px 0 rgba(0, 0, 0, 0.3),
        0 0 20px rgba(80, 200, 120, 0.5);
}

.role-badge.inactive {
    opacity: 0.5;
}

.role-icon {
    font-size: 1.3rem;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.5));
}

.role-name {
    font-weight: 600;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Generate Button - Minecraft Button Style */
.generate-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 40px;
    background: var(--mc-diamond);
    color: #ffffff;
    border: 4px solid #4ab8cc;
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.3),
        inset 4px 4px 0 rgba(255, 255, 255, 0.3),
        0 8px 0 rgba(0, 0, 0, 0.3);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.1s;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.generate-btn:hover {
    background: #6de0f7;
    transform: translateY(2px);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.3),
        inset 4px 4px 0 rgba(255, 255, 255, 0.3),
        0 6px 0 rgba(0, 0, 0, 0.3);
}

.generate-btn:active {
    transform: translateY(6px);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.3),
        0 2px 0 rgba(0, 0, 0, 0.3);
}

/* ===========================
   Card Modal - Minecraft Window
   =========================== */
.card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    z-index: 10000;
}

.card-wrapper {
    border: 6px solid var(--mc-dark-oak);
    padding: 12px;
    background: rgba(74, 55, 41, 0.95);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.4),
        inset 4px 4px 0 rgba(255, 255, 255, 0.1),
        0 12px 0 rgba(0, 0, 0, 0.5);
}

/* Generated Card - PREMIUM ULTRA-CLEAN DESIGN */
.generated-card {
    width: 90vw;
    max-width: 900px;
    height: auto;
    min-height: auto;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    font-family: var(--font-display);
    display: flex;
    flex-direction: column;
}

/* Gensyn Logo - LEFT ALIGNED */
.card-logo-corner {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo-corner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(93, 202, 227, 0.6));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Top accent bar */
.generated-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #50c878 0%, #5dcae3 50%, #f4ce4a 100%);
    z-index: 1;
}

/* Card Header */
.card-header {
    padding: 20px 30px 15px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.card-header > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(93, 202, 227, 0.5);
    flex: 1;
    line-height: 1.1;
}

.card-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-ui);
    margin: 4px 0 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Card Body - More Space for Roles */
.card-body {
    padding: 0 30px 20px;
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
    min-height: auto;
}

/* Left Side - Avatar + User */
.card-left {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    margin-bottom: 12px;
}

.card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #5dcae3;
    box-shadow: 0 0 30px rgba(93, 202, 227, 0.5);
    display: block;
}

/* QR Code - HIDDEN */
.qr-code {
    display: none !important;
}

.card-user-info {
    text-align: center;
    width: 100%;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #06B6D4, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

.card-user-name {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 4px 0;
    line-height: 1.1;
}

.card-user-handle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    margin: 0 0 8px 0;
}

.card-user-rank {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #f4ce4a 0%, #e8b627 100%);
    border-radius: 18px;
    font-size: 11px;
    font-weight: 900;
    color: #0f0f1e;
    font-family: var(--font-ui);
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(244, 206, 74, 0.3);
}

/* Rank Progress */
.rank-progress {
    margin-top: 8px;
    width: 100%;
}

.progress-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3px;
    font-family: var(--font-ui);
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #06B6D4);
    border-radius: 8px;
    transition: width 1s ease-out;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.progress-text {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-ui);
    font-weight: 600;
}

/* Right Side - Stats */
.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: calc(100% - 230px);
}

.card-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.card-stat-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.card-stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.card-stat-value {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.card-stat-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-ui);
    margin: 3px 0 0 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Stats colors */
.stat-messages {
    color: #50c878;
}

.stat-reactions {
    color: #ff6b6b;
}

.stat-voice {
    color: #5dcae3;
}

.stat-streak {
    color: #f4ce4a;
}

/* Roles & Achievements Row */
.card-roles-section,
.achievements-section {
    flex-shrink: 0;
    margin-top: 8px;
    width: 100%;
}

.card-roles-title,
.card-roles-subtitle,
.achievements-title {
    font-size: 10px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-roles-subsection {
    margin-bottom: 12px;
}

.card-roles-subsection:last-child {
    margin-bottom: 0;
}

.card-roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
}

.card-roles-list.card-roles-highlighted {
    justify-content: flex-start;
}

.card-role-badge {
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 9px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-ui);
    background: linear-gradient(135deg, var(--role-color) 0%, var(--role-color-dark) 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: auto;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
    transition: all 0.2s ease;
    flex-shrink: 0;
    max-width: 100%;
}

.card-role-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.card-role-badge.role-active {
    opacity: 1;
}

.card-role-badge.role-inactive {
    opacity: 0.35;
    filter: grayscale(80%);
}

.card-role-badge.role-emerald {
    --role-color: #50c878;
    --role-color-dark: #3da860;
}

.card-role-badge.role-gold {
    --role-color: #f4ce4a;
    --role-color-dark: #d4ae2a;
}

.card-role-badge.role-cyan {
    --role-color: #5dcae3;
    --role-color-dark: #3da8c3;
}

/* Featured/Highlighted Roles - Node Runners & Pioneers */
.card-role-badge.role-highlight {
    border: 2px solid #ffff00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: roleHighlight 1.5s ease-in-out infinite;
}

@keyframes roleHighlight {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 255, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.3);
        transform: scale(1.02);
    }
}

/* Achievements - HIDDEN */
.achievements-section {
    display: none !important;
}

.achievements-list {
    display: none !important;
}

.achievement-badge {
    width: 40px;
    height: 40px;
    display: none !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.15));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    animation: achievementGlow 2s ease-in-out infinite;
}

@keyframes achievementGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.7);
    }
}





.modal-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    padding: 16px 32px;
    border: 4px solid;
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.3),
        inset 3px 3px 0 rgba(255, 255, 255, 0.2),
        0 6px 0 rgba(0, 0, 0, 0.3);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.download-btn {
    background: var(--mc-emerald);
    border-color: var(--mc-grass-green);
    color: #ffffff;
}

.download-btn:hover {
    background: var(--mc-grass-green);
    transform: translateY(2px);
}

.share-btn {
    background: var(--mc-diamond);
    border-color: #4ab8cc;
    color: #ffffff;
}

.share-btn:hover {
    background: #6de0f7;
    transform: translateY(2px);
}

.close-btn {
    background: var(--mc-redstone);
    border-color: #cc0000;
    color: #ffffff;
}

.close-btn:hover {
    background: #ff3333;
    transform: translateY(2px);
}

/* ===========================
   Footer - AURAA Credit
   =========================== */
.footer {
    margin-top: 80px;
    padding: 40px 30px;
    background: rgba(74, 55, 41, 0.9);
    border: 4px solid var(--mc-dark-oak);
    box-shadow:
        inset -3px -3px 0 rgba(0, 0, 0, 0.4),
        0 6px 0 rgba(0, 0, 0, 0.3);
}

.footer-content {
    text-align: center;
}

.footer-credit {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.footer-credit strong {
    color: var(--mc-emerald);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--mc-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link span {
    font-size: 1.2rem;
}

.footer-link:hover {
    color: var(--mc-emerald);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5), 0 0 10px rgba(80, 200, 120, 0.5);
    transform: translateY(-2px);
}

/* ===========================
   Utility Classes
   =========================== */
.hidden {
    display: none !important;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .user-profile {
        flex-direction: column;
        text-align: center;
    }

    .user-displayname {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-actions {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}