@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Cinzel+Decorative:wght@700&family=Lato:wght@400;700&display=swap');

/* --- 1. RESET & BASE (Scroll Global) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: auto;
    overflow-x: hidden;
    background-color: #0f0f23;
}

body {
    font-family: 'Cinzel', serif;
    line-height: 1.6;
    color: #e8e8e8;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    /* Le fond reste fixe pendant le scroll */

    min-height: 100vh;
    width: 100%;
    position: relative;
    display: block;
    overflow: visible;
    /* Autorise le scroll naturel */
}

.hidden {
    display: none !important;
}

/* --- GESTION CLAVIER IOS --- */
body.keyboard-open .bottom-nav {
    display: none !important;
}


/* --- 2. HEADER APP (Sticky) --- */
.app-header {
    text-align: center;
    padding: 0.5rem 1rem;
    z-index: 100;

    position: sticky;
    /* Reste en haut lors du scroll */
    top: 0;

    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.app-header h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(45deg, #7877c6, #ff77c6, #78dbe2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.3);
}

.app-header .subtitle {
    font-size: 0.75rem;
    color: #78dbe2;
    font-style: italic;
    opacity: 0.8;
}

/* Boutons Header */
.auth-btn-icon {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 5px;
}

.auth-btn-icon:hover {
    transform: scale(1.1);
}

/* Positionnement et Z-Index des boutons (Fix Clic) */
#auth-container {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 2000 !important;
    pointer-events: auto;
}

.auth-btn-icon.left-btn {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    z-index: 2000 !important;
    pointer-events: auto;
}

/* Ajustement Email */
#user-info {
    text-align: right;
}

#user-email-display {
    display: block;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- 3. CONTAINER --- */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    overflow: visible;
    /* Laisse le contenu déborder pour le scroll body */

    padding: 1rem;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    /* Espace pour la nav */
}

/* Tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

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


/* --- 4. NAV BAS (Fixed) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(120, 119, 198, 0.4);
    display: flex;
    justify-content: space-around;
    align-items: center;

    padding-bottom: env(safe-area-inset-bottom);
    height: calc(65px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
    background: none;
    border: none;
    color: #7877c6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s;
    padding-top: 5px;
    -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
    color: #78dbe2;
    text-shadow: 0 0 15px rgba(120, 219, 226, 0.5);
}

.nav-item.active .nav-icon {
    transform: translateY(-3px);
}

.nav-icon {
    font-size: 1.6rem;
    margin-bottom: 2px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-label {
    font-size: 0.7rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- 5. COMPOSANTS DE FORMULAIRE --- */
input,
select,
textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #78dbe2;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(120, 219, 226, 0.2);
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
    margin: 2rem 0;
}

.section-title {
    color: #fff;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 10;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(120, 119, 198, 0.3);
}


/* --- 6. HÉROS --- */
.identity-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(120, 119, 198, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-height: 130px;
}

.id-photo-wrapper {
    width: 100%;
    height: 100%;
    border-right: 2px solid rgba(120, 219, 226, 0.3);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.id-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#imagePlaceholder {
    font-size: 2rem;
    opacity: 0.5;
}

.id-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.id-input-main {
    font-family: 'Cinzel', serif !important;
    font-size: 1.5rem !important;
    font-weight: bold;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(120, 119, 198, 0.3) !important;
    border-radius: 0 !important;
}

.id-input-sub {
    font-family: 'Cinzel', serif !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    color: #78dbe2 !important;
}

.id-meta-grid {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.5rem;
}

.id-meta-grid input,
.id-meta-grid select {
    padding: 0.4rem;
    font-size: 0.9rem;
}

#toggle-details {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.7rem;
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid #7877c6;
    padding: 2px 10px;
    border-radius: 20px;
    color: #ccc;
    cursor: pointer;
    z-index: 10;
}

#extra-identity {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: fadeIn 0.3s;
}

/* Stats */
.stats-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 12px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.2rem;
}

.stat-card.hp {
    background: linear-gradient(135deg, rgba(50, 0, 0, 0.4), rgba(20, 0, 0, 0.2));
    border-color: rgba(255, 100, 100, 0.3);
    padding: 1rem;
}

.stat-card.hp label {
    color: #ff8888;
    font-weight: bold;
}

.dual-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stat-input {
    text-align: center;
    font-family: 'Cinzel', serif !important;
    font-weight: bold;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.stat-input.big {
    font-size: 2.5rem !important;
    width: 80px !important;
    color: #fff;
}

.stat-input.small {
    font-size: 1.5rem !important;
    width: 50px !important;
    color: #aaa;
}

.stat-input.medium {
    font-size: 1.8rem !important;
    width: 100% !important;
}

.enhanced-input-wrapper {
    justify-content: center;
    margin-top: 5px;
}

.stat-adjust-btn {
    transition: transform 0.1s;
    user-select: none;
}

.stat-adjust-btn:active {
    transform: scale(0.9);
}

/* Joyaux */
.gem-selector-compact {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: 15px;
    flex-wrap: wrap;
}

.gem-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    user-select: none;
    position: relative;
}

