/* ============================================================
   MINECRAFT THEMED STYLESHEET - UNSMARTVN.COM
   ============================================================ */

/* RESET & GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'JetBrains Mono', sans-serif;
}

:root {
    --bg-black: #0A0B0D;
    --mc-dark-bg: #15171B;
    --mc-card-bg: #1E2025;
    --mc-btn-bg: #282B32;
    --mc-btn-hover: #32363F;
    --mc-input-bg: #111316;
    
    --mc-green: #55FF20;
    --mc-green-dark: #38B012;
    --mc-green-glow: rgba(85, 255, 32, 0.25);
    
    --mc-border-light: #484C55;
    --mc-border-dark: #0D0E11;
    --mc-border-accent: #55FF20;
    
    --text-primary: #E2E2E6;
    --text-secondary: #BBCCB0;
    --text-muted: #86957C;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

::selection {
    background-color: var(--mc-green);
    color: var(--bg-black);
}

/* BACKGROUND DECORATIONS */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-green {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(85, 255, 32, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* MAIN CONTAINER */
.container {
    width: 100%;
    max-width: min(680px, 95vw);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SERVER HEADER */
.server-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--mc-card-bg);
    border: 2px solid var(--mc-border-light);
    box-shadow: inset -2px -2px 0px var(--mc-border-dark), inset 2px 2px 0px var(--mc-border-light);
    border-radius: var(--radius-sm);
}

.logo-group a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cube-icon {
    width: 38px;
    height: 38px;
    background: var(--mc-btn-bg);
    border: 2px solid var(--mc-green);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--mc-green);
    box-shadow: 0 0 10px var(--mc-green-glow);
}

.server-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.server-title span {
    color: var(--mc-green);
}

.server-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.server-ip-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--mc-input-bg);
    padding: 8px 12px;
    border: 2px solid var(--mc-border-dark);
    box-shadow: inset 1px 1px 0px var(--mc-border-dark), inset -1px -1px 0px var(--mc-border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.server-ip-badge:hover {
    border-color: var(--mc-green);
    color: var(--mc-green);
    box-shadow: 0 0 12px var(--mc-green-glow);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--mc-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--mc-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* MINECRAFT CONTAINER CARD */
.card {
    background: var(--mc-card-bg);
    border: 3px solid #37393D;
    box-shadow: 
        inset 3px 3px 0px var(--mc-border-light), 
        inset -3px -3px 0px var(--mc-border-dark),
        0 12px 30px rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-sm);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
}

/* CARD HEADER */
.card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-preview {
    width: 76px;
    height: 76px;
    background: var(--mc-input-bg);
    border: 3px solid var(--mc-green);
    box-shadow: inset 2px 2px 0px var(--mc-border-dark), 0 0 15px var(--mc-green-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    border-radius: 2px;
}

.card-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.card-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* FORM CONTROLS */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--mc-green);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px;
    background: var(--mc-input-bg);
    border: 2px solid var(--mc-border-dark);
    box-shadow: inset 2px 2px 0px #08090B, inset -1px -1px 0px #2A2D33;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--mc-green);
    box-shadow: inset 2px 2px 0px #08090B, 0 0 12px var(--mc-green-glow);
}

.toggle-pw-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
}

.toggle-pw-btn:hover {
    color: var(--mc-green);
}

