/* === CORE === */
:root {
    --rust-bg: #0e0e0e;
    --rust-panel: #1b1b1b;
    --rust-accent: #cd412b;
    --rust-green: #6d8e41;
    --rust-text: #cccccc;
    --rust-text-muted: #666666;
    --ai-scan-color: rgba(205, 65, 43, 0.2);
}

* { box-sizing: border-box; }

body {
    background-color: var(--rust-bg);
    background-image: 
        linear-gradient(rgba(14,14,14,0.92), rgba(14,14,14,0.95)), 
        url('./assets/background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--rust-text);
    font-family: 'Roboto Condensed', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* === HEADER === */
.rust-header {
    height: 70px;
    background: rgba(20, 20, 20, 0.95);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    flex-shrink: 0;
    z-index: 50;
}

.nav-menu { display: flex; height: 100%; gap: 10px; }

.nav-btn {
    background: transparent;
    border: none;
    color: #777;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 20px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-btn:hover { color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.3); }
.nav-btn.active { color: #fff; background: linear-gradient(to top, rgba(205,65,43,0.15), transparent); }
.nav-btn.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: var(--rust-accent); box-shadow: 0 -5px 15px var(--rust-accent);
}

/* === LAYOUT === */
.app-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* === SIDEBAR === */
.sidebar {
    width: 320px;
    background: rgba(27, 27, 27, 0.95);
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 25px;
    overflow-y: auto;
    z-index: 20;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed { margin-left: -320px; }

.sidebar-section { margin-bottom: 30px; }
.sidebar-title { 
    color: var(--rust-text-muted); font-size: 0.75rem; font-weight: 800; 
    letter-spacing: 0.1em; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; 
}
.sidebar-title::after { content: ''; flex: 1; height: 1px; background: #333; }

.sidebar-btn {
    width: 100%; text-align: left; padding: 12px 15px;
    background: transparent; border: 1px solid transparent;
    color: #999; font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem;
    cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between;
}
.sidebar-btn:hover { background: rgba(255,255,255,0.03); color: #fff; border-color: #333; }
.sidebar-btn.active { background: #252525; color: #fff; border-color: var(--rust-accent); }

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

::-webkit-scrollbar-track { background: #0e0e0e; }

::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

::-webkit-scrollbar-thumb:hover { background: #cd412b;  }

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    position: relative;
    /* overflow-y: hidden; */
    overflow-y: auto;
    background: rgba(15, 15, 15, 0.6);
    padding: 0;

    scrollbar-gutter: stable;

    overflow-x: hidden;
    min-width: 0;
}

.view { display: none; width: 100%; min-height: 100%; padding: 40px; animation: fadeIn 0.3s ease-out; }
.view.active { display: block; }

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

/* === COMPONENTS === */
.search-box { display: flex; background: #111; border: 1px solid #333; }
.search-input { width: 100%; background: transparent; border: none; color: #fff; padding: 12px; outline: none; font-family: 'Roboto Condensed'; }
.search-btn { background: #222; border: none; color: #fff; padding: 0 15px; cursor: pointer; transition: background 0.2s; }
.search-btn:hover { background: var(--rust-accent); }

.stat-panel { background: rgba(30, 30, 30, 0.8); border: 1px solid #333; padding: 20px; margin-bottom: 20px; }
.data-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #2a2a2a; }
.data-row:last-child { border-bottom: none; }
.data-label { color: #777; font-weight: bold; font-size: 0.85rem; text-transform: uppercase; }
.data-value { color: #eee; font-size: 1.1rem; }

/* === INVENTORY GRID === */
.rust-inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.rust-inv-item {
    background-color: #2a2a2a; border: 1px solid #3d3d3d; position: relative;
    aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.rust-inv-item:hover { border-color: var(--rust-accent); background: #383838; transform: scale(1.05); z-index: 10; }
.rust-inv-image { width: 80%; margin-bottom: 25px; }
.rust-inv-name {
    position: absolute; bottom: 0; width: 100%; background: rgba(14, 14, 14, 0.95);
    color: #ccc; font-size: 0.7rem; padding: 4px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid #333;
}

/* === NEW AI TERMINAL STYLES === */
.ai-terminal {
    background: #111;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Scanline animation */
.ai-terminal::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.ai-scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--rust-accent);
    opacity: 0.3;
    animation: scan 3s linear infinite;
    z-index: 5;
    box-shadow: 0 0 15px var(--rust-accent);
    display: none;
}
.ai-terminal.scanning .ai-scan-bar { display: block; }

@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

.ai-header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #555;
}

.ai-badge {
    background: #222;
    color: var(--rust-accent);
    padding: 2px 8px;
    border: 1px solid #333;
    font-weight: bold;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.ai-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.ai-verdict-box {
    font-family: 'Share Tech Mono', monospace;
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 2px solid #333;
    padding-left: 15px;
    padding-right: 5px;
    
    flex: 1;          
    min-height: 0;    
    overflow-y: auto;  
    margin-bottom: 10px; 
}


.ai-metrics {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #222;
}

.toxicity-meter {
    flex: 1;
    height: 6px;
    background: #222;
    position: relative;
}
.toxicity-fill {
    height: 100%;
    background: linear-gradient(90deg, #6d8e41, #cd412b);
    width: 0%;
    transition: width 1s ease-out;
    position: relative;
}
.toxicity-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 2px;
    height: 14px;
    background: #fff;
}

.btn-analyze {
    background: rgba(205, 65, 43, 0.1);
    border: 1px solid var(--rust-accent);
    color: var(--rust-accent);
    font-family: 'Bebas Neue';
    font-size: 1.2rem;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    text-align: center;
}
.btn-analyze:hover {
    background: var(--rust-accent);
    color: #000;
    box-shadow: 0 0 20px rgba(205, 65, 43, 0.3);
}

.typewriter span {
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* === FOOTER === */
.footer {
    height: 50px; background: #111; border-top: 1px solid #333;
    display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
    font-size: 0.8rem; color: #555; flex-shrink: 0;
}
.footer-link { background: none; border: none; color: #777; cursor: pointer; margin-left: 20px; font-weight: bold; }
.footer-link:hover { color: var(--rust-accent); }

/* === SHARE CARD === */
#share-canvas {
position: absolute;
left: -9999px;
width: 1200px;
height: 630px;
background: #0a0a0a;
display: flex;
overflow: hidden;
font-family: 'Bebas Neue', sans-serif;
}

/* Backgrounds */
.sc-bg-layer {
position: absolute;
inset: 0;
background: radial-gradient(circle at 70% 30%, #1a1a1a 0%, #050505 80%);
z-index: 0;
}

.sc-grid-overlay {
position: absolute;
inset: 0;
background-image: 
linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
background-size: 40px 40px;
z-index: 1;
mask-image: radial-gradient(circle, black 40%, transparent 100%);
}

.sc-watermark {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(-15deg);
font-size: 200px;
color: rgba(255, 255, 255, 0.02);
font-weight: bold;
white-space: nowrap;
z-index: 1;
pointer-events: none;
}

/* Hazard Strips */
.sc-hazard-strip {
position: absolute;
left: 0;
width: 100%;
height: 12px;
background: repeating-linear-gradient(
45deg,
#cd412b,
#cd412b 20px,
#000 20px,
#000 40px
);
z-index: 10;
box-shadow: 0 0 15px rgba(0,0,0,0.8);
}
.sc-hazard-strip.top { top: 0; }
.sc-hazard-strip.bottom { bottom: 0; }

/* Content Layout */
.sc-content {
position: relative;
z-index: 5;
display: flex;
width: 100%;
height: 100%;
padding: 60px;
gap: 60px;
align-items: center;
}

/* Left Column: Profile */
.sc-profile-col {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 2px solid #222;
    padding-right: 60px;
    overflow: hidden;
}

.sc-avatar-frame {
width: 280px;
height: 280px;
position: relative;
margin-bottom: 30px;
border: 4px solid #cd412b;
background: #000;
box-shadow: 0 0 40px rgba(205, 65, 43, 0.2);
}

.sc-avatar-frame::before {
content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
border: 2px solid #333; z-index: -1;
}

#sc-avatar {
width: 100%;
height: 100%;
object-fit: cover;
filter: contrast(1.1) grayscale(0.2);
}

.sc-rank-badge {
    position: absolute;
    bottom: -15px;
    background: #cd412b;
    color: #000;
    font-weight: bold;
    
    display: flex;         
    align-items: center;     
    justify-content: center;  
    height: 44px;            
    padding: 0 25px;         
    padding-bottom: 20px;        
    line-height: 1;           

    font-size: 24px;
    border: 2px solid #fff;
    transform: skewX(-10deg);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
}

#sc-name {
    font-size: 64px;
    color: #fff;
    line-height: 1; 
    margin: 0 0 25px 0; 
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    word-break: break-word; 
    width: 100%;
}

#sc-id {
    font-family: 'Share Tech Mono', monospace;
    color: #666;
    font-size: 18px;
    background: #111;
    padding: 8px 15px;
    border: 1px solid #333;
    margin-top: 5px; 
    display: inline-block; /
}
.sc-role-tag {
    margin-top: 15px;   
    padding-top: 15px;  
    
    color: #cd412b;
    letter-spacing: 4px;
    font-size: 24px;
    border-top: 1px solid #333;
    width: 100%;

    line-height: 1.2;  
    padding-bottom: 10px; 
    display: block;    
}

/* Right Column: Stats */
.sc-stats-col {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
gap: 30px;
}

.sc-stat-big-box {
    background: linear-gradient(90deg, rgba(205, 65, 43, 0.15), transparent);
    border-left: 8px solid #cd412b;
    display: block; 
    position: relative; 
    height: 190px;    
    width: 100%;
    margin-bottom: 30px;
    z-index: 5;
    box-sizing: border-box;
}


.sc-stat-big-box .sc-label {
    position: absolute;
    top: 20px;
    left: 30px;
    margin: 0;
    line-height: 1;
    z-index: 2;
}


.sc-value-huge {
    position: absolute;
    bottom: 65px; 
    left: 26px;   
    
    font-size: 140px; 
    line-height: 0.8; 
    color: #fff;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.8);
    z-index: 1;
}

.sc-label {
color: #888;
font-size: 24px;
letter-spacing: 2px;
margin-bottom: 5px;
}

.sc-stat-row {
display: flex;
gap: 30px;
}

.sc-stat-box {
    flex: 1;
    background: #151515;
    border: 1px solid #333;
    padding: 20px 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.sc-value {
    font-size: 56px; 
    color: #eee;
    line-height: 1;
    margin: 15px 0 25px 0; 
    z-index: 2;
    position: relative;
    text-shadow: 2px 2px 0 #000;
}

.sc-bar {
    height: 6px;
    background: #222;
    width: 100%;
    margin-top: auto; 
    position: relative;
    z-index: 1;
}

.sc-bar div {
    height: 100%;
    background: #6d8e41;
    box-shadow: 0 0 10px rgba(109, 142, 65, 0.4);
}

.sc-footer-info {
margin-top: auto;
display: flex;
align-items: center;
gap: 10px;
font-family: 'Share Tech Mono', monospace;
color: #444;
font-size: 16px;
}

/* === MODALS === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 1000;
    display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #1b1b1b; border: 1px solid #333; width: 600px; max-width: 90%;
    border-top: 4px solid var(--rust-accent); box-shadow: 0 20px 50px #000;
}
.modal-header { padding: 20px; background: #222; display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-family: 'Bebas Neue'; font-size: 1.5rem; color: white; }
.modal-body { padding: 30px; color: #aaa; line-height: 1.6; }
.contact-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 1.1rem; }

/* === LOADER === */
#loader { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: #222; z-index: 200; overflow: hidden; }
#loader div { height: 100%; background: var(--rust-accent); width: 50%; animation: move 1s infinite linear; }
@keyframes move { 0% { margin-left: -50%; } 100% { margin-left: 100%; } }



/* === MODAL CONTENT STYLES === */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}
.contact-card:hover {
    border-color: #cd412b;
    background: #161616;
    transform: translateY(-2px);
}
.contact-card i {
    width: 32px;
    height: 32px;
    color: #cd412b;
}
.contact-label {
    font-family: 'Bebas Neue';
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
}
.contact-val {
    font-size: 0.8rem;
    color: #666;
    font-family: monospace;
}

.api-terminal-view {
    background: #000;
    border: 1px solid #333;
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 20px;
}
.code-line { display: block; margin-bottom: 5px; }
.c-method { color: #cd412b; font-weight: bold; }
.c-url { color: #6d8e41; }
.c-comment { color: #555; }

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.terms-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: #ccc;
    font-size: 0.9rem;
}
.terms-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #cd412b;
    font-weight: bold;
}
.terms-title {
    color: #fff;
    font-family: 'Bebas Neue';
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* === promo SLOT STYLES === */

.promo-slot-container {
    display: flex;
    gap: 20px;
    background: rgba(20, 20, 20, 0.4);
    border: 2px dashed #444; 
    padding: 20px;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.promo-slot-container:hover {
    background: rgba(205, 65, 43, 0.05); 
    border-color: #cd412b; 
    border-style: solid; 
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.promo-image-placeholder {
    width: 200px; 
    height: 120px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    position: relative;
    flex-shrink: 0;
}

.promo-icon-plus {
    width: 40px;
    height: 40px;
    color: #333;
    transition: all 0.3s;
}

.promo-slot-container:hover .promo-icon-plus {
    color: #cd412b;
    transform: scale(1.2) rotate(90deg);
}

.promo-img-overlay {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.4) 10px, rgba(0,0,0,0.4) 20px);
}

.promo-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-title {
    font-family: 'Bebas Neue';
    font-size: 2.5rem;
    color: #555;
    line-height: 1;
    transition: color 0.3s;
}
.promo-slot-container:hover .promo-title { color: #fff; }

.promo-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.promo-badge {
    background: #222;
    color: #666;
    font-size: 0.7rem;
    padding: 2px 8px;
    font-weight: bold;
    border: 1px solid #333;
    transition: all 0.3s;
}
.promo-slot-container:hover .promo-badge {
    background: #cd412b;
    color: #000;
    border-color: #cd412b;
}

.promo-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.promo-slot-container:hover .promo-cta { color: #cd412b; }

.promo-corner-mark {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 30px 30px;
    border-color: transparent transparent #222 transparent;
    transition: border-color 0.3s;
}
.promo-slot-container:hover .promo-corner-mark {
    border-color: transparent transparent #cd412b transparent;
}


/* === LOGO STYLES === */

.rust-logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    cursor: pointer;
}

.logo-icon-box {
    width: 48px;
    height: 48px;
    background: #cd412b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
    box-shadow: 0 0 15px rgba(205, 65, 43, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rust-logo-group:hover .logo-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.logo-icon-svg {
    width: 28px;
    height: 28px;
    color: #000;
    transition: all 0.5s;
}

.rust-logo-group:hover .logo-icon-svg {
    color: #cd412b;
    transform: rotate(180deg); 
}

.logo-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.5);
    animation: logoScan 2s linear infinite;
    pointer-events: none;
}

@keyframes logoScan {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}


.logo-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s;
}

.rust-logo-group:hover .logo-sub {
    color: #cd412b;
    border-color: #cd412b;
    letter-spacing: 5px; 
}

.rust-logo-group:hover .glitch-hover {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: #cd412b;
    text-shadow: 2px 0 #fff, -2px 0 #000;
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(-1deg); }
    80% { transform: skew(1deg); }
    100% { transform: skew(0deg); }
}


/* === AI COOLDOWN MESSAGE === */
.ai-cooldown-msg {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #333;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-cooldown-msg span {
    color: #888;
}

/* === AI BYPASS BUTTON  === */

.ai-bypass-link {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    background: rgba(234, 179, 8, 0.1); 
    border: 1px solid #eab308;         
    color: #eab308;                  
    
    padding: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    cursor: pointer;
    
    animation: pulse-gold 2s infinite;

    margin-top: 8px;
    padding: 6px 10px; 
    font-size: 1rem;
    flex-shrink: 0; 
}

.ai-bypass-link:hover {
    background: #eab308;
    color: #000;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
    transform: translateY(-2px);
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}



/* === ACHIEVEMENTS STYLES === */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding-bottom: 50px;
}

.ach-card {
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.2s;
}

.ach-card.unlocked {
    border-color: #6d8e41;
    background: linear-gradient(90deg, rgba(109, 142, 65, 0.1), transparent);
}
.ach-card.unlocked:hover {
    transform: translateX(5px);
    background: rgba(109, 142, 65, 0.2);
}


.ach-card.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.ach-icon {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ach-info {
    flex: 1;
    overflow: hidden;
}

.ach-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.ach-desc {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ach-date {
    font-size: 0.7rem;
    color: #6d8e41;
    font-weight: bold;
    margin-top: 5px;
    letter-spacing: 1px;
}


/* === VIP BUTTON === */
.nav-donate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, rgba(234, 179, 8, 0.1), transparent);
    border: 1px solid #eab308; 
    color: #eab308;
    padding: 6px 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gold-pulse 3s infinite;
}

.nav-donate-btn:hover {
    background: #eab308;
    color: #000;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.5);
    transform: translateY(-1px);
}

@keyframes gold-pulse {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}


.vip-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}
.vip-price {
    font-family: 'Bebas Neue';
    font-size: 3rem;
    color: #eab308;
    line-height: 1;
}
.vip-per { font-family: monospace; color: #666; font-size: 1rem; }

.vip-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.vip-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    color: #ccc;
    font-size: 0.95rem;
}
.vip-list li i { color: #eab308; width: 18px; height: 18px; }

.vip-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #eab308;
    color: #000;
    font-family: 'Bebas Neue';
    font-size: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #eab308;
}
.vip-btn:hover {
    background: transparent;
    color: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
}


/* === DEVELOPER MODE STYLES === */

.dev-badge-tag {
    background: #cd412b;
    color: #000;
    box-shadow: 0 0 10px rgba(205, 65, 43, 0.5);
}

.dev-name-glitch {
    color: #cd412b !important; 
    text-shadow: 2px 0 #fff, -2px 0 #000;
    position: relative;
    animation: dev-pulse 2s infinite alternate;
}

@keyframes dev-pulse {
    0% { text-shadow: 0 0 10px rgba(205, 65, 43, 0.5); }
    100% { text-shadow: 0 0 25px rgba(205, 65, 43, 1), 0 0 5px #fff; }
}

.dev-avatar-border {
    border-color: #cd412b !important;
    box-shadow: 0 0 30px rgba(205, 65, 43, 0.4) !important;
}

/* === LEADERBOARD === */

.leaderboard-container {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    padding: 2px; /
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto Condensed', sans-serif;
}

.lb-table th {
    background: #111;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 2px solid #333;
}
.lb-table .text-right { text-align: right; }

.lb-row {
    border-bottom: 1px solid #222;
    transition: background 0.2s;
    cursor: pointer;
}
.lb-row:hover {
    background: rgba(205, 65, 43, 0.1); 
}
.lb-row td {
    padding: 12px 20px;
    vertical-align: middle;
}


.lb-rank {
    font-family: 'Bebas Neue';
    font-size: 1.5rem;
    color: #444;
}
.rank-1 { color: #eab308; text-shadow: 0 0 10px rgba(234, 179, 8, 0.5); font-size: 2rem; } 
.rank-2 { color: #c0c0c0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.3); font-size: 1.8rem; } 
.rank-3 { color: #cd7f32; font-size: 1.6rem; } 


.lb-filter-btn {
    background: #111;
    border: 1px solid #333;
    color: #666;
    padding: 8px 16px;
    font-family: 'Bebas Neue';
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.lb-filter-btn:hover { color: #fff; border-color: #555; }
.lb-filter-btn.active {
    background: #cd412b;
    color: #000;
    border-color: #cd412b;
}


#mobile-lock {
    display: none;
}

@media (max-width: 1024px) { 
    #mobile-lock {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #050505;
        background-image: 
            radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 80%),
            linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        background-size: cover, 40px 40px, 40px 40px;
        z-index: 99999; 
        padding: 20px;
        text-align: center;
    }

    .rust-header, 
    .app-container, 
    .footer, 
    #share-canvas,
    #modal-overlay {
        display: none !important;
    }
    .lock-icon-box {
        margin-bottom: 20px;
        animation: pulse-red 2s infinite;
    }

    .lock-title {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 4rem;
        color: #fff;
        letter-spacing: 2px;
        margin-bottom: 10px;
        text-shadow: 0 0 20px rgba(205, 65, 43, 0.5);
    }

    .lock-msg {
        font-family: 'Share Tech Mono', monospace;
        color: #666;
        font-size: 0.9rem;
        line-height: 1.5;
        max-width: 300px;
        border-top: 1px solid #333;
        padding-top: 20px;
    }

    .lock-footer {
        position: absolute;
        bottom: 30px;
        font-family: 'Share Tech Mono', monospace;
        font-size: 0.7rem;
        color: #cd412b;
        opacity: 0.5;
    }

    @keyframes pulse-red {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.1); opacity: 0.7; }
        100% { transform: scale(1); opacity: 1; }
    }
}


/* === DEMO MODE STYLES === */
.demo-badge-tag {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.demo-avatar-border {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 30px #183564 !important;
}


/* === GLOBAL RANK STYLES === */

/* 1 place */
.rank-1-badge {
    background: linear-gradient(45deg, #eab308, #ca8a04);
    color: #000;
    border-color: #fef08a;
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.6);
}
.rank-1-border {
    border-color: #eab308 !important;
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.3) !important;
}
.rank-1-text { color: #eab308 !important; text-shadow: 0 0 15px rgba(234, 179, 8, 0.5); }

/* 2 place */
.rank-2-badge {
    background: linear-gradient(45deg, #c0c0c0, #94a3b8);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}
.rank-2-border {
    border-color: #c0c0c0 !important;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.3) !important;
}
.rank-2-text { color: #e2e8f0 !important; text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }

/* 3 place */
.rank-3-badge {
    background: linear-gradient(45deg, #cd7f32, #a05a2c);
    color: #fff;
    border-color: #fdba74;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}
.rank-3-border {
    border-color: #cd7f32 !important;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.3) !important;
}
.rank-3-text { color: #cd7f32 !important; }


/* === SIGNATURE WEAPON CARD === */
.weapon-card {
    background: linear-gradient(135deg, #151515, #0f0f0f);
    border: 1px solid #333;
    border-left: 4px solid var(--rust-accent); 
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.weapon-card:hover {
    border-color: #555;
    border-left-color: var(--rust-accent);
    transform: translateX(5px);
}

.weapon-card-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.weapon-card-content {
    flex: 1;
    z-index: 2;
}

.weapon-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    line-height: 0.9;
    margin-bottom: 2px;
}

.weapon-card-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--rust-accent);
    letter-spacing: 1px;
}

.weapon-bg-icon {
    position: absolute;
    right: -15px;
    bottom: -15px;
    width: 100px;
    height: 100px;
    opacity: 0.05;
    filter: grayscale(100%);
    transform: rotate(-20deg) scale(1.5);
    pointer-events: none;
    z-index: 1;
}


.dev-badge-tag, 
.demo-badge-tag, 
.rank-badge-tag {
    display: flex !important; 
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    padding: 3px 10px;
    margin-bottom: 6px; 
    font-weight: bold;
    transform: skewX(-10deg);
    width: fit-content; 
    line-height: 1; 
}


/* === BACKGROUND EMBERS === */
#embers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none; 
}

.app-container, .rust-header, .footer {
    position: relative;
    z-index: 10; 
}

/* === TRUST FACTOR PANELS === */
.tf-panel {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
}
.tf-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* === SEARCH HINTS ANIMATIONS === */

#search-hints {
    transform-origin: top center; 
    animation: hints-drop 0.2s ease-out;
}

.hints-closing {
    animation: hints-rise 0.2s ease-in forwards !important;
    transform-origin: top center;
}

@keyframes hints-drop {
    from { opacity: 0; transform: scaleY(0.9); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes hints-rise {
    from { opacity: 1; transform: scaleY(1); }
    to { opacity: 0; transform: scaleY(0.9); }
}

/* === Custom Scrollbar for Admin Table === */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #000;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #333;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #cd412b;
}

.admin-stats{
    cursor: default;
}

/* === ADMIN PANEL VISUALS === */

.admin-crt-bg {
    background-color: #0a0a0a;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
    background-size: 20px 20px, 20px 20px, 100% 100%;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}


.admin-glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}


.live-indicator {
    width: 8px;
    height: 8px;
    background-color: #cd412b;
    border-radius: 50%;
    box-shadow: 0 0 10px #cd412b;
    animation: blink-red 2s infinite;
}
@keyframes blink-red {
    0% { opacity: 1; box-shadow: 0 0 10px #cd412b; }
    50% { opacity: 0.4; box-shadow: 0 0 0 transparent; }
    100% { opacity: 1; box-shadow: 0 0 10px #cd412b; }
}


.adm-table-row {
    border-bottom: 1px solid #222;
    transition: all 0.1s ease;
}

.adm-table-row:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.adm-table-row:hover {
    background-color: rgba(205, 65, 43, 0.15) !important;
    border-left: 2px solid #cd412b;
    padding-left: 5px; 
}


/* --- WINTER UPDATE: SNOWFALL --- */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 1; 
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}


.snowflake:nth-child(1) { left: 10%; width: 5px; height: 5px; animation-duration: 10s; opacity: 0.3; }
.snowflake:nth-child(2) { left: 20%; width: 3px; height: 3px; animation-duration: 12s; opacity: 0.5; }
.snowflake:nth-child(3) { left: 70%; width: 4px; height: 4px; animation-duration: 8s; opacity: 0.4; }
.snowflake:nth-child(4) { left: 40%; width: 6px; height: 6px; animation-duration: 14s; opacity: 0.2; }
.snowflake:nth-child(5) { left: 85%; width: 3px; height: 3px; animation-duration: 11s; opacity: 0.6; }
.snowflake:nth-child(6) { left: 5%;  width: 4px; height: 4px; animation-duration: 9s;  opacity: 0.3; }
.snowflake:nth-child(7) { left: 50%; width: 2px; height: 2px; animation-duration: 13s; opacity: 0.5; }
.snowflake:nth-child(8) { left: 95%; width: 5px; height: 5px; animation-duration: 15s; opacity: 0.2; }

@keyframes fall {
    0% { transform: translateY(-10vh) translateX(0); }
    100% { transform: translateY(110vh) translateX(20px); }
}