:root {
    --gold: #d4af37;
    --parchment: #d4a76a;
    --dark: #0f0f12;
    --app-max-width: 540px;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

* { margin: 0; padding: 0; box-sizing: border-box;  -webkit-tap-highlight-color: transparent;}
html, body { 
    height: 100%; 
    width: 100%;
    overflow: hidden;
}
body { 
    font-family: 'Raleway', sans-serif; 
    background: radial-gradient(circle, #1a2a3a 0%, #050505 100%);
    color: white;
}

ul {
    padding-left: 30px;
    padding-top: 6px;
}

ol {
    list-style-position: inside;
    padding-left: 20px;
}

.link-text {
    color: rgb(253 253 255);
    font-weight: bold;
}

.link-text:hover {
    color: rgb(253 253 255);
}

.link-text:active {
    color: rgb(253 253 255);
}

.link-text:visited {
    color: rgb(253 253 255);
}

#app {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle, #281837 0% 0%, #050505 100%);
}

.main-header {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #1e1c23 0%, #0d0c0e 100%);
    border-bottom: 1px solid #4d453938;
    flex-shrink: 0;
    z-index: 90;
    position: relative;
}

.refresh-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s, opacity 1s ease-out;
    -webkit-tap-highlight-color: transparent;
}

.refresh-btn.fade-out {
    opacity: 0;
    pointer-events: none;
}

.refresh-btn:active {
    color: var(--gold);
}

.logo {
    font-family: 'Cinzel';
    color: #c9d5db;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 400;
    text-transform: uppercase;
}

.logo sup {
    font-size: 0.6rem;
    font-family: 'Raleway', sans-serif;
}

#main-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-image: url(../images/matrix-brick-10.png);
    background-size: 500px;
}

/* --- Telas e Views --- */
.view { height: 100%; padding-top: 20px; padding-bottom: 90px; padding-left: 8px; padding-right: 8px; overflow-y: auto; display: none; }
.view.active-screen { display: block; }

.full-view { 
    position: fixed; 
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    z-index: 1200; 
    background: radial-gradient(circle, #2a1a2a 0%, #050505 100%); 
    padding-bottom: 20px; 
    display: none; 
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
}

.full-view.active-viewer { display: block !important; }
.hidden { display: none !important; }

/* --- Botão Voltar (Android Style) --- */
.sticky-header { padding: 15px; position: sticky; top: 0; z-index: 10; background: #121212d6;}
.mega-back-btn { 
    width: 100%; background: var(--gold); color: #000; border: none; 
    padding: 12px; font-family: 'Cinzel'; font-weight: 700; border-radius: 12px;
    font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 15px;
}

/* --- Pack --- */
.pack-wrapper {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    padding: 10px 0 30px 0;
}

#pack-container {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
}

@media (hover: hover) {
    #pack-container:hover {
        transform: rotateY(8deg) rotateX(4deg);
    }
}

#pack-asset { 
    width: 200px; 
    transition: 0.3s; 
    filter: drop-shadow(0px 30px 40px rgba(188, 169, 199, 0.15)); 
    z-index: 5; 
    animation: idle-rotate 5s infinite ease-in-out;
}

@keyframes idle-rotate {
    0% { transform: rotateY(0) rotateX(0); }
    25% { transform: rotateY(10deg) rotateX(6deg); }
    75% { transform: rotateY(-10deg) rotateX(6deg); }
}

#pack-asset.animating { animation: dramatic-pack 2s forwards !important; }