/* MINECRAFT BUTTON STYLING */
.btn {
    width: 100%;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.btn-minecraft-primary {
    background: var(--mc-btn-bg);
    color: var(--mc-green);
    border: 2px solid var(--mc-green);
    box-shadow: 
        inset 2px 2px 0px rgba(255, 255, 255, 0.15),
        inset -2px -2px 0px var(--mc-border-dark),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-minecraft-primary:hover {
    background: var(--mc-btn-hover);
    color: #FFFFFF;
    box-shadow: 
        inset 2px 2px 0px rgba(255, 255, 255, 0.25),
        inset -2px -2px 0px var(--mc-border-dark),
        0 0 15px var(--mc-green-glow);
    transform: translateY(-1px);
}

.btn-minecraft-primary:active {
    box-shadow: inset -2px -2px 0px rgba(255, 255, 255, 0.15), inset 2px 2px 0px var(--mc-border-dark);
    transform: translateY(1px);
}

.btn-minecraft-secondary {
    background: var(--mc-btn-bg);
    color: var(--text-primary);
    border: 2px solid var(--mc-border-light);
    box-shadow: 
        inset 2px 2px 0px rgba(255, 255, 255, 0.1),
        inset -2px -2px 0px var(--mc-border-dark);
}

.btn-minecraft-secondary:hover {
    background: #3B2023;
    border-color: #FF5555;
    color: #FF5555;
    box-shadow: 0 0 12px rgba(255, 85, 85, 0.3);
}

.authme-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--mc-input-bg);
    padding: 10px;
    border: 1px solid var(--mc-border-dark);
    border-radius: var(--radius-sm);
}

.authme-notice i {
    color: var(--mc-green);
}

/* MINECRAFT PROFILE VIEW */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--mc-border-dark);
}

.profile-avatar-wrapper {
    width: 68px;
    height: 68px;
    background: var(--mc-input-bg);
    border: 2px solid var(--mc-green);
    box-shadow: 0 0 12px var(--mc-green-glow);
    border-radius: var(--radius-sm);
    padding: 4px;
}

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

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    width: fit-content;
}

.badge-success {
    background: rgba(85, 255, 32, 0.1);
    color: var(--mc-green);
    border: 1px solid var(--mc-green);
}

.profile-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.username-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.username-sub span {
    color: var(--mc-green);
    font-weight: 600;
}

/* MINECRAFT INVENTORY-SLOT STYLE INFO GRID */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.info-card {
    background: var(--mc-input-bg);
    border: 2px solid var(--mc-border-dark);
    box-shadow: inset 2px 2px 0px #08090B, inset -1px -1px 0px #2A2D33;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    min-width: 0;
}

.info-card:hover {
    border-color: var(--mc-green);
}

.info-icon {
    width: 36px;
    height: 36px;
    background: var(--mc-btn-bg);
    border: 1px solid var(--mc-green);
    border-radius: var(--radius-sm);
    color: var(--mc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

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

.info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.info-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--mc-card-bg);
    border: 2px solid var(--mc-border-light);
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
    animation: slideInRight 0.3s forwards;
}

.toast.toast-error {
    border-color: #FF5555;
    color: #FF5555;
}

.toast.toast-error i {
    color: #FF5555;
}

.toast.toast-success {
    border-color: var(--mc-green);
    color: var(--mc-green);
}

.toast.toast-success i {
    color: var(--mc-green);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* FOOTER */
.footer {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--mc-green);
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 24px 20px;
    }
    .server-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ==========================================================================
   MINECRAFT CHARACTER INVENTORY & TOOLTIP STYLES
   ========================================================================== */
.inventory-section {
    margin-top: 24px;
    background: rgba(18, 22, 28, 0.85);
    border: 2px solid #374151;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.inventory-header {
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.inventory-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inventory-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #9ca3af;
}

.inventory-body-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 860px) {
    .inventory-body-container {
        grid-template-columns: 1fr;
    }
}

/* 3D CHARACTER CARD & ARMOR SLOTS */
.character-preview-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid #374151;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.armor-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

.equipment-slot {
    width: 44px;
    height: 44px;
    background: #1e293b;
    border: 2px solid #475569;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.5);
    cursor: pointer;
}

.equipment-slot:hover {
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.equipment-slot.active-equipped {
    border-color: #3b82f6;
    background: #0f172a;
}

.slot-placeholder {
    color: #475569;
    font-size: 1.2rem;
}

/* 3D Skin Viewer Canvas */
.skin-canvas-wrapper {
    position: relative;
    width: 140px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#skinCanvas {
    width: 140px;
    height: 200px;
    outline: none;
    cursor: grab;
}

#skinCanvas:active {
    cursor: grabbing;
}

.skin-interaction-hint {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: #9ca3af;
    background: rgba(0,0,0,0.7);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #374151;
    pointer-events: none;
}

/* MINECRAFT INVENTORY GRID */
.inventory-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inv-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mc-inventory-grid, .mc-hotbar-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
    background: #111827;
    padding: 10px;
    border: 2px solid #374151;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.mc-slot {
    aspect-ratio: 1 / 1;
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 2px 2px 3px rgba(0,0,0,0.6);
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    user-select: none;
    cursor: default;
}

.mc-slot.has-item {
    cursor: pointer;
}

.mc-slot:hover {
    background: #374151;
    border-color: #64748b;
    transform: scale(1.05);
    z-index: 5;
}

.mc-slot.active-selected {
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5), inset 0 0 5px rgba(245, 158, 11, 0.3);
}

/* Item Graphic Elements */
.mc-item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
    pointer-events: none;
}

.mc-item-count {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 2px 3px #000;
    pointer-events: none;
    z-index: 3;
}

/* Durability Progress Bar */
.mc-durability-bar {
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: #111827;
    border-radius: 1px;
    overflow: hidden;
    pointer-events: none;
}

.mc-durability-fill {
    height: 100%;
    transition: width 0.2s ease;
}

/* ITEM ICON SIZING & SCALING */
.mc-item-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    image-rendering: pixelated;
    transition: transform 0.1s;
}

.mc-item-icon-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WHITE OUTLINE BORDER FOR ENCHANTED ITEMS */
.is-enchanted .mc-item-icon {
    filter: drop-shadow(1px 0 0 #ffffff) drop-shadow(-1px 0 0 #ffffff) drop-shadow(0 1px 0 #ffffff) drop-shadow(0 -1px 0 #ffffff);
}

.mc-item-icon-wrapper.is-enchanted {
    position: relative;
}

.enchant-glint-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-image: url('/resources/barebone/assets/minecraft/textures/misc/enchanted_item_glint.png');
    background-size: 200% 200%;
    background-repeat: repeat;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: enchantGlintMask 2s infinite linear;
    z-index: 2;
    opacity: 0.9;
}

@keyframes enchantGlintMask {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* CLASSIC MINECRAFT ITEM TOOLTIP BOX (DARK GRAY/BLACK/WHITE MONOCHROME) */
.mc-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(14, 14, 18, 0.96);
    border: 2px solid #32323c;
    border-radius: 2px;
    padding: 8px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
    max-width: 320px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #ffffff;
    line-height: 1.4;
    transform: translate(12px, 12px);
    user-select: none;
}

.mc-tooltip .tooltip-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 4px;
    text-shadow: 1px 1px 0 #000;
}

.mc-tooltip .tooltip-ench {
    margin-top: 4px;
    margin-bottom: 4px;
}

.mc-tooltip .tooltip-ench-item {
    color: #777777;
    font-size: 0.78rem;
    text-shadow: 1px 1px 0 #000;
}

.mc-tooltip .tooltip-durability {
    margin-top: 4px;
    font-size: 0.75rem;
    color: #aaaaaa;
}

.mc-tooltip .tooltip-durability-bar {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-top: 3px;
    overflow: hidden;
}

/* SHULKER BOX POPUP GRID INSIDE TOOLTIP */
.shulker-tooltip-grid {
    display: grid;
    grid-template-columns: repeat(9, 24px);
    gap: 3px;
    background: #090314;
    border: 1px solid #3b0764;
    padding: 5px;
    border-radius: 4px;
    margin-top: 8px;
}

.shulker-slot {
    width: 24px;
    height: 24px;
    background: #18092e;
    border: 1px solid #2e105a;
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shulker-slot img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    image-rendering: pixelated;
}

.shulker-slot .shulker-count {
    position: absolute;
    bottom: 0px;
    right: 1px;
    font-size: 0.55rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

/* 3D ISOMETRIC CUBE ITEM STYLING FOR BLOCK ITEMS (SHULKER BOXES, BLOCKS, CHESTS) */
.mc-cube-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 400px;
    pointer-events: none;
}

.mc-cube-3d {
    width: 20px;
    height: 20px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-28deg) rotateY(-45deg);
}

.cube-face {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    box-sizing: border-box;
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(10px);
    background-image: var(--cube-top);
    filter: brightness(1.15);
}

.cube-face.front {
    transform: translateZ(10px);
    background-image: var(--cube-front);
    filter: brightness(0.85);
}

.cube-face.side {
    transform: rotateY(90deg) translateZ(10px);
    background-image: var(--cube-side);
    filter: brightness(0.65);
}

/* CENTERING & BALANCING THE 2 CARDS (PLAYER INFO CARD + FIXED MINECRAFT INVENTORY GUI) */
.profile-split-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.profile-left-card {
    flex: 1 1 360px;
    max-width: 400px;
    min-width: 300px;
    min-height: 498px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* FIXED-SIZE MINECRAFT SURVIVAL INVENTORY GUI (FROM transparent_inventory.png) */
.mc-gui-inventory-fixed {
    width: 528px;
    height: 498px;
    flex: 0 0 528px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    user-select: none;
    background: transparent;
}

/* UNDERLAY MAT LAYER (CHANGES COLOR / GRADIENT) */
.gui-underlay-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 18, 26, 0.85);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, filter 0.3s ease;
    z-index: 1;
}

.gui-underlay-bg.theme-dark {
    background: rgba(16, 18, 26, 0.88);
}

.gui-underlay-bg.theme-emerald {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9), rgba(16, 185, 129, 0.5));
}

.gui-underlay-bg.theme-amethyst {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.9), rgba(168, 85, 247, 0.5));
}

.gui-underlay-bg.theme-nether {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(239, 68, 68, 0.5));
}

.gui-underlay-bg.theme-obsidian {
    background: rgba(8, 9, 12, 0.95);
}

.gui-underlay-bg.theme-clear {
    background: transparent;
    backdrop-filter: none;
}

/* FOREGROUND TRANSPARENT INVENTORY TEXTURE */
.gui-texture-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('/resources/transparent_inventory.png');
    background-size: 528px 498px;
    background-position: 0 0;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 2;
}

/* TOP RIGHT THEME COLOR PICKER TOGGLE BUTTON */
.gui-theme-toggle-box {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 50;
}

.gui-theme-btn {
    width: 28px;
    height: 28px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #334155;
    color: #38bdf8;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
    outline: none;
}

.gui-theme-btn:hover {
    background: #1e293b;
    border-color: #3b82f6;
    color: #fff;
    transform: scale(1.08);
}