.gem-option input {
    display: none;
}

.gem-option.selected {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px currentColor;
}

.gem-option.sapphire.selected {
    border-color: #4fb3d9;
    color: #4fb3d9;
    box-shadow: 0 0 15px #4fb3d9;
}

.gem-option.amethyst.selected {
    border-color: #b668c4;
    color: #b668c4;
    box-shadow: 0 0 15px #b668c4;
}

.gem-option.citrine.selected {
    border-color: #f4d03f;
    color: #f4d03f;
    box-shadow: 0 0 15px #f4d03f;
}

.gem-option.ruby.selected {
    border-color: #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 0 15px #ff6b6b;
}

.gem-option.emerald.selected {
    border-color: #4ecdc4;
    color: #4ecdc4;
    box-shadow: 0 0 15px #4ecdc4;
}

.gem-option.diamond {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.5s;
}

.gem-option.diamond.selected {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px #ffffff, inset 0 0 10px #ffffff;
    transform: scale(1.15);
}

.gem-option.diamond.revealed {
    display: flex !important;
    animation: popIn 0.6s ease-out forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}


/* --- 7. GRIMOIRE (RESPONSIVE) --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.skill-item label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #e0e0e0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-input {
    width: 50px !important;
    text-align: center;
    padding: 0.2rem !important;
    background: rgba(0, 0, 0, 0.5) !important;
    font-family: 'Cinzel', serif !important;
    font-weight: bold;
}

/* LISTE DES SORTS RESPONSIVE */
.spells-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .spells-list {
        grid-template-columns: 1fr 1fr;
    }
}

.spell-card {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.9), rgba(30, 30, 50, 0.8));
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-left: 4px solid #78dbe2;
    border-radius: 10px;
    padding: 1rem;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding-right: 40px;
    transition: transform 0.3s ease;
}

.spell-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.spell-input-name {
    flex: 2;
    font-weight: bold;
    color: #78dbe2 !important;
    border-bottom: 1px solid rgba(120, 219, 226, 0.3) !important;
    background: none !important;
    border: none !important;
    padding-left: 0 !important;
    font-family: 'Cinzel', serif !important;
}

.spell-input-meta {
    flex: 0.8;
    text-align: center;
    font-size: 0.85rem !important;
    padding: 0.4rem !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 4px;
    font-family: 'Lato', sans-serif !important;
}

.spell-desc {
    width: 100%;
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    color: #ddd;
    font-size: 0.95rem;
    resize: none;
    overflow-y: hidden;
    min-height: 60px;
    font-family: 'Lato', sans-serif !important;
}

.btn-dashed {
    width: 100%;
    border: 2px dashed rgba(120, 119, 198, 0.4);
    background: rgba(120, 119, 198, 0.1);
    color: #aaa;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
}

.btn-dashed:hover {
    background: rgba(120, 119, 198, 0.2);
    color: #fff;
    border-color: #78dbe2;
}

