@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Lora:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Regras de fonte para o body e títulos */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-lora {
    font-family: 'Lora', serif;
}


/* ======================================== Buttons ======================================== */

.btn-rose {
    background-color: #e11d48;
    color: white;
    transition: all 0.3s ease;
}

.btn-rose:hover {
    background-color: #be123c;
}

.btn-outline-rose {
    border: 1px solid #fda4af;
    color: #e11d48;
    transition: all 0.3s ease;
}

.btn-outline-rose:hover {
    background-color: #e11d48;
    color: white;
}


/* ======================================== Typography & Text ======================================== */

.flame-text {
    font-weight: 700;
    font-size: 1.125rem;
    position: relative;
    color: #e11d48;
    background: linear-gradient(0deg, #ff9a9e, #ff5858, #ffc1c1);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flameUp 2s infinite linear;
}


/* Ajuste para o badge de crédito não sobrepor o ícone de favorito */

.card .absolute.top-2.left-2 {
    top: 0.75rem;
    /* 12px */
    left: 0.75rem;
    /* 12px */
}

@keyframes flameUp {
    0% {
        background-position: 0% 100%;
    }
    50% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

.flame-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 69, 58, 0.3);
    z-index: -1;
    filter: blur(6px);
    animation: flicker 1s infinite;
}

@keyframes flicker {
    0%,
    100% {
        transform: translateY(0px) scaleY(1);
    }
    25% {
        transform: translateY(-2px) scaleY(1.05);
    }
    50% {
        transform: translateY(-4px) scaleY(1.1);
    }
    75% {
        transform: translateY(-2px) scaleY(1.05);
    }
}

.link-rose {
    color: #e11d48;
}

.link-rose:hover {
    text-decoration: underline;
}

.muted {
    color: #6b7280;
}


/* ======================================== Layout & Modals ======================================== */

.backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.blurred {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}


/* Títulos dos cards com fonte de destaque */

.card h3 {
    font-family: 'Lora', serif;
}


/* Gradiente personalizado para o banner de ferramentas */

.bg-guru-tools-banner {
    background-image: linear-gradient(to right, #f43f5e, #8b5cf6);
    /* from-rose-500 to-purple-600 */
}


/* Estilo para o botão do banner de ferramentas */

.btn-banner-tools {
    background-color: white;
    color: #be123c;
    /* rose-700 */
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* ======================================== Marketplace (Ferramentas2) ======================================== */

.marketplace-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.marketplace-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.marketplace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f43f5e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marketplace-card:hover::before {
    opacity: 1;
}

.card-image-area {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 180px;
}

.card-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.card-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer_level {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.card-icon-wrapper i {
    font-size: 48px;
    color: white;
    position: relative;
    z-index: 1;
}

.price-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #d1d5db;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.favorite-btn.active {
    color: #fbbf24;
    background: #fef3c7;
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    gap: 8px;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-hot {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

.btn-hot:hover {
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
    margin-top: 8px;
}

.badge-popular {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-new {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
}

.btn-banner-tools:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    animation: pulse-white 1.5s infinite;
}

@keyframes pulse-white {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

#hero-text {
    opacity: 1;
    transition: opacity 0.7s ease-in-out;
}

#hero-text.opacity-0 {
    opacity: 0;
}

.tom-button {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    transition: all 0.3s ease;
}

.tom-button.selected {
    background-color: #E11D48;
    border-color: #E11D48;
    color: #ffffff;
}

@media (max-width: 768px) {
    .dropdown-menu {
        left: 0;
        right: auto;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
    }
    .user-name-mobile-hidden {
        display: none;
    }
    .btn-text-mobile-hidden {
        display: none;
    }
}

.tarot-card-wrapper {
    perspective: 1000px;
    width: 220px;
    height: 300px;
    cursor: pointer;
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .tarot-card-wrapper {
        width: 160px;
        height: 240px;
    }
}

.tarot-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 0.75rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #fce7f3 0%, #fff7ed 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.tarot-card.is-flipped {
    transform: rotateY(180deg);
}

.tarot-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.tarot-card-front {
    background: linear-gradient(45deg, #fbcfe8, #fbcfe8, #fde68a);
    border: 2px solid #be185d;
    position: relative;
    z-index: 2;
}

.tarot-card-front::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    z-index: 1;
}

.tarot-logo-on-back {
    width: 70%;
    height: auto;
    max-width: 120px;
    opacity: 0.9;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
    z-index: 2;
}

.tarot-card-back {
    background-color: #ffffff;
    transform: rotateY(180deg);
    padding: 0.75rem;
    box-sizing: border-box;
    z-index: 1;
    margin-top: -300px;
}

.tarot-card-back>div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0.5rem;
    border: 1px solid #fbdade;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.5rem;
}

.tarot-card-back>div::-webkit-scrollbar {
    display: none;
}

.tarot-card-back p {
    font-size: 0.82rem;
    line-height: 1.3;
    color: #4a5568;
    margin: 0;
    padding: 0.25rem;
    word-wrap: break-word;
}

.zodiac-sign-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.zodiac-sign-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.zodiac-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fce7f3;
}

.zodiac-sign-item.active .zodiac-icon {
    transform: scale(1.1);
    border: 2px solid #be185d;
    filter: none;
    opacity: 1;
}

#astrology-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guru-block {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.guru-block:first-of-type {
    border-top: none;
    padding-top: 0;
}

.btn-whatsapp {
    white-space: nowrap;
}

.cartomancy-card-wrapper {
    perspective: 1000px;
    cursor: pointer;
    width: 240px;
    height: 340px;
    display: flex;
}

.cartomancy-card {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.cartomancy-card.is-flipped {
    transform: rotateY(180deg);
}

.cartomancy-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cartomancy-card-front {
    background-color: #f3f4f6;
    background-image: url('../img/card_back.png');
    background-size: cover;
    background-position: center;
    width: 240px;
}

.cartomancy-card-back {
    background-color: white;
    transform: rotateY(180deg);
}

.cartomancy-logo-on-back {
    max-width: 80%;
    height: auto;
}

.btn-amazon {
    background-color: #ff9900;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-amazon:hover {
    background-color: #e68a00;
}

.btn-magalu {
    background-color: #7C3AED;
    color: white;
}

.btn-shopee {
    background-color: #ee4d2d;
    color: white;
}

.btn-youtube {
    background-color: #ef4444;
    color: #ffffff;
    border: 1px solid #dc2626;
    transition: background-color 0.3s ease;
}

.btn-youtube:hover {
    background-color: #dc2626;
}

@keyframes shake-animation {
    0% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-2px);
    }
    80% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
    }
}