.gui-theme-dropdown {
    position: absolute;
    top: 34px;
    right: 0;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 6px;
    width: 130px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

.theme-option:hover {
    background: #1e293b;
    color: #fff;
}

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ARMOR SLOTS (ABSOLUTE POSITIONS AT 3x SCALE - Z-INDEX 10 ON TOP OF TEXTURE) */
.equipment-slot {
    z-index: 10;
}

.equipment-slot.gui-slot-helmet {
    position: absolute;
    left: 24px;
    top: 24px;
}

.equipment-slot.gui-slot-chestplate {
    position: absolute;
    left: 24px;
    top: 78px;
}

.equipment-slot.gui-slot-leggings {
    position: absolute;
    left: 24px;
    top: 132px;
}

.equipment-slot.gui-slot-boots {
    position: absolute;
    left: 24px;
    top: 186px;
}

/* 3D SKIN VIEWER CANVAS BOX */
.gui-skin-canvas-box {
    position: absolute;
    left: 78px;
    top: 24px;
    width: 153px;
    height: 216px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 10;
}

.gui-skin-canvas-box canvas {
    width: 150px;
    height: 210px;
    outline: none;
    pointer-events: none;
}

/* OFFHAND SLOT */
.equipment-slot.gui-slot-offhand {
    position: absolute;
    left: 231px;
    top: 186px;
    width: 48px !important;
    height: 48px !important;
    background: #0d0e11 !important;
    border: 2px solid !important;
    border-color: #050607 #2a2b34 #2a2b34 #050607 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    z-index: 10;
}

.equipment-slot.gui-slot-offhand .slot-placeholder {
    color: #4b5563;
    font-size: 1.1rem;
}

/* MAIN INVENTORY GRID (27 SLOTS = 3 ROWS x 9 COLS AT 3x SCALE) */
.gui-main-inventory-grid {
    position: absolute;
    left: 24px;
    top: 252px;
    width: 480px;
    height: 162px;
    display: grid;
    grid-template-columns: repeat(9, 48px);
    grid-template-rows: repeat(3, 48px);
    gap: 6px;
    z-index: 10;
}

/* HOTBAR GRID (9 SLOTS = 1 ROW x 9 COLS AT 3x SCALE) */
.gui-hotbar-grid {
    position: absolute;
    left: 24px;
    top: 426px;
    width: 480px;
    height: 48px;
    display: grid;
    grid-template-columns: repeat(9, 48px);
    gap: 6px;
    z-index: 10;
}

/* CUSTOM BACKGROUND MODAL STYLING */
.bg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bg-modal-content {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
}

.bg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.bg-modal-header h3 {
    margin: 0;
    color: #38bdf8;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bg-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.bg-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: #10b981;
    letter-spacing: 0.5px;
}

.bg-modal-title i {
    font-size: 1.2rem;
    color: #34d399;
}

.bg-dropzone {
    border: 2px dashed #10b981;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bg-dropzone:hover, .bg-dropzone.dragover {
    background: rgba(16, 185, 129, 0.12);
    border-color: #34d399;
    transform: translateY(-2px);
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #10b981;
}

.dropzone-text strong {
    display: block;
    color: #f1f5f9;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.dropzone-text span {
    font-size: 0.78rem;
    color: #94a3b8;
}

.bg-divider {
    text-align: center;
    margin: 18px 0;
    font-size: 0.78rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.bg-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.bg-preset-card {
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.bg-preset-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-preset-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 6px;
    text-align: center;
}

.bg-preset-card:hover {
    border-color: #38bdf8;
    transform: scale(1.02);
}

.bg-modal-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #1e293b;
    padding-top: 12px;
}

/* HOTBAR GRID (9 SLOTS = 1 ROW x 9 COLS AT 3x SCALE) */
.gui-hotbar-grid {
    position: absolute;
    left: 24px;
    top: 426px;
    width: 480px;
    height: 48px;
    display: grid;
    grid-template-columns: repeat(9, 48px);
    column-gap: 6px;
    background: transparent;
    padding: 0;
    border: none;
}

/* TRANSPARENT OVERLAY SLOTS (FITS INVENTORY.PNG DRAWN SLOTS) */
.mc-gui-inventory-fixed .mc-slot, 
.mc-gui-inventory-fixed .equipment-slot {
    width: 48px !important;
    height: 48px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background 0.1s;
}

.mc-gui-inventory-fixed .mc-slot:hover, 
.mc-gui-inventory-fixed .equipment-slot:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.mc-gui-inventory-fixed .mc-slot.active-selected {
    background: rgba(245, 158, 11, 0.35) !important;
    box-shadow: inset 0 0 0 2px #f59e0b !important;
}

/* REGISTRATION & EMAIL OTP STYLES */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--mc-border-dark);
    border-radius: var(--radius-sm);
}

.step-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.step-badge.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.step-line {
    flex: 1;
    max-width: 40px;
    height: 2px;
    background: var(--mc-border-dark);
}

.required-tag {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
    margin-left: 4px;
}

.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.otp-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.88rem;
    color: #34d399;
    margin-bottom: 20px;
}

.otp-notice-box i {
    font-size: 1.4rem;
    margin-top: 2px;
    color: #10b981;
}

.warning-banner-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.88rem;
    color: #fbbf24;
    margin-bottom: 20px;
}

.warning-banner-box i {
    font-size: 1.4rem;
    margin-top: 2px;
    color: #f59e0b;
}

.otp-resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.btn-link-action {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s;
}

.btn-link-action:hover:not(:disabled) {
    color: #0284c7;
}

.btn-link-action:disabled {
    cursor: not-allowed;
    text-decoration: none;
}