/* CONTROLES SORTS */
.spell-controls {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(120, 119, 198, 0.2);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.control-btn {
    background: none;
    border: none;
    color: #7877c6;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    width: 100%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.control-btn.delete {
    color: #ff6b6b;
    font-size: 1rem;
    margin-bottom: auto;
    padding-top: 10px;
}

.control-btn.move-up {
    margin-top: auto;
}

.control-btn.move-down {
    margin-bottom: 10px;
}

@keyframes highlightMove {
    0% {
        box-shadow: 0 0 5px #78dbe2;
        transform: scale(1.02);
    }

    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

.moved-item {
    animation: highlightMove 0.5s ease;
}


/* --- 8. JOURNAL --- */
.gold-banner {
    background: linear-gradient(90deg, #b8860b 0%, #f7ef8a 50%, #b8860b 100%);
    color: #333;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    border: 1px solid #ffd700;
}

.gold-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gold-input {
    background: none !important;
    border: none !important;
    font-size: 2.2rem !important;
    font-weight: bold;
    color: #422a02 !important;
    width: 120px;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    padding: 0 !important;
    font-family: 'Cinzel', serif !important;
}

.gold-label {
    font-weight: bold;
    font-family: 'Cinzel Decorative', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

details {
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: 0.8rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(120, 119, 198, 0.15);
    transition: all 0.3s;
}

details[open] {
    border-color: rgba(120, 119, 198, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

details summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #c0c0e8;
    font-family: 'Cinzel', serif;
    list-style: none;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
}

details[open] summary {
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    color: #78dbe2;
}

details[open] summary::after {
    content: '−';
}

details textarea {
    width: 100%;
    border: none !important;
    padding: 1rem;
    background: none !important;
    color: #e0e0e0;
    min-height: 150px;
    line-height: 1.6;
    font-family: 'Lato', sans-serif !important;
    overflow-y: hidden;
    resize: none;
}


/* --- STYLE ORDO --- */
.directive-card {
    background: rgba(10, 0, 20, 0.6);
    border: 1px solid #9b59b6;
    border-right: 4px solid #9b59b6;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.1);
}

.directive-title {
    color: #d2b4de;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.directive-content p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.directive-content strong {
    color: #9b59b6;
}

.directive-reward {
    margin-top: 0.8rem;
    padding: 0.5rem;
    background: rgba(155, 89, 182, 0.15);
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    border: 1px dashed #9b59b6;
}

.ordo-input-group {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.ordo-mini-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #9b59b6;
    padding: 0.4rem;
    font-size: 0.9rem;
    color: #d2b4de;
    flex: 1;
    border-radius: 4px;
}

.btn-ordo-validate {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    border-radius: 4px;
}

.btn-ordo-validate:hover {
    background: #8e44ad;
}


/* --- STYLE TECHNOCHIMIE --- */
.recipe-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #e67e22;
    border-left: 4px solid #e67e22;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.5s ease;
}

.recipe-title {
    color: #e67e22;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    border-bottom: 1px solid rgba(230, 126, 34, 0.3);
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
}

.recipe-content p {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #ddd;
}

.recipe-content strong {
    color: #f39c12;
}


/* --- STYLE NEZRAHIM (DEEP ABYSS) --- */
#secret-nezrahim {
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020f12 0%, #052025 100%);
    border: 1px solid rgba(43, 122, 112, 0.4);
    box-shadow: 0 0 40px rgba(20, 80, 70, 0.1), inset 0 0 60px rgba(0, 5, 5, 0.9);
}

#secret-nezrahim .section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #80cbc4, #548f9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(43, 122, 112, 0.3);
    border-bottom: 1px solid rgba(43, 122, 112, 0.3);
}

.secret-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0bec5;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.nezrahim-input-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 2rem;
}

#nezrahim-code-input {
    width: auto !important;
    flex: 1;
    margin: 0;
    background: rgba(3, 15, 18, 0.9) !important;
    border: 1px solid #266b63 !important;
    color: #80cbc4 !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    font-family: 'Lato', sans-serif;
}

#nezrahim-code-input::placeholder {
    color: rgba(128, 203, 196, 0.3);
}

#nezrahim-unlock-btn {
    width: auto !important;
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, #10383a, #1a5054) !important;
    border: 1px solid rgba(128, 203, 196, 0.2);
    color: #b2dfdb !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

#nezrahim-visions-list {
    border-top: 1px solid rgba(38, 166, 154, 0.3);
    padding-top: 1.5rem;
}

#nezrahim-notes {
    margin-top: 1.5rem;
    border: 1px solid #266b63 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #e0f2f1 !important;
}

#no-vision-msg {
    text-align: center;
    color: #546e7a;
    font-style: italic;
}

.vision-card {
    background: rgba(4, 18, 20, 0.8);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    position: relative;
    overflow: hidden;
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, #26a69a, #455a64) 1 100%;
    animation: fadeIn 1s ease-out;
    border-top: 1px solid rgba(128, 203, 196, 0.05);
}

@keyframes etherPulse {
    0% {
        box-shadow: inset 0 0 5px rgba(38, 166, 154, 0.02);
    }

    50% {
        box-shadow: inset 0 0 20px rgba(38, 166, 154, 0.08);
    }

    100% {
        box-shadow: inset 0 0 5px rgba(38, 166, 154, 0.02);
    }
}

.vision-card {
    animation: etherPulse 6s infinite alternate;
}

.vision-number {
    position: absolute;
    top: -5px;
    right: 10px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: rgba(77, 182, 172, 0.05);
    pointer-events: none;
    z-index: 0;
}

.vision-text {
    position: relative;
    z-index: 1;
    font-family: 'Lato', sans-serif;
    font-style: italic;
    color: #b2dfdb;
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.vision-text::before {
    content: '✦';
    color: #26a69a;
    margin-right: 8px;
    font-size: 0.8rem;
    opacity: 0.6;
}


/* --- 9. ACTIONS --- */
.action-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.btn {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.8) 0%, rgba(120, 219, 226, 0.8) 100%);
    border: 1px solid rgba(120, 119, 198, 0.6);
    color: #ffffff;
    padding: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: scale(0.98);
}

.btn-danger {
    background: linear-gradient(135deg, #552222, #883333);
    border-color: #ff6b6b;
    font-size: 0.9rem;
    padding: 0.8rem;
}

/* --- STYLE GULVARIS --- */
#gulvaris-item-display {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gulvaris-history-list li {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(155, 89, 182, 0.2);
    display: flex;
    align-items: center;
}

#gulvaris-history-list li::before {
    content: '🔹';
    font-size: 0.7rem;
    margin-right: 8px;
    opacity: 0.7;
}

/* Animation quand on clique */
@keyframes shakeBag {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.shaking {
    animation: shakeBag 0.5s ease-in-out;
}