.btn-rose:hover {
    animation: shake-animation 0.5s ease-in-out;
}

.loader {
    border-top-color: #F43F5E;
    -webkit-animation: spinner 1.2s linear infinite;
    animation: spinner 1.2s linear infinite;
}

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tab-button {
    @apply text-base font-semibold px-4 py-3 text-gray-500 transition-colors duration-300;
}

.tab-button.tab-active {
    @apply text-rose-600 border-b-2 border-rose-600;
}

.tab-content {
    @apply space-y-8;
}

.hidden {
    display: none;
}

.tab-button-modern {
    @apply flex flex-col items-center justify-center p-3 sm: p-4 rounded-xl border border-transparent text-gray-500 hover: text-rose-600 hover: border-gray-200 transition-all duration-300 ease-in-out;
}

.tab-active-modern {
    background-color: rgb(255 241 242);
    color: rgb(225 29 72);
    border-color: rgb(254 226 226);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border-radius: 20px;
    padding: 5px;
}

.tab-button-modern:not(.tab-active-modern):hover {
    @apply text-rose-600 border-gray-200 bg-gray-50;
}

.bg-rosa {
    background-color: rgb(247 20 62);
}

.tabs-container-mobile::-webkit-scrollbar {
    height: 6px;
}

.tabs-container-mobile::-webkit-scrollbar-track {
    background: #fdf2f8;
    border-radius: 3px;
}

.tabs-container-mobile::-webkit-scrollbar-thumb {
    background-color: #e11d48;
    border-radius: 3px;
    border: 1px solid #fce7f3;
}

.card-with-overlay {
    position: relative;
}

.overlay {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 0));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding-bottom: 1.5rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: top 0.3s ease-in-out;
}

.overlay h3 {
    font-weight: bold;
    color: #e11d48;
}

.bg-custom-hero {
    background: linear-gradient(to bottom, #fce7f3, #ffffff, #fff1f2);
}

.text-custom-main {
    color: #e11d48;
}

.btn-custom {
    background-color: #e11d48;
    color: white;
}

.btn-custom:hover {
    background-color: #be123c;
}

.border-custom {
    border-color: #e11d48;
}

.shadow-custom {
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.1), 0 4px 6px -2px rgba(225, 29, 72, 0.05);
}

.chat-bubble-user {
    background-color: #e11d48;
    color: white;
}

.chat-bubble-ai {
    background-color: #f3f4f6;
    color: #4a5568;
}

.chat-typing-dots span {
    animation: bounce 0.8s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) {
    animation-delay: 0.1s;
}

.chat-typing-dots span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.typed-out {
    overflow: hidden;
    white-space: pre-wrap;
    animation: typing 2.5s steps(40, end) forwards;
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

.badge {
    background: #fce7f3;
    color: #e11d48;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
}

.flip-horizontal {
    transform: scaleX(-1);
}


/* ======================================== Premium Layout Utilities ======================================== */

.premium-bg {
    background: linear-gradient(135deg, #fff 0%, #fff 40%, #f8f0ff 70%, #fde8f5 100%);
    position: relative;
    min-height: 100vh;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.orb-1 {
    width: 520px;
    height: 520px;
    background: #f0b6ff;
    top: -120px;
    left: -160px;
}

.orb-2 {
    width: 440px;
    height: 440px;
    background: #ffc1d9;
    bottom: -120px;
    right: -160px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 30px rgba(31, 38, 135, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(31, 38, 135, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* ======================================== Diário ======================================== */

.diary-page textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
}

.diary-page textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.diary-page .search-container {
    position: relative;
}

.diary-page .search-container input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
    background: white;
}

.diary-page .search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

.mood-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mood-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.15);
    border-color: #d1d5db;
}

.mood-btn.selected {
    border-color: #a78bfa;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    color: #6d28d9;
}

.mood-btn .pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5);
    animation: pulse-glow 2s infinite;
}

.tag-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tag-btn::before {
    content: '';
    position: absolute;
    left: -50%;
    top: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2.2s linear infinite;
}

.tag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.1);
}

.tag-btn.selected {
    border-color: #f9a8d4;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #be185d;
}

.diary-entry-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    transition: all 0.2s ease;
}

.diary-entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.collapsible-header:hover {
    background: #f9fafb;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}

.collapsible-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-180 {
    transform: rotate(180deg);
}

.reflection-box {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-left: 4px solid #667eea;
    padding: 16px;
    border-radius: 12px;
}

.guru-response {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #f43f5e;
    padding: 16px;
    border-radius: 12px;
}

.premium-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.premium-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.premium-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.premium-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}


/* Avoid conflict with existing .badge-popular used elsewhere */

.badge-popular-pill {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(30%, -50%) rotate(6deg);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 9999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.faq-card {
    border-left: 4px solid #f43f5e;
}

.quote-premium {
    border-left: 4px solid #f43f5e;
    background: rgba(245, 245, 255, 0.6);
    padding-left: 1rem;
    border-radius: 10px;
}


/* Animação para Conquista Desbloqueada */

@keyframes achievement-unlocked {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.achievement-unlocked-animation {
    animation: achievement-unlocked 0.5s ease-out forwards;
}


/* Animação para Level Up */

@keyframes level-up-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.7);
    }
    70% {
        box-shadow: 0 0 10px 20px rgba(253, 224, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(253, 224, 71, 0);
    }
}

.level-up-animation {
    animation: level-up-glow 1.5s ease-out;
}


/* Animação para o ícone de Streak */

@keyframes streak-glow-orange {
    0%,
    100% {
        filter: drop-shadow(0 0 3px rgba(249, 115, 22, 0.7));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(251, 146, 60, 1));
    }
}

.streak-animation {
    animation: streak-glow-orange 2.5s ease-in-out infinite;
}


/* Estilos para o Modal de Conquistas */

.modal-container {
    transition: opacity 0.3s ease;
}

.modal-card {
    transition: transform 0.3s ease;
    transform: scale(0.95);
}

.modal-container:not(.hidden) .modal-card {
    transform: scale(1);
}

.read-only-phase {
    opacity: 0.7;
    pointer-events: none;
    /* Impede cliques e interações */
}