.pack-reward-arrival {
    animation: pack-reward-arrival 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pack-reward-arrival {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.btn-gold-glow { 
    background: var(--gold); color: #2a1b0a; border: none; padding: 15px 30px; 
    font-family: 'Cinzel';
    font-weight: 700; cursor: pointer; border-radius: 4px; 
    box-shadow: 0 0 15px rgba(212,175,55,0.4);
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-gold-glow:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(212,175,55,0.6); }

.btn-add-homescreen { 
    background: #d5ae26; color: #2a1b0a; border: none; padding: 15px 30px; 
    font-family: 'Raleway', sans-serif;
    font-weight: 700; cursor: pointer; border-radius: 4px; 
    font-size: 1rem;
    transition: 0.3s;
    border-radius: 12px;
    padding: 10px 15px;
    gap: 6px;
    display: flex;
    align-items: center;
    max-width: 320px;
}
.btn-add-homescreen:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(212,175,55,0.6); }

.btn-add-homescreen i {
    font-size: 1.3rem;
}

.tap-to-open {
    text-align: center;
    color: var(--gold);
    font-family: 'Cinzel';
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
    width: 200px;
}
.tap-to-open i { font-size: 1.5rem; margin-bottom: 5px; display: block; }
.tap-to-open p { font-family: 'Raleway'; font-weight: bold; font-size: 1.4rem; letter-spacing: 2px; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes dramatic-pack {
    0% { transform: scale(1); }
    2% { transform: scale(0.9) rotate(-3deg); }
    4% { transform: scale(0.9) rotate(3deg); }
    8% { transform: scale(0.9) rotate(-3deg); }
    12% { transform: scale(0.9) rotate(3deg); }
    17% { transform: scale(0.9) rotate(-3deg); }
    24% { transform: scale(0.9) rotate(3deg); }
    45% { transform: scale(0.9) rotate(-3deg); filter: drop-shadow(0px 30px 40px rgba(188, 169, 199, 0.2)) }
    60% { transform: scale(0.85) rotate(0); filter: drop-shadow(0 0 0 rgba(0,0,0,0)) brightness(1); }
    85% { transform: scale(1.8); filter: brightness(3) blur(2px); opacity: 1; }
    100% { transform: scale(10); filter: brightness(10) blur(10px); opacity: 0; }
}

#timer-display {
    font-family: 'Cinzel';
    text-align: center;
    color: var(--gold);
    font-size: 2.2rem;
    margin: 0 0 0 0;
    text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

.timer-title { font-family: 'Raleway'; font-weight: 400; text-align: center; font-size: 1rem; color: #ede9dd; opacity: 0.8; }

.advice-text {
    font-weight: 400;
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
    max-width: 280px;
    line-height: 1.4;
    margin: 15px 0;
    min-height: 3em;
}

.timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 15px 15px 10px 15px;
    background: linear-gradient(145deg, rgb(64 35 9 / 5%) 0%, rgb(101 65 12 / 13%) 100%);
    border-radius: 8px;
    border: 1px solid rgb(185 185 185 / 10%);
    box-shadow: 0 10px 30px rgb(0 0 0 / 14%), inset 0 0 20px rgba(212, 175, 55, 0.05);
    max-width: 320px;
}

.share-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 20px;
    background: linear-gradient(145deg, rgb(64 35 9 / 5%) 0%, rgb(101 65 12 / 13%) 100%);
    border-radius: 8px;
    border: 1px solid rgb(185 185 185 / 10%);
    box-shadow: 0 10px 30px rgb(0 0 0 / 14%), inset 0 0 20px rgba(212, 175, 55, 0.05);
    max-width: 320px;
}

.share-section img{
    filter: drop-shadow(0px 10px 10px rgba(188, 169, 199, 0.2));
    height: 80px;
}

.share-title { 
    display: flex;
    font-family: 'Cinzel';
    font-size: 1.1rem; 
    color: var(--gold); 
    margin-bottom: 6px; 
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    gap: 8px;
}

.share-subtitle {
    font-size: 1rem;
    color: #ddd;
    text-align: center;
    margin-top: -5px;
    margin-bottom: 6px;
    line-height: 1.4;
    opacity: 0.9;
}

#share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-popup-content {
    position: relative;
    z-index: 1301;
    background: radial-gradient(circle, rgb(83 53 13 / 69%) 0%, rgb(14 12 7) 100%);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.share-popup-content img {
    filter: drop-shadow(0px 10px 10px rgba(188, 169, 199, 0.2));
    height: 80px;
}

.share-popup-content h3 { font-family: 'Cinzel'; color: var(--gold); margin-bottom: 6px; }
.share-popup-content p { font-size: 1rem; line-height: 1.4; color: #ddd; margin-bottom: 12px; }

.btn-confirm-share {
    background-color: #d37e00;
    background-image: radial-gradient(100% 100% at 100% 0, #FF9800 0, #FF5722 100%);
    box-shadow: rgb(210 135 38 / 18%) 0 0 10px 0px, rgb(211 127 61 / 36%) 0 0px 10px 0px, rgb(131 59 18 / 59%) 0 -4px 0 inset;;
    padding: 8px 16px 12px 16px;
    color: #fff; border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700; cursor: pointer; border-radius: 12px; 
    font-size: 1rem;
    max-width: 320px;
    position: relative;
    align-items: center;
    gap: 6px;
    display: flex;
    transition: 0.2s;
}

.btn-confirm-share:hover { transform: scale(1.05); }

.btn-confirm-share i {
    font-size: 1.7rem;
}

.btn-confirm-share span {
    min-width: 196px;
}

.btn-share {
    font-family: 'Raleway', sans-serif;
    background-color: #25d366;
    background-image: radial-gradient(100% 100% at 100% 0, #25d366 0, #1faf55 100%);
    box-shadow: rgb(210 135 38 / 18%) 0 0 10px 0px, rgb(145 227 165 / 32%) 0 0px 10px 0px, rgb(97 97 97 / 50%) 0 -4px 0 inset;
    padding: 8px 16px 12px 16px;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-share:hover { transform: scale(1.05); }

.f-size-1-5 {
    font-size: 1.5rem;
}

.f-size-2 {
    font-size: 2rem;
}

@keyframes burst { 50% { transform: scale(1.3) rotate(10deg); filter: brightness(2); } 100% { transform: scale(0); opacity: 0; } }
.card-mtg {
    width: 280px; height: 400px; background: #121212; border: 1px solid #333;
    border-radius: 8px; padding: 10px; position: relative; box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}
.card-border-gold { border: 1px solid var(--gold); border-radius: 4px; height: 100%; padding: 4px 8px 8px 8px; display: flex; flex-direction: column; }

.card-title { 
    font-family: 'Cinzel'; 
    font-weight: 700; 
    border-bottom: 1px solid var(--gold); 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
    color: var(--gold); 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-number {
    font-size: 1.3rem;
    margin-right: 5px;
    vertical-align: middle;
}

.card-name-text {
    vertical-align: middle;
    font-weight: 600;
}

.card-type-icon { font-size: 0.8rem; opacity: 0.9; }
.card-art { width: 100%; height: 180px; background-size: cover; background-position: center; border: solid 1px #272727; border-radius: 4px; }

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
    margin-bottom: 6px;
    margin-left: -3px;
    margin-right: -3px;
    font-size: 0.9em;
    font-family: 'Cinzel';
    font-weight: 600;
    color: #ffffffcf;
    letter-spacing: 0.5px;
}

.theme-gold .card-details {
    background: radial-gradient(circle, rgb(215 185 58) 0%, rgb(145 85 51) 100%);
    border: solid 1px #b78348;
}

.theme-silver .card-details {
    background: radial-gradient(circle, rgb(12 118 175) 0%, rgb(6 49 113) 100%);
    border: solid 1px #36468b;
}
.theme-purple .card-details {
    background: radial-gradient(circle, rgb(117 12 175) 0%, rgb(72 6 113) 100%);
    border: solid 1px #6d368b;
}

.card-text { flex: 1; padding: 4px; font-size: 0.8rem; line-height: 1.4; color: #ffffffcf; }
.card-quote { font-family: "Merriweather", serif; font-size: 0.9rem; font-weight: 300; color: #ffffffcf; margin-top: 5px; margin-bottom: 4px; text-align: left; }

.quote-author-name {
    font-size: 0.8rem;
    color: #e7e7e79e;
    font-style: italic;
}

.btn-parchment { 
    color: #352009;
    background-color: #e8af14;
    background-image: radial-gradient(100% 100% at 100% 0, #caa42a 0, #fab606 100%);
    box-shadow: rgb(210 135 38 / 18%) 0 0 10px 0px, rgb(221 186 118 / 33%) 0 0px 12px 2px, rgb(104 70 36 / 50%) 0 -4px 0 inset;
    padding: 10px 16px 14px 16px; 
    border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700; cursor: pointer; border-radius: 12px; 
    font-size: 1rem;
    max-width: 320px;
    position: relative;
    align-items: center;
    transition: 0.2s;
}

.btn-parchment:hover {
    transform: scale(1.05);
}

.btn-yellow-with-icon { 
    color: #352009;
    background-color: #e8af14;
    background-image: radial-gradient(100% 100% at 100% 0, #caa42a 0, #fab606 100%);
    box-shadow: rgb(210 135 38 / 18%) 0 0 10px 0px, rgb(221 186 118 / 33%) 0 0px 12px 2px, rgb(104 70 36 / 50%) 0 -4px 0 inset;
    padding: 10px 16px 14px 16px; 
    border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700; cursor: pointer; border-radius: 12px; 
    font-size: 1rem;
    max-width: 320px;
    position: relative;
    align-items: center;
    display: flex;
    gap: 8px;
    transition: 0.2s;
}

.btn-yellow-with-icon:hover {
    transform: scale(1.05);
}

.btn-yellow-with-icon i {
    font-size: 1.5rem;
}

.btn-orange-with-icon { 
    color: #fff;
    background-color: #f67800;
    background-image: radial-gradient(100% 100% at 100% 0, #f67800 0, #bd5400 100%);
    box-shadow: rgb(210 135 38 / 18%) 0 0 10px 0px, rgb(169 127 45 / 25%) 0 0px 12px 2px, rgb(116 42 12 / 50%) 0 -4px 0 inset;
    padding: 10px 16px 14px 16px; 
    border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700; cursor: pointer; border-radius: 12px; 
    font-size: 1rem;
    max-width: 320px;
    position: relative;
    align-items: center;
    display: flex;
    gap: 8px;
    transition: 0.2s;
}

.btn-orange-with-icon:hover {
    transform: scale(1.05);
}

.btn-orange-with-icon i {
    font-size: 1.5rem;
}

.btn-notification { 
    margin-top: 10px; 
    padding: 10px 15px;
    display: flex;
    font-size: 1rem;
    background: #d5ae26; color: #2a1b0a; border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 700; cursor: pointer; border-radius: 12px; 
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    max-width: 320px;
    position: relative;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.btn-notification:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(212,175,55,0.6); }

.btn-bookmark {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgb(255, 255, 255);
    padding: 8px 16px 8px 16px;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    flex-direction: row !important;
    position: relative !important;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-bookmark:hover {
    transform: scale(1.05);
}

.btn-card-share-container {
    background: #d7d7d7;
    color: #000;
    box-shadow: rgb(211 187 155 / 18%) 0 0 10px 6px, rgb(237 237 237 / 0%) 0 0px 10px 0px, rgb(97 97 97 / 42%) 0 -5px 0 inset;
    padding: 8px 16px 12px 16px;
    border: none;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    flex-direction: row !important;
    position: relative !important;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-card-share-container:hover {
    transform: scale(1.05);
}

.btn-card-share-container span,
.btn-card-share-container b {
    display: none;
}

#card-share-container {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 15px !important;
}

.download-anim {
    animation: download-pulse 1s infinite;
}

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

/* --- Coleção e Grid --- */
.counter-badge { background: #ebebeb; color: #000; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; margin-top: 4px; display: inline-block; }

.collection-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ababab;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cinzel';
    font-size: 0.8rem;
    transition: 0.3s;
}

.tab-btn[data-type="sages"].active { background: #191a1a; color: var(--gold); border-color: var(--gold); }
.tab-btn[data-type="seeds"].active { background: #11171c; color: #a2b6c7; border-color: #9cb3d9; }
.tab-btn[data-type="symbols"].active { background: #191a1a; color: #b19cd9; border-color: #b19cd9; }
.tab-btn[data-type="bookmarks"].active { background: #191a1a; color: #bdbcbc; border-color: #9f9f9f; }

/* Notification system */
.nav-btn { position: relative; }
.nav-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(5px);
    background: #ff3b30;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    z-index: 10;
}

.new-indicator {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ff3b30;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
    z-index: 50;
    border: 1px solid white;
    animation: pulse-light 2s infinite;
}

.btn-parchment .new-indicator {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    top: -8px;
    right: -8px;
}

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

#collection-screen.active-screen {
    display: flex;
    flex-direction: column;
}

.collection-header {
    flex-shrink: 0;
    margin-bottom: 0px;
    margin-left: -8px;
    margin-right: -8px;
    text-align: center;
    position: sticky;
    top: -22px;
    background-color: #141317;
    z-index: 80;
    margin-top: -20px;
    padding: 10px;
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.5);
    border-bottom: solid 1px #2f2f2f;
}

.collection-header h2 {
    font-size: 1.2rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 25px;
    padding: 10px;
    width: 100%;
    min-height: min-content;
    justify-items: center;
    background-image: url(../images/matrix-brick-10.png);
    background-size: 500px;
}

.grid-layout .locked {
    border: solid 2px #a9a9a92b;
    border-radius:8px;
}


/* Zoomed Grid View */
.grid-layout.grid-zoom {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.grid-layout.grid-zoom .mini-card-container {
    width: 280px;
    height: 400px;
}
.grid-layout.grid-zoom .mini-card-scaler {
    transform: scale(1);
}
.grid-layout.grid-zoom .locked::after {
    font-size: 4rem;
}

@media (max-width: 600px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2px;
        row-gap: 18px;
    }
    .grid-layout.grid-zoom {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}

.btn-zoom {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: 0.3s;
}

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

.btn-zoom i {
    font-size: 1.5rem;
}

/* Temas de Cartas */
.card-mtg.theme-gold { border-color: #333; background: radial-gradient(circle, #231305 0%, #0e0e0e 100%) }
.card-mtg.theme-gold .card-border-gold { border-color: var(--gold); }
.card-mtg.theme-gold .card-title { color: var(--gold); border-bottom-color: var(--gold); }

.card-mtg.theme-silver { border-color: #2a2a2a; background: radial-gradient(circle, #1e2b45 0%, #131721 100%) }
.card-mtg.theme-silver .card-border-gold { border-color: #c0c0c0; }
.card-mtg.theme-silver .card-title { color: #d1d1d1; border-bottom-color: #c0c0c0; }
.card-mtg.theme-silver .btn-parchment { 
    background-color: #d2d2d2;
    background-image: radial-gradient(100% 100% at 100% 0, #e9e9e9 0, #c5c5c5 100%);
    box-shadow: rgb(170 160 146 / 7%) 0 0 10px 0px, rgb(204 197 184 / 16%) 0 0px 12px 2px, rgb(81 79 99 / 46%) 0 -4px 0 inset;
    color: #090d21;
}

.card-mtg.theme-purple { border-color: #353559; background: radial-gradient(circle, #28203b 0%, #0c0c0c 100%)}
.card-mtg.theme-purple .card-border-gold { border-color: #b19cd9; }
.card-mtg.theme-purple .card-title { color: #b19cd9; border-bottom-color: #b19cd9; }
.card-mtg.theme-purple .btn-parchment {
    background-color: #b8a4c4;
    background-image: radial-gradient(100% 100% at 100% 0, #bcadc6 0, #af90c0 100%);
    box-shadow: rgb(170 160 146 / 7%) 0 0 10px 0px, rgb(204 197 184 / 16%) 0 0px 12px 2px, rgb(84 55 92 / 50%) 0 -4px 0 inset;;
    color: #190716; 
}

/* Navegação Overlay */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffffd1;
    border: 2px solid #939393;
    color: #d9d9d9;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 150;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-arrow:active {
    background: #cfcfcfd1;
    color: #000;
    transform: translateY(-50%) scale(0.9);
}
.nav-arrow.left { left: -40px; }
.nav-arrow.right { right: -40px; }
.nav-arrow.hidden { display: none !important; }

.nav-arrow i { font-size: 1.5rem; color: #000; }

/* Stacked Deck Layout */
#revealed-card-container {
    position: relative;
    width: 280px;
    height: 400px;
    perspective: 1000px;
    margin: 0 auto; /* Ensure center alignment */
}

.deck-card {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

/* Animações de curva (usando offset para não sobrescrever a posição base) */
.curve-next .card-mtg-wrapper { animation: curve-next 0.4s ease-out; }
.curve-prev .card-mtg-wrapper { animation: curve-prev 0.4s ease-out; }

@keyframes curve-next {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-230px, -20px); }
    100% { transform: translate(0, 0); }
}

@keyframes curve-prev {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
    100% { transform: translate(0, 0); }
}

.deck-card.pos-0 { z-index: 30; transform: translate(0, 0) scale(1); opacity: 1; }
.deck-card.pos-1 { z-index: 20; transform: translate(25px, -20px) scale(0.95); opacity: 0.8; }
.deck-card.pos-2 { z-index: 10; transform: translate(50px, -40px) scale(0.9); opacity: 0.6; }

/* Miniaturas */
.mini-card-container {
    width: 148px;
    height: 212px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
}
.mini-card-scaler { transform: scale(0.52); transform-origin: top left; pointer-events: none; }

.locked .mini-card-scaler { filter: grayscale(1) brightness(0.2) blur(10px); }
.locked::after { content: "\f023"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; color: var(--current-color); opacity: 0.5; }

.mini-card-container:hover { transform: scale(1.08); }


/* --- Menus e Popups --- */
.home-screen {
    padding-bottom: 0;
    padding-top: 10px;
}

.home-title-container {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.bottom-bar { 
    position: fixed; 
    bottom: 0; 
    left: 0;
    width: 100%; 
    height: 60px; 
    background: #0a090af0; 
    display: flex; 
    z-index: 1000;
}

.nav-btn { font-family: 'Cinzel'; font-weight: 500; font-size: 1.4rem; flex: 1; background: none; border: none; color: #666; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-btn.active { color: var(--gold); }

#card-overlay { 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.overlay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); }
.overlay-content { 
    position: relative; 
    z-index: 1101; 
    animation: scaleIn 0.3s ease-out forwards; 
}
@keyframes scaleIn { 
    from { transform: scale(0.8); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

@keyframes scaleOut { 
    from { transform: scale(1); opacity: 1; } 
    to { transform: scale(0.8); opacity: 0; } 
}
.scale-out { animation: scaleOut 0.15s ease-in forwards !important; }
.fade-out-15 { opacity: 0 !important; transition: opacity 0.15s ease-out !important; pointer-events: none; }

/* --- Detalhes Dinâmicos --- */
#collection-screen.theme-sages, #details-screen.theme-gold { 
    background: radial-gradient(circle, #2f150d 0%, #0a0604 100%);
    --current-color: var(--gold); 
}
#collection-screen.theme-seeds, #details-screen.theme-silver { 
    background: radial-gradient(circle, #1e2b41 0%, #070b12 100%); 
    --current-color: #d1d1d1; 
}
#collection-screen.theme-symbols, #details-screen.theme-purple { 
    background: radial-gradient(circle, #2d1941 0%, #101010 100%);; 
    --current-color: #b19cd9; 
}
#collection-screen.theme-bookmarks { 
    background: radial-gradient(circle, #2d2d37 0%, #141313 100%); 
    --current-color: #9f9f9f; 
}

#details-screen .mega-back-btn { background: var(--current-color); }
#details-screen h1, #details-screen h4, #details-screen h3 { color: var(--current-color) !important; line-height: 1; }
#details-screen .details-info-box { font-size: 1.05rem; text-align: justify; hyphens: auto; line-height: 1.5; color: #eee; border-left-color: var(--current-color) !important; }
#details-screen .btn-parchment { background: var(--current-color); }

#details-screen { padding-top: 0px; }

.details-body {
    background-image: url(../images/matrix-brick-10.png);
    background-size: 500px;
}

.details-info-box h4 {
    font-size: 1.1rem;
}

.details-info-box p~p {
    margin-top: 10px;
}

.fullDesc-box {
    background: rgba(255, 255, 255, 0.05);
    color: #eee;
    padding: 20px;
    border-radius: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    text-align: justify;
    hyphens: auto;
    line-height: 1.5;
    border-left-color: var(--current-color) !important;
}

.fullDesc-box p~p {
    margin-top: 10px;
}

.book-synopsys {
    font-size: 1.05rem;
    text-align: justify;
    hyphens: auto;
    color: #eee;
    line-height: 1.4;
    margin-bottom: 15px;
}

.book-synopsys p~p {
    margin-top: 10px;
}

.book-item-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.book-item-large:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--current-color);
    transform: translateY(-3px);
}

.btn-amazon {
    background-color: #d4af37;
    background-image: radial-gradient(100% 100% at 100% 0, #f5ec43 0, #ffcb22 100%);
    box-shadow: rgb(210 135 38 / 18%) 0 0 10px 0px, rgb(221 186 118 / 33%) 0 0px 12px 2px, rgb(111 76 58 / 50%) 0 -4px 0 inset;
    padding: 12px 22px 15px 22px;
    color: #1b1f25 !important;
    border: none;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    text-decoration: none;
    transition: 0.2s;
}

.btn-amazon:hover { transform: scale(1.05); }

.btn-amazon i {
    font-size: 1.1rem;
}

.btn-amazon-small {
    background-color: #d4af37;
    background-image: radial-gradient(100% 100% at 100% 0, #f5ec43 0, #ffcb22 100%);
    box-shadow: rgb(210 135 38 / 18%) 0 0 10px 0px, rgb(221 186 118 / 33%) 0 0px 12px 2px, rgb(111 76 58 / 50%) 0 -4px 0 inset;
    padding: 12px 22px 15px 22px;
    border-radius: 8px;
    color: #1b1f25;
    border: none;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-amazon-small:hover { transform: scale(1.05); }

.btn-amazon-small i {
    font-size: 1.1rem;
}

.info-btn-amazon {
    color: #a5a5a5;
    margin-top: 10px;
    font-size: 0.95rem;
}

.btn-practice {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-practice:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.btn-practice i {
    font-size: 1.3rem;
}

.close-x { position: absolute; top: -42px; right: 10px; background: none; border: none; color: white; font-size: 2.5rem; transition: 0.3s; }

.close-x:hover { transform: scale(1.2);}

/* Help Screen */
#help-screen {
    /*background: radial-gradient(circle, #2a1a2a 0%, #050505 100%);*/
    color: #eee;
}

.help-content { padding: 10px 20px 20px 20px; max-width: 800px; margin: 0 auto; }
.help-title {
    font-family: 'Cinzel';
    color: var(--gold);
    margin: 30px 0 15px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(212,175,55,0.3);
    padding-bottom: 5px;
}

.help-section {
    position: relative;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.help-section p~p {
    margin-top: 10px;
}

.help-section ul {
    padding-top: 10px;
}

.faq-item {
    background: rgba(255,255,255,0.05);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0,0,0,0.2);
}

.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { padding: 15px; line-height: 1.5; color: #ccc; font-size: 0.9rem; }

.dev-panel { max-width: 600px; margin: 0 auto; background: #1a1a1a; padding: 20px; border-radius: 15px; border: 1px solid #333; }
.dev-btn { 
    width: 100%; padding: 15px; margin-top: 15px; border: none; border-radius: 8px; 
    font-family: 'Cinzel'; font-weight: bold; cursor: pointer; 
    transition: filter 0.2s; 
}
.reset { background: #600; color: white; }
.unlock { background: #060; color: white; }

/* Animações de Coleta */
.deck-card.collecting {
    transition: all 0.8s cubic-bezier(0.5, -0.5, 0.5, 1.5) !important;
    transform: translate(0, 500px) scale(0.1) rotate(20deg) !important;
    opacity: 0 !important;
    pointer-events: none;
}

.pulse-nav { animation: navPulse 0.4s ease-out; }
@keyframes navPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--gold); }
    100% { transform: scale(1); }
}

.fade-out-fast { opacity: 0 !important; transition: opacity 0.3s ease-out !important; pointer-events: none; }

/* Meditation Mode */
.meditation-fab {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 15px rgba(212,175,55,0.4);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 600px) {
    .meditation-fab { width: 55px; height: 55px; font-size: 1.5rem; }
}
/* Background transitions */
#meditation-overlay, #detox-overlay {
    transition: opacity 0.25s ease, visibility 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#detox-overlay canvas, #mystic-canvas {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
}

#detox-overlay.detox-background {
    background: radial-gradient(circle, #1a2a24 0%, #050505 100%);
}

#detox-overlay.full-view {
    padding-bottom: 0;
}


@keyframes pulse-btn {
    0% { transform: scale(1);}
    10% { transform: scale(1.05); }
    20% { transform: scale(1); }
    100% { transform: scale(1); }
}

#revealed-card-container .btn-parchment {
    animation: pulse-btn 4.5s infinite; /* 1.5s animation + 3s wait */
}

#meditation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    display: block !important;
    pointer-events: none;
    transform: none !important;
}

#meditation-overlay.active-viewer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.meditation-step { transition: opacity 0.25s ease; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }

.meditation-big-icon {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 40px rgba(211, 187, 109, 0.4));
    animation: pulse-slow 4s infinite ease-in-out;
}

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

.btn-time {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.3);
    color: #eee;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Cinzel';
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-parchment-outline {
    background: none;
    border: 1px solid var(--parchment);
    color: var(--parchment);
    padding: 12px 20px;
    border-radius: 4px;
    font-family: 'Cinzel';
    font-weight: bold;
    cursor: pointer;
}

.btn-back-text { background: none; border: none; color: #888; font-family: 'Cinzel'; cursor: pointer; text-decoration: underline; margin-top: 10px; font-size: 1rem; font-weight: bold; }

.prep-instructions { text-align: left; width: 100%; margin-bottom: 25px; display: flex; flex-direction: column; gap: 15px; }
.prep-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 10px;
    border-left: 3px solid var(--gold);
}
.prep-item i { font-size: 1.5rem; color: var(--gold); width: 30px; text-align: center; }
.prep-item p { font-size: 0.85rem; color: #ccc; line-height: 1.4; }

.session-ui { z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.meditation-msg { font-family: 'Cinzel'; color: var(--gold); font-size: 1.1rem; padding-left: 40px; padding-right: 40px; opacity: 0.8; animation: fade-in-out 6s infinite; }
@keyframes fade-in-out { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

#session-timer-display-container { width: 200px; display: flex; justify-content: flex-start; padding-left: 40px; }
#session-timer-display { font-family: 'Cinzel'; font-size: 3.5rem; color: var(--gold); text-shadow: 0 0 20px rgba(212,175,55,0.5); }

.meditation-border-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

#meditation-progress-rect {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s linear;
}

.smoke-atmosphere { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.2; z-index: 1; animation: smoke-move 30s infinite linear; pointer-events: none; }
@keyframes smoke-move { from { background-position: 0 0; } to { background-position: 500px 500px; } }

#mystic-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.mystic-atmosphere { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%); }
.mystic-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: light-breathe 8s infinite alternate ease-in-out;
}
@keyframes light-breathe { from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); } to { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); } }

.btn-finish-session {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; padding: 10px 20px; border-radius: 20px; font-family: 'Cinzel'; font-size: 0.8rem; cursor: pointer; z-index: 10;
}

@media (min-width: 1025px) {
    #meditation-overlay.full-view { 
        max-width: none; 
        left: 0; 
        transform: none; 
        width: 100vw; 
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .meditation-step {
        width: 100%;
        max-width: var(--app-max-width);
        margin: 0 auto;
    }
}

/* Bookmark Feedback Message */
.bookmark-toast {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: var(--gold);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    white-space: normal;
    width: max-content;
    max-width: 85vw;
    text-align: center;
    pointer-events: none;
    z-index: 10000;
    animation: toast-move-fade 3.5s forwards;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

@keyframes toast-move-fade {
    0% { opacity: 0; bottom: 20px; }
    10% { opacity: 1; bottom: 30px; }
    90% { opacity: 1; bottom: 30px; }
    100% { opacity: 0; bottom: 40px; }
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 25px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 4px solid var(--current-color);
}

.fade-out-screen { animation: screen-fade-out 1s forwards; }
@keyframes screen-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* Detox Mode */
.detox-fab {
    position: fixed;
    right: 20px;
    bottom: 155px; /* Above meditation button */
    width: 60px;
    height: 60px;
    background: #88d4af;
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5), 0 0 15px rgba(136, 212, 175, 0.4);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.detox-fab:active { transform: scale(0.9); }

#detox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    display: block !important;
    transform: none !important;
    max-width: none !important;
}

#detox-overlay.active-viewer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.detox-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a2a24 0%, #050505 100%);
    z-index: -1;
}

.detox-step { 
    transition: opacity 0.4s ease; 
    padding: 0 20px 20px 20px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100%;
    width: 100%;
    max-width: var(--app-max-width);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.detox-big-icon {
    font-size: 5rem;
    color: #88d4af;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(136, 212, 175, 0.4));
    animation: pulse-slow 4s infinite ease-in-out;
}

.detox-explanation {
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 15px;
    text-align: left;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
}

.detox-explanation p~p {
    margin-top: 14px;
}


.btn-detox-glow {
    background: #88d4af;
    color: #1a2a24;
    border: none;
    padding: 15px 30px;
    font-family: 'Cinzel';
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(136, 212, 175, 0.4);
    font-size: 1rem;
    transition: 0.3s;
}
.btn-detox-glow:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(136, 212, 175, 0.6); }

.btn-detox-outline {
    background: none;
    border: 1px solid #88d4af;
    color: #88d4af;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: 'Cinzel';
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-detox-outline:hover { background: rgba(136, 212, 175, 0.1); }

#detox-canvas {
    width: 100%;
    height: 100%;
    background: #0d1a14;
    cursor: pointer;
}

.btn-finish-detox {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Cinzel';
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(5px);
}

.btn-night-mode {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-night-mode:hover {
    background: rgba(255,255,255,0.2);
}

.btn-toggle-sound {
    position: absolute;
    top: 75px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-toggle-sound:hover {
    background: rgba(255,255,255,0.2);
}

#books-screen {
    max-width: var(--app-max-width);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    position: fixed;
}

.books-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 4px 10px 4px;
}

.book-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 18px 15px 22px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
    line-height: 1.4;
    align-items: center;
    border: 1px solid #cccccc1a;
}

.book-item h3 {
    font-family: 'Cinzel'; font-weight: bold; font-size: 1rem; color: #ffffffd6; margin-bottom: 6px;
}

.book-item img {
    width: 150px;
    height: 225px;
    object-fit: cover;
}

.book-item p {
    text-align: justify;
    hyphens: auto;
}

.book-recommender {
    font-size: 0.85rem;
    color: var(--gold);
    font-style: italic;
    margin-top: 5px;
}

.detox-ui{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.detox-hint {
    font-family: 'Cinzel';
    font-size: 1.2rem;
    color: #ffffffce;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    line-height: 2;
    opacity: 0;
    background: radial-gradient(circle, #092b2a69 0%, #08242987 100%);
    padding: 10px 20px 10px 20px;
}

.detox-hint.show {
    animation: hint-fade 6s forwards;
}

@keyframes hint-fade {
    0% { opacity: 0; transform: translateY(10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 600px) {
    .detox-fab { bottom: 145px; width: 55px; height: 55px; font-size: 1.5rem; }
}

/* Detox Canvas Desktop Fix */
#detox-overlay canvas {
    display: block;
    margin: 0 auto;
    background: #0a1e2b;
}

/* Card Pages Styling (SEO Pages) */
.body-card-page { 
    overflow: hidden; 
    height: 100vh; 
    background: radial-gradient(circle, #2b223f 0%, #050505 100%); 
}

.body-card-page #viewer-app { 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    background-image: url(../images/matrix-brick-10.png);
    background-size: 500px;
}

.body-card-page .cta-bar { 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    background: rgba(0,0,0,0.9); 
    border-top: 2px solid var(--gold); 
    padding: 15px; 
    text-align: center; 
    z-index: 1000; 
}

.body-card-page .cta-btn { 
    background: var(--gold); 
    color: #000 !important; 
    text-decoration: none; 
    padding: 12px 25px; 
    border-radius: 8px; 
    font-family: 'Cinzel'; 
    font-weight: bold; 
    font-size: 1rem; 
    display: inline-block; 
    animation: pulse-gold 2s infinite; 
}

@keyframes pulse-gold { 
    0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.7); } 
    70% { box-shadow: 0 0 0 15px rgba(212,175,55,0); } 
    100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); } 
}

.body-card-page #single-card-viewer { 
    padding: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
    padding-bottom: 100px; 
}

.body-card-page #main-nav { display: none !important; }
.body-card-page .view.full-view { display: none; }
.body-card-page .view.full-view.active-viewer { display: block !important; }

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--app-max-width);
    z-index: 1500;
    background: rgba(15, 12, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0px -1px 20px 5px rgb(50 44 61 / 63%);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    padding: 20px 20px 10px 20px;
    font-family: 'Raleway', sans-serif;
    border-radius: 12px;
    margin-bottom: 15px;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cookie-banner-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-text a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-text a:hover {
    color: #fff;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
}

.cookie-btn.accept {
    background: var(--gold);
    color: #000;
}

.cookie-btn.accept:hover {
    background: #e5be3c;
    transform: scale(1.03);
}

.cookie-btn.reject {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

/* --- Toggle Switch Styling --- */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #ababab;
    transition: .3s;
}

input:checked + .slider {
    background-color: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

input:checked + .slider:before {
    background-color: var(--gold);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--gold);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.registered {
    font-size: 0.5rem;
}

/* ============================================================
   COLLECTOR SCREEN STYLING & 3D BOOK
============================================================ */
#collector-screen {
    text-align: center;
    padding-bottom: 120px;
}

.collector-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 6px 15px 15px 15px;;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.collector-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
    line-height: 1.1;
}

.collector-subtitle {
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.5;
}

/* 3D Book Container */
.book-container {
    perspective: 1200px;
    width: 230px;
    height: 360px;
    margin: 30px auto 55px;
}

.book-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.book-container:hover .book-3d {
    transform: rotateY(15deg) rotateX(5deg) scale(1.05);
}

.book-front, .book-back, .book-spine, .book-pages {
    position: absolute;
    height: 100%;
}

.book-front {
    width: 100%;
    background: #1a1200;
    border-top: 1px solid #bf52c93b;
    border-radius: 2px 4px 4px 2px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.65);
    z-index: 10;
    transform: translateZ(16px);
    padding: 0;
}

.book-cover-img-3d {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px 4px 4px 2px;
    display: block;
}

.book-spine {
    width: 32px;
    background: linear-gradient(181deg, rgb(18 19 65) 0%, #391c36 100%);
    transform: rotateY(-90deg);
    left: -16px;
    box-shadow: inset -3px 0 10px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-spine-text {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transform: rotate(90deg);
    white-space: nowrap;
    opacity: 0.75;
}

.book-back {
    width: 100%;
    background: #0d0b08;
    border-radius: 8px 4px 4px 8px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
    transform: rotateY(180deg) translateZ(16px);
}

.book-pages {
    width: 28px;
    background: #eae2d0;
    right: -14px;
    transform: rotateY(90deg);
    box-shadow: inset 3px 0 10px rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* Features details list styling */
.collector-features {
    width: 100%;
    margin-bottom: 45px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 12px;
    transition: background 0.3s, border-color 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201, 162, 39, 0.15);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-top: 2px;
}

.feature-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 600;
}

.feature-item p {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.5;
}

/* Action Area */
.collector-action {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-collector {
    width: 100%;
    max-width: 380px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1000;
    background: radial-gradient(100% 100% at 100% 0, #e8ca30 0%, #c9880a 100%);
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 1px 8px rgba(201, 162, 39, 0.35), 0 -4px 0 rgba(0,0,0,0.3) inset;
    line-height: 1.1;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-collector:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 14px rgba(201, 162, 39, 0.5), 0 -4px 0 rgba(0,0,0,0.3) inset;
}

.btn-collector:active {
    transform: translateY(1px);
}

.btn-collector i {
    font-size: 1.6rem;
}

.collector-disclaimer {
    font-size: 1rem;
    color: #666;
    line-height: 1.4;
    max-width: 320px;
    margin: 0 auto;
}