/* Animação para destacar o usuário atual no Mural da Fama */

@keyframes user-highlight-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px 4px rgba(251, 191, 36, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
        transform: scale(1);
    }
}

.current-user-highlight {
    background-color: #fefce8 !important;
    /* bg-yellow-50 */
    border: 1px solid #fde68a;
    /* border-yellow-200 */
    animation: user-highlight-glow 2.5s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.mural-tab {
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #4b5563;
    /* text-gray-600 */
}

.mural-tab.tab-active {
    background-color: #fff1f2;
    /* rose-50 */
    color: #e11d48;
    /* rose-600 */
}


/* Animações para o Feed de Atividades */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.activity-item-enter {
    animation: slideInUp 0.5s ease-out forwards;
}

.activity-item-exit {
    animation: slideOutUp 0.5s ease-out forwards;
}


/* Animação de pulso para o botão de novo plano */

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(225, 29, 72, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.btn-pulse-red {
    animation: pulse-red 2s infinite;
}


/* Animação de tremor para o ícone de raio em planos pendentes */

@keyframes bolt-shake {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    10% {
        transform: translateX(-1px) rotate(-5deg);
    }
    20% {
        transform: translateX(1px) rotate(5deg);
    }
    30% {
        transform: translateX(-1px) rotate(-4deg);
    }
    40% {
        transform: translateX(1px) rotate(4deg);
    }
    50% {
        transform: translateX(-1px) rotate(-3deg);
    }
    60% {
        transform: translateX(1px) rotate(3deg);
    }
    70% {
        transform: translateX(-0.5px) rotate(-2deg);
    }
    80% {
        transform: translateX(0.5px) rotate(2deg);
    }
    90% {
        transform: translateX(-0.5px) rotate(-1deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}

.bolt-shake {
    display: inline-block;
    animation: bolt-shake 1.2s ease-in-out infinite;
}

.message-row.unread {
    font-weight: 600;
    background-color: #fefce8;
    /* bg-yellow-50 */
}

.message-content-row {
    display: none;
}

.message-content-row.visible {
    display: table-row;
}

.message-row .fa-chevron-down {
    transition: transform 0.3s ease;
}

.message-row.expanded .fa-chevron-down {
    transform: rotate(180deg);
}


/* Estilos para o filtro de ferramentas */

.tool-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #f3f4f6;
    /* bg-gray-200 */
    color: #4b5563;
    /* text-gray-600 */
    transition: all 0.2s ease-in-out;
}

.tool-filter-btn.active,
.tool-filter-btn:hover {
    background-color: #fce7f3;
    /* bg-pink-100 */
    color: #be185d;
    /* text-rose-700 */
}

.log-content-row {
    display: none;
}

.log-content-row.visible {
    display: table-row;
}

.log-row .fa-chevron-down {
    transition: transform 0.3s ease;
}

.log-row.expanded .fa-chevron-down {
    transform: rotate(180deg);
}

.json-viewer {
    background-color: #1E293B;
    /* bg-slate-800 */
    color: #E2E8F0;
    /* text-slate-200 */
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.8rem;
}

.btn-hot {
    background-image: linear-gradient(90deg, #ef4444, #f59e0b);
    color: #fff;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-hot:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}


/* Badge de popularidade para destacar ferramentas mais usadas */

.badge-popular {
    position: absolute;
    top: 0.5rem;
    /* top-2 */
    right: 0.5rem;
    /* right-2 */
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f2937;
    /* text-gray-800 */
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.6);
}


/* Animação de pulso para o bônus */

@keyframes pulse-bonus {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.bonus-pulse {
    animation: pulse-bonus 2.5s infinite ease-in-out;
}

.tool-filter-btn.active {
    background-color: #db2777;
    /* um rosa mais forte */
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mystic-card-container {
    perspective: 1500px;
    height: 200px;
    cursor: pointer;
}

.mystic-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 1rem;
    /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    /* shadow-lg */
}

.mystic-card.is-flipped {
    transform: rotateY(180deg);
}

.mystic-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mystic-card-front {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    /* from-purple-600 to-pink-500 */
}

.mystic-card-back {
    background-color: #f3e8ff;
    /* bg-purple-100 */
    transform: rotateY(180deg);
}

#social-proof-popup-dashboard {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 16px;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    max-width: 320px;
}

#social-proof-popup-dashboard.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #social-proof-popup-dashboard {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}


/* ======================================== Tools Slider (Horizontal Scroll) ======================================== */

.tools-slider {
    position: relative;
}

.tools-track {
    display: flex !important;
    /* força layout horizontal mesmo se houver classe .grid */
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    /* snap suave entre cards */
    gap: 2rem;
    /* fallback caso utilitário de gap não aplique */
    padding-bottom: 4px;
    /* evita corte do conteúdo ao esconder scrollbar */
}

.tools-track>* {
    flex: 0 0 auto;
    /* impede quebra de linha, mantém itens lado a lado */
    scroll-snap-align: start;
}


/* Ver tudo: mostra itens em grid e desativa navegação por setas */

.tools-slider.view-all .tools-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    overflow: visible;
    scroll-snap-type: none;
}

.tools-slider.view-all .tools-track>* {
    flex: initial;
}

.tools-slider.view-all .slider-nav {
    display: none;
}


/* Botão de alternância Ver tudo/Ver menos */

.tools-slider .view-all-toggle {
    position: absolute;
    top: 8px;
    right: 48px;
    /* não colidir com seta next */
    z-index: 3;
    background: #ffffff;
    color: #e11d48;
    border: 1px solid #fda4af;
    padding: 6px 12px;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tools-slider .view-all-toggle:hover {
    background: #fff1f2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bg-level-gradient {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
    --tw-gradient-from: #f43f5e;
    /* rose-500 */
    --tw-gradient-to: rgb(236 72 153 / 0);
    /* to-pink-500 with transparency */
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
    --tw-gradient-to: #ec4899;
    /* pink-500 */
}

.product-badge {
    background-color: #e11d48;
    /* bg-rose-600 */
    color: white;
}


/* ============================
   MODO IA — Glass/Aurora
   ============================ */


/* Paleta e fundo em modo IA (dark, com aurora animada) */

body.ai-mode {
    color-scheme: dark;
    background: radial-gradient(1200px 600px at 10% 0%, #1a1f3b 0%, #0f1325 35%, #0b0f1f 100%) !important;
    background-attachment: fixed;
}

body.ai-mode::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(600px 300px at 15% 10%, rgba(141, 87, 255, 0.25), transparent 60%), radial-gradient(800px 400px at 80% 20%, rgba(255, 77, 125, 0.22), transparent 62%), radial-gradient(700px 500px at 50% 90%, rgba(0, 200, 255, 0.18), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -1;
    animation: auroraShift 22s linear infinite alternate;
}

@keyframes auroraShift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-3%, 2%, 0) scale(1.03);
    }
    100% {
        transform: translate3d(3%, -2%, 0) scale(1.06);
    }
}


/* Cards em glass com glow sutil */

.ai-mode .card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.ai-mode .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.ai-mode .card i {
    background: linear-gradient(135deg, #ff72a6, #6c8bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 24px rgba(108, 139, 255, 0.35);
}


/* Badge popular com gradiente neon */

.ai-mode .badge-popular {
    background: linear-gradient(135deg, rgba(255, 114, 166, 0.92), rgba(108, 139, 255, 0.92));
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 114, 166, 0.35);
}


/* CTA em modo IA com gradiente neon */

.ai-mode .btn-rose {
    background: linear-gradient(135deg, #ff679a, #6c8bff);
    color: #ffffff;
    border: none;
    box-shadow: 0 12px 30px rgba(108, 139, 255, 0.35);
}

.ai-mode .btn-rose:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}


/* Banner hero em glass sutil */

.ai-mode .bg-guru-tools-banner {
    background: linear-gradient(135deg, rgba(38, 32, 68, 0.65), rgba(24, 20, 45, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.ai-mode .btn-banner-tools {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ai-mode .btn-banner-tools:hover {
    background: rgba(255, 255, 255, 0.16);
}


/* Filtros com look IA */

.ai-mode .tool-filter-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #e6e6ff;
    border-color: rgba(255, 255, 255, 0.14);
}

.ai-mode .tool-filter-btn.active {
    background: linear-gradient(135deg, #ff679a, #6c8bff);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(108, 139, 255, 0.35);
}


/* ============================
   Modern UX — Page Tools scope
   ============================ */

:root {
    --tools-radius: 18px;
    --tools-shadow: 0 10px 24px rgba(25, 25, 27, 0.06);
    --tools-shadow-hover: 0 16px 32px rgba(25, 25, 27, 0.12);
    --tools-border: rgba(24, 24, 27, 0.08);
    --tools-text: #1f2937;
    --tools-muted: #6b7280;
}

.page-tools {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Lato", sans-serif;
}


/* Hero futurista */

.page-tools .tools-hero {
    position: relative;
    border-radius: 20px;
    padding: 2rem;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(244, 63, 94, 0.4) 0%, transparent 60%), radial-gradient(1200px 600px at 90% 20%, rgba(139, 92, 246, 0.35) 0%, transparent 60%), linear-gradient(120deg, #f43f5e 0%, #ec4899 40%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 20px 40px rgba(24, 24, 27, 0.15);
    overflow: hidden;
}

.page-tools .tools-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .3;
    pointer-events: none;
}

.page-tools .tools-hero .hero-title {
    font-weight: 800;
    letter-spacing: .2px;
}

.page-tools .tools-hero .hero-subtitle {
    opacity: .92;
}

.page-tools .tools-hero .hero-orb {
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, rgba(255, 255, 255, 0.7) 30%, rgba(255, 255, 255, 0.25) 65%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 40px rgba(24, 24, 27, 0.15);
}

.page-tools .tools-hero .btn-banner-tools {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(24, 24, 27, 0.08);
    padding: .625rem .875rem;
    border-radius: 12px;
    box-shadow: var(--tools-shadow);
}

.page-tools .tools-hero .btn-banner-tools:hover {
    transform: translateY(-2px);
    box-shadow: var(--tools-shadow-hover);
}

.page-tools .btn-banner-tools {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(24, 24, 27, 0.08);
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
    box-shadow: var(--tools-shadow);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.page-tools .btn-banner-tools:hover {
    transform: translateY(-2px);
    box-shadow: var(--tools-shadow-hover);
}

.page-tools .card {
    border-radius: var(--tools-radius);
    box-shadow: var(--tools-shadow);
    background: #ffffff;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: cardReveal .5s ease both;
    border: none;
}

.page-tools .card:hover {
    box-shadow: var(--tools-shadow-hover);
    transform: translateY(-2px);
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-tools .card h3 {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Lato", sans-serif;
    letter-spacing: .2px;
}

.page-tools .card p {
    color: var(--tools-muted);
}

.page-tools .favorite-tool-btn {
    transition: transform .15s ease, color .15s ease;
}

.page-tools .favorite-tool-btn:hover {
    transform: scale(1.06);
}

.page-tools .tool-filter-btn {
    border: 1px solid var(--tools-border);
    border-radius: 999px;
    padding: 0.5rem 0.875rem;
    background: #ffffff;
    color: #374151;
    box-shadow: var(--tools-shadow);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.page-tools .tool-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tools-shadow-hover);
}

.page-tools .tool-filter-btn.active {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    border-color: transparent;
}

.page-tools .sticky-filter {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(24, 24, 27, 0.06);
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.page-tools .btn-rose {
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: var(--tools-shadow);
}

.page-tools .btn-rose:hover {
    transform: translateY(-1px);
    box-shadow: var(--tools-shadow-hover);
}


/* Harmonização de botões e favoritos com o dashboard */

.page-tools .btn-rose {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    border: none;
}

.page-tools .btn-outline-rose {
    border: 1px solid var(--tools-border);
    background: #fff;
    color: #1f2937;
}

.page-tools .favorite-tool-btn {
    color: #9ca3af;
}

.page-tools .favorite-tool-btn .fas {
    color: #f59e0b;
}

.page-tools .badge-popular {
    position: absolute;
    top: 2.4rem;
    /* abaixo do botão de favorito */
    right: 0.5rem;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.3);
}


/* Slider para ferramentas */

.tools-slider {
    position: relative;
}

.tools-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.tools-track::-webkit-scrollbar {
    display: none;
}

.tools-track .card {
    scroll-snap-align: start;
    min-width: 320px;
}

.slider-nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.slider-nav .prev,
.slider-nav .next {
    pointer-events: auto;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(24, 24, 27, 0.08);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    backdrop-filter: blur(6px);
    color: #111827;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
}

.slider-nav .prev {
    left: 6px;
}

.slider-nav .next {
    right: 6px;
}

.slider-nav .prev:hover,
.slider-nav .next:hover {
    filter: brightness(1.05);
}


/* Inputs dos modais (SweetAlert) mais modernos */

.swal2-popup .swal2-input,
.swal2-popup .swal2-textarea,
.swal2-popup .swal2-select {
    border: 1px solid rgba(24, 24, 27, 0.12);
    border-radius: 12px !important;
    padding: 0.75rem 0.875rem !important;
    background: #fff;
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.swal2-popup .swal2-input:focus,
.swal2-popup .swal2-textarea:focus,
.swal2-popup .swal2-select:focus {
    outline: none !important;
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15) !important;
}

.swal2-popup label {
    color: #374151;
    font-weight: 600;
}


/* Esconde a paginação quando o slider está habilitado */

.page-tools #pagination-container,
.page-tools #hot-pagination-container {
    display: none;
}


/* ======================================== Header ======================================== */

.header-gradient {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-container {
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05) rotate(5deg);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #ec4899;
}

.btn-login {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

.credits-badge {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 2px solid #f9a8d4;
    animation: pulse 2s infinite;
}

.notification-btn {
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.notification-btn:hover {
    transform: scale(1.1);
    color: #ec4899;
}

.notification-badge {
    animation: pulse 2s infinite;
}

.dropdown-menu {
    display: none;
    animation: slideUp 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 72, 153, 0.1);
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
}


/* ======================================== Login Page ======================================== */

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 100%);
    border: 1px solid #fce7f3;
    border-radius: 9999px;
    color: #db2777;
    font-weight: 700;
}

.input-premium {
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    background: #fff;
}

.input-premium:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
    background: #fbfbff;
}

.accent-title {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6rem;
    line-height: 1;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 600;
    font-size: 0.75rem;
}


/* ======================================== Hero & Landing ======================================== */

.hero-gradient {
    background: linear-gradient(-45deg, #ff6b9d, #c084fc, #fb923c, #fbbf24, #ec4899);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-container-3d {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-container-3d:hover {
    transform: translateY(-10px) rotateY(-2deg);
}


/* ======================================== Dashboard ======================================== */

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.plan-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f43f5e, #fb7185, #f59e0b);
}


/* Banner de ferramentas com overlay animado */

.tools-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.tools-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.page-fade-in {
    animation: fadeIn 0.6s ease;
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

.success-story-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.success-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.plan-generated {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 2px solid #f9a8d4;
}

.status-badge {
    animation: scaleIn 0.3s ease;
}


/* ======================================== Ajuda ======================================== */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}


/* ======================================== Admin Messages ======================================== */

.message-row.unread {
    font-weight: 600;
    background-color: #fefce8;
}

.message-content-row {
    display: none;
}

.message-content-row.visible {
    display: table-row;
}

.message-row .fa-chevron-down {
    transition: transform 0.3s ease;
}

.message-row.expanded .fa-chevron-down {
    transform: rotate(180deg);
}


/* ======================================== Tools Page — Overrides ======================================== */

.page-tools .tools-slider {
    position: relative;
    --card-w: 280px;
    width: 100%;
}

.page-tools .slider-nav {
    display: none !important;
}

.page-tools .slider-nav-right {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.page-tools .slider-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: .75rem;
    padding: .5rem .75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.page-tools .slider-btn:hover {
    background: #f9fafb;
}

.page-tools .view-all-toggle {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    border-radius: .75rem;
    padding: .5rem .75rem;
    margin-top: 0;
}

.page-tools .tools-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: .5rem;
    gap: 1rem !important;
}

.page-tools .tools-track::-webkit-scrollbar,
.page-tools .tools-track::-webkit-scrollbar-thumb {
    display: none;
}

.page-tools .card {
    scroll-snap-align: unset;
    box-sizing: border-box;
    min-width: 0;
    padding: .7rem !important;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
    backdrop-filter: saturate(120%) blur(4px);
    transition: transform .2s ease, box-shadow .2s ease;
}

.page-tools .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.page-tools .card .flex-grow {
    padding-top: .5rem !important;
    min-height: auto;
}

.page-tools .card h3 {
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: .01em;
    margin: .25rem 0 .25rem;
}

.page-tools .card .text-xl {
    font-size: .95rem !important;
    line-height: 1.4;
}

.page-tools .card .text-sm {
    font-size: .82rem !important;
    line-height: 1.55;
    margin-top: .4rem;
}

.page-tools .card i {
    font-size: 1.35rem;
}

.page-tools .card .favorite-tool-btn {
    font-size: 1rem !important;
}

.page-tools .card .favorite-tool-btn i {
    font-size: 1rem !important;
}

.page-tools .card .btn-rose {
    padding: .5rem .75rem;
    font-size: .9rem;
    border-radius: .75rem;
}

.page-tools .card .mb-4 {
    margin-bottom: .5rem;
}

.page-tools .card .absolute.top-2.left-2 {
    font-size: .72rem;
    padding: .2rem .45rem;
    border-radius: .5rem;
}

.page-tools .card .absolute.top-2.left-2 i {
    margin-right: .25rem;
}

.page-tools .card i.text-4xl {
    margin-top: .6rem;
}

.page-tools .card .badge-popular {
    display: inline-block;
    margin-top: .25rem;
    font-size: .72rem;
    padding: .18rem .45rem;
    border-radius: 9999px;
    background: #FEF3C7;
    color: #92400e;
    border: 1px solid #FDE68A;
}

.page-tools .slider-btn {
    padding: .5rem .9rem;
    border-radius: .75rem;
}

.page-tools .slider-btn i {
    font-size: .95rem;
}

@media (max-width: 1024px) {
    .page-tools .tools-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-tools .tools-slider {
        --card-w: 260px;
    }
    .page-tools .tools-track {
        grid-template-columns: 1fr;
        gap: .45rem !important;
    }
    .page-tools .card h3 {
        font-size: .95rem;
    }
    .page-tools .card .text-xl {
        font-size: .9rem !important;
    }
    .page-tools .card .text-sm {
        font-size: .8rem !important;
    }
}

@media (max-width: 480px) {
    .page-tools .tools-slider {
        --card-w: 240px;
    }
    .page-tools .tools-track {
        grid-template-columns: 1fr;
        gap: .4rem !important;
    }
}


/* ======================================== Histórico de Ferramentas ======================================== */

.page-history {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
}

.page-history .hero-title {
    font-family: 'Poppins', sans-serif;
    letter-spacing: .01em;
    font-weight: 700;
    background-image: linear-gradient(90deg, #f43f5e, #fb7185, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-history .card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    backdrop-filter: saturate(120%) blur(6px);
}

.history-hero .card {
    background: linear-gradient(135deg, #ffe4e6 0%, #fff7ed 100%);
    border-color: #ffe4e6;
}

.page-history .tool-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .7));
    border: 1px solid rgba(244, 63, 94, .15);
    color: #111827;
    border-radius: 9999px;
    padding: .25rem .6rem;
    font-size: .75rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    box-shadow: 0 4px 12px rgba(17, 24, 39, .06);
    backdrop-filter: blur(6px) saturate(120%);
}

.page-history .tool-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(17, 24, 39, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .85));
}

.page-history .tool-filter-btn.active {
    background: linear-gradient(90deg, #f43f5e, #fb7185, #f59e0b);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(244, 63, 94, .25);
}

.page-history .tool-filter-btn i {
    opacity: .85;
    font-size: .8rem;
    margin-right: .2rem;
}

.page-history .tool-section-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.page-history .tool-section-header {
    position: relative;
}

.page-history .tool-section-header:hover {
    background: #f9fafb;
}

.page-history .history-item-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.page-history .history-item-card:hover {
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}

.page-history .empty-state {
    background: linear-gradient(180deg, #f9fafb, #fff);
    border: 1px dashed #e5e7eb;
}

.page-history .badge {
    display: inline-block;
    font-size: .75rem;
    padding: .16rem .5rem;
    border-radius: 9999px;
    border: 1px solid #FDE68A;
    background: #FEF3C7;
    color: #92400e;
}


/* ======================================== Impressão — Cupons ======================================== */

.coupon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.coupon-item {
    border: 2px dashed #fecdd3;
    background-color: #fff1f2;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.coupon-item p {
    margin: 0.25rem 0;
}

.coupon-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1f2937;
}

.coupon-subtitle {
    font-size: 0.75rem;
    color: #be123c;
    font-weight: bold;
    text-transform: uppercase;
}

.coupon-desc {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

@media print {
    body {
        -webkit-print-color-adjust: exact;
    }
    .coupon-grid {
        page-break-inside: avoid;
    }
}


/* ======================================== Global Animations ======================================== */

@keyframes gradient-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-reverse {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(219, 39, 119, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(219, 39, 119, 0.6);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ai-thinking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #db2777;
    display: inline-block;
    animation: thinking 1.4s infinite;
    margin: 0 2px;
}

.ai-thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.shimmer-effect {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.badge-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse-glow 2s infinite;
}

.badge-eco {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.badge-bestseller {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ai-process-step {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.ai-process-step.active {
    opacity: 1;
    transform: translateX(0);
}

.result-card-enter {
    animation: cardEnter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#social-proof-popup-indica {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#social-proof-popup-indica.show {
    opacity: 1;
    transform: translateY(0);
}

.search-glow {
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
    transition: all 0.3s ease;
}

.search-glow:focus {
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.3);
}

@media (max-width: 768px) {
    #social-proof-popup-indica {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

main {
    position: relative;
    z-index: 1;
}

.mood-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.mood-btn:hover {
    transform: scale(1.2) rotate(10deg);
}

.mood-btn.selected {
    transform: scale(1.3);
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8));
}

.mood-btn.selected::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.2);
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.tag-btn {
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tag-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s;
}

.tag-btn:hover::before {
    left: 100%;
}

.tag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tag-btn.tag-selected {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: #7c3aed;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
}

.btn-premium:active {
    transform: translateY(0);
}

.diary-entry-card {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.diary-entry-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.collapsible-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    transition: background 0.3s ease;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.collapsible-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-180 {
    transform: rotate(180deg);
}

textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.search-container {
    position: relative;
}

.search-container input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
    background: white;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

.tips-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 2px solid #e9d5ff;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.tips-card::before {
    content: '✨';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.chart-container {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.hot-banner {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #f97316 100%);
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mood-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.reflection-box {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-left: 4px solid #667eea;
    padding: 16px;
    border-radius: 12px;
}

.guru-response {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #f43f5e;
    padding: 16px;
    border-radius: 12px;
}

.premium-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.premium-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.premium-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.premium-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}


/* Palavras flutuantes nas laterais */

.side-float-words {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Largura alinhada ao container principal (max-w-4xl ≈ 56rem) */
    width: min(92vw, 56rem);
    pointer-events: none;
    z-index: 0;
}

.side-word {
    position: absolute;
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    letter-spacing: 0.02em;
    opacity: 0.22;
    font-size: clamp(24px, 3.5vw, 44px);
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(139, 92, 246, 0.18));
    /* Durations via CSS variables for fine control */
    --float-duration: 8s;
    --v-duration: 20s;
}

.side-word.left {
    left: -8px;
    /* encosta nas bordas da seção do diário */
    /* Combine gentle float with vertical travel */
    animation-name: floatLeft, verticalMove;
    animation-duration: var(--float-duration), var(--v-duration);
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-direction: normal, alternate;
}

.side-word.right {
    right: -8px;
    /* encosta nas bordas da seção do diário */
    text-align: right;
    /* Combine gentle float with vertical travel */
    animation-name: floatRight, verticalMove;
    animation-duration: var(--float-duration), var(--v-duration);
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-direction: normal, alternate;
}


/* Starting positions + vertical ranges */

.side-word.w0 {
    top: 12%;
    --top-start: 12%;
    --top-end: 30%;
}

.side-word.w1 {
    top: 22%;
    --top-start: 22%;
    --top-end: 38%;
}

.side-word.w2 {
    top: 42%;
    --top-start: 42%;
    --top-end: 58%;
}

.side-word.w3 {
    top: 62%;
    --top-start: 62%;
    --top-end: 46%;
}

.side-word.w4 {
    top: 78%;
    --top-start: 78%;
    --top-end: 62%;
}

.side-word.w5 {
    top: 34%;
    --top-start: 34%;
    --top-end: 50%;
}

.side-word.w6 {
    top: 88%;
    --top-start: 88%;
    --top-end: 72%;
}


/* Speed classes now control float speed via CSS variables */

.side-word.fast {
    --float-duration: 6.5s;
}

.side-word.medium {
    --float-duration: 7.8s;
}

.side-word.slow {
    --float-duration: 9s;
}

@keyframes floatLeft {
    0% {
        transform: translateY(0) rotate(-6deg);
    }
    50% {
        transform: translateY(-10px) rotate(-6deg);
    }
    100% {
        transform: translateY(0) rotate(-6deg);
    }
}

@keyframes floatRight {
    0% {
        transform: translateY(0) rotate(6deg);
    }
    50% {
        transform: translateY(-10px) rotate(6deg);
    }
    100% {
        transform: translateY(0) rotate(6deg);
    }
}


/* Vertical travel between two positions */

@keyframes verticalMove {
    0% {
        top: var(--top-start);
    }
    100% {
        top: var(--top-end);
    }
}

@media (max-width: 767.98px) {
    .side-float-words {
        display: none;
    }
}

.premium-bg {
    background: linear-gradient(135deg, #fff 0%, #fff 40%, #f8f0ff 70%, #fde8f5 100%);
    position: relative;
    min-height: 100vh;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.orb-1 {
    width: 520px;
    height: 520px;
    background: #f0b6ff;
    top: -120px;
    left: -160px;
}

.orb-2 {
    width: 440px;
    height: 440px;
    background: #ffc1d9;
    bottom: -120px;
    right: -160px;
}

.quote-premium {
    border-left: 4px solid #f43f5e;
    background: rgba(245, 245, 255, 0.6);
    padding-left: 1rem;
    border-radius: 10px;
}

.logo-container {
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05) rotate(5deg);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #ec4899;
}

.btn-login {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

.credits-badge {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 2px solid #f9a8d4;
    animation: pulse 2s infinite;
}

.notification-btn {
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    /* manter abaixo do dropdown mobile */
}

.notification-btn:hover {
    transform: scale(1.1);
    color: #ec4899;
}

.notification-badge {
    animation: pulse 2s infinite;
}

.dropdown-menu {
    display: none;
    animation: slideDown 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 72, 153, 0.1);
    z-index: 1000;
    /* Garantir que o dropdown fique acima dos ícones */
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #ec4899, #8b5cf6);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #fdf2f8 0%, transparent 100%);
    padding-left: 1.25rem;
}

.level-progress-bar {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 100%;
    animation: shimmer_level 2s infinite;
}

.mobile-menu-btn {
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #fdf2f8;
    color: #ec4899;
}

.nav-desktop {
    display: none;
}

.nav-mobile {
    display: block;
}


/* Slogan oculto em mobile */

.site-slogan {
    display: none;
}


/* Ajustes específicos de dropdown no mobile */

@media (max-width: 767.98px) {
    .mobile-user-wrap {
        z-index: 2000;
    }
    /* Garantir itens lado a lado e evitar quebra de linha */
    .nav-mobile {
        flex-wrap: nowrap;
    }
    .nav-mobile>* {
        flex-shrink: 0;
    }
    /* Dropdown do usuário abre abaixo e alinhado ao botão, sem invadir o sino */
    #userDropdownMenuMobile {
        right: 0 !important;
        /* ancora no lado direito do wrapper (botão) */
        left: auto !important;
        transform: none !important;
        /* sem centragem no mobile */
        z-index: 1000 !important;
        width: calc(100vw - 32px);
        max-width: 320px;
        margin-left: 0 !important;
        border-radius: 20px;
    }
    #notificationButtonMobile {
        z-index: 1 !important;
    }
    /* Visitante continua centralizado */
    #guestDropdownMenu {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: calc(100vw - 32px);
        max-width: 320px;
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    .nav-mobile {
        display: none;
    }
    .site-slogan {
        display: block;
    }
}


/* Notificações melhoradas */

.notification-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: #fdf2f8;
    border-left-color: #ec4899;
}

.delete-notification-btn {
    opacity: 0;
    transition: all 0.2s ease;
}

.notification-item:hover .delete-notification-btn {
    opacity: 1;
}

.prof-text-green {
    color: #06b86b;
}

.text-pagination {
    color: #667eea;
}

:root {
    /* Paleta de cores premium */
    --primary-50: #fdf2f8;
    --primary-100: #fce7f3;
    --primary-200: #fbcfe8;
    --primary-300: #f9a8d4;
    --primary-400: #f472b6;
    --primary-500: #ec4899;
    --primary-600: #db2777;
    --primary-700: #be185d;
    --primary-800: #9d174d;
    --primary-900: #831843;
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-300: #cbd5e1;
    --secondary-400: #94a3b8;
    --secondary-500: #64748b;
    --secondary-600: #475569;
    --secondary-700: #334155;
    --secondary-800: #1e293b;
    --secondary-900: #0f172a;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    /* Sombras profissionais */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    /* Bordas e raios */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    /* Espaçamentos */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}


/* Reset e base */

body.plan-page {
    background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 25%, var(--secondary-50) 100%);
    color: var(--secondary-800);
    line-height: 1.6;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    min-height: 100vh;
    position: relative;
}


/* Background decorativo */

body.plan-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%), radial-gradient(circle at 40% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}


/* Container principal */

.plan-page main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}


/* ===== TIPOGRAFIA PROFISSIONAL ===== */

.plan-page main h1 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-lg);
}

.plan-page main h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--secondary-800);
    margin-bottom: var(--space-md);
    position: relative;
}

.plan-page main h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: 600;
    color: var(--secondary-700);
    margin-bottom: var(--space-sm);
}

.plan-page main .text-rose-600 {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}


/* ===== CARDS PREMIUM COM GLASSMORPHISM ===== */

.plan-page main .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.plan-page main .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.plan-page main .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(236, 72, 153, 0.2);
}


/* ===== HEADER E SEÇÃO HERO ===== */

.plan-page main .hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.plan-page main .hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(236, 72, 153, 0.1), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.plan-page main .plan-header {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    position: relative;
}

.plan-page main .plan-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}


/* ===== NAVEGAÇÃO POR ABAS MODERNA ===== */

.plan-page main #plan-tabs {
    position: sticky;
    top: var(--space-md);
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-xl);
    padding: var(--space-sm);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.plan-page main .tab-button {
    color: var(--secondary-500);
    font-weight: 500;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.plan-page main .tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.plan-page main .tab-button:hover {
    color: var(--secondary-700);
    background: rgba(248, 250, 252, 0.8);
    transform: translateY(-2px);
}

.plan-page main .tab-button:hover::before {
    left: 100%;
}

.plan-page main .tab-active {
    color: var(--primary-600) !important;
    background: linear-gradient(135deg, var(--primary-50), rgba(255, 255, 255, 0.8));
    border: 1px solid var(--primary-200) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.plan-page main .tab-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}


/* ===== BOTÕES PROFISSIONAIS ===== */

.plan-page main .btn-rose,
.plan-page main .btn-purple {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.plan-page main .btn-rose::before,
.plan-page main .btn-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.plan-page main .btn-rose:hover,
.plan-page main .btn-purple:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.plan-page main .btn-rose:hover::before,
.plan-page main .btn-purple:hover::before {
    left: 100%;
}

.plan-page main .btn-outline-rose {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-200);
    color: var(--primary-600);
    font-weight: 600;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.plan-page main .btn-outline-rose:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ===== SEÇÕES ESPECIAIS ===== */

.plan-page main .daily-phrase {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.plan-page main .daily-phrase::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    border-radius: var(--radius-2xl);
    z-index: -1;
}

.plan-page main .daily-phrase .quote-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--primary-700);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.plan-page main .favorite-btn {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: #fbbf24;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.plan-page main .favorite-btn:hover {
    transform: scale(1.2) rotate(15deg);
    color: #f59e0b;
}


/* Ajuste: em Dicas Valiosas, o botão deve acompanhar cada item da lista */

.plan-page main #dicas-valiosas-container li .favorite-btn {
    position: static;
    top: auto;
    right: auto;
}


/* Ajuste: em Insights de Psicologia, botão menor e sem sobrepor texto */

.plan-page main #insights-container .insight-item {
    padding-right: 2.5rem;
    /* reserva espaço para o ícone no canto */
}

.plan-page main #insights-container .favorite-btn {
    position: absolute;
    top: 0.5rem;
    /* top-2 */
    right: 0.5rem;
    /* right-2 */
    width: 28px;
    height: 28px;
    font-size: 1rem;
    /* ícone menor */
    background: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: #9ca3af;
    /* cinza claro quando não favoritado */
}

.plan-page main #insights-container .favorite-btn:hover {
    transform: none;
    /* evita aumento que poderia encostar no texto */
    color: #fbbf24;
}

.plan-page main #insights-container .favorite-btn.active {
    color: #fbbf24;
    background: #fef3c7;
}


/* Ajuste: em Ações e Atitudes, botão menor e alinhado como nos insights */

.plan-page main #acoes-container .acao-item {
    padding-right: 2.5rem;
    /* reserva espaço caso usemos posição absoluta futuramente */
}

.plan-page main #acoes-container .favorite-btn {
    position: static;
    /* permanece no bloco de ações, sem absoluto global */
    width: 28px;
    height: 28px;
    font-size: 1rem;
    background: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: #9ca3af;
}

.plan-page main #acoes-container .favorite-btn:hover {
    transform: none;
    color: #fbbf24;
}

.plan-page main #acoes-container .favorite-btn.active {
    color: #fbbf24;
    background: #fef3c7;
}


/* ===== BLOCOS INFORMATIVOS ===== */

.plan-page main .info-block {
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.plan-page main .missions-block {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 2px dashed var(--primary-300);
}

.plan-page main .quiz-block {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 2px dashed #93c5fd;
}

.plan-page main .analysis-block {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 2px dashed #86efac;
}

.plan-page main .mission-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--secondary-200);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.plan-page main .mission-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.plan-page main .mission-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}


/* ===== BADGES E INDICADORES ===== */

.plan-page main .difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.plan-page main .badge-iniciante {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-color: #86efac;
}

.plan-page main .badge-intermediario {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: #fbbf24;
}

.plan-page main .badge-avancado {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #991b1b;
    border-color: #f87171;
}


/* ===== INDICADORES DE PROGRESSO ===== */

.plan-page main .progress-indicator {
    background: var(--secondary-100);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    position: relative;
}

.plan-page main .progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.plan-page main .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes shimmer-card {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer-card-effect {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer-card 2s infinite;
}


/* ===== RESPONSIVIDADE PROFISSIONAL ===== */

@media (max-width: 1024px) {
    .plan-page main {
        padding: var(--space-lg) var(--space-md);
    }
    .plan-page main .card {
        padding: var(--space-lg) !important;
    }
}

@media (max-width: 768px) {
    .plan-page main {
        padding: var(--space-md) var(--space-sm);
    }
    .plan-page main .hero-section {
        padding: var(--space-xl);
    }
    .plan-page main .card {
        padding: var(--space-md) !important;
        margin-bottom: var(--space-lg);
    }
    .plan-page main .tab-button {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.875rem;
    }
    .plan-page main h2 {
        font-size: 1.5rem;
    }
    .plan-page main h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .plan-page .daily-phrase {
        padding: var(--space-lg);
    }
    .plan-page main .info-block {
        padding: var(--space-lg);
    }
    .plan-page main .btn-rose,
    .plan-page main .btn-purple,
    .plan-page main .btn-outline-rose {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.875rem;
    }
}


/* ===== ANIMAÇÕES E MICRO-INTERAÇÕES ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.plan-page main .animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-page main .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* ===== ESTADOS DE FEEDBACK ===== */

.plan-page main .btn-feedback-like,
.plan-page main .btn-feedback-dislike {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--secondary-200);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.plan-page main .btn-feedback-like:hover {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plan-page main .btn-feedback-dislike:hover {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    border-color: #f87171;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* ===== SCROLLBAR PERSONALIZADA ===== */

.plan-page ::-webkit-scrollbar {
    width: 8px;
}

.plan-page ::-webkit-scrollbar-track {
    background: var(--secondary-100);
    border-radius: var(--radius-full);
}

.plan-page ::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

.plan-page ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-roxo {
    color: #994dd3;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.goal-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.goal-card:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

.input-field {
    background: rgba(249, 250, 251, 1);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}


/* Variante compacta para botões menores na página */

.btn-primary.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
    border-radius: 8px;
    flex: 0 0 auto;
    /* evita expandir em containers flex */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tab-button {
    padding: 12px 24px;
    border-radius: 12px;
    background: transparent;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}



.compatibility-meter {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.compatibility-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    border-radius: 10px;
    transition: width 1s ease;
}