/* Dashboard Styles */

.dashboard-body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(10, 5, 21, 0.95);
    border-right: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--mystical-gradient);
    color: white;
}

.link-icon {
    font-size: 1.3rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--mystical-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.user-details span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.logout-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Main Content */
.dashboard-main {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.dashboard-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    background: var(--mystical-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none; /* Não bloqueia cliques */
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.usage-counter {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.counter-value {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--mystical-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Interpretation Dashboard */
.interpretation-container-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
}

.save-options {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

/* Diário de Sonhos */
.diario-header {
    margin-bottom: 2rem;
}

.diario-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.diario-filters {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: rgba(15, 10, 31, 0.5);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.filter-select {
    padding: 0.8rem 1.2rem;
    background: rgba(15, 10, 31, 0.5);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-purple);
}

/* Dreams Grid */
.dreams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.dream-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    border-color: var(--primary-purple);
}

.dream-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.dream-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dream-actions {
    display: flex;
    gap: 0.5rem;
}

.dream-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.dream-action-btn:hover {
    color: var(--primary-purple);
    transform: scale(1.2);
}

.dream-content-preview {
    margin-bottom: 1rem;
}

.dream-content-preview p {
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dream-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dream-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Padrões */
.patterns-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pattern-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.pattern-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.pattern-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.empty-text {
    font-style: italic;
    opacity: 0.7;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item strong {
    color: var(--primary-purple);
    font-size: 1.2rem;
}

/* Estatísticas Detalhadas */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(139, 92, 246, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateX(3px);
}

.stat-row.recurring {
    border-left-color: var(--accent);
    background: rgba(255, 215, 0, 0.05);
}

.stat-row.mood-row {
    border-left-color: var(--primary);
}

.stat-label {
    font-weight: 500;
    color: var(--text-primary);
}

.stat-value {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.95rem;
}

.emotional-trend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.trend-item {
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.trend-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.insight-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-top: 1rem;
}

.insight-card p {
    margin: 0;
    color: var(--text-secondary);
}

.insight-card strong {
    color: var(--primary);
    font-size: 1.05rem;
}

/* Perfil */
.profile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
}

.profile-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.profile-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.profile-info,
.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.info-item label {
    color: var(--text-secondary);
}

.info-item span {
    font-weight: 500;
}

.plan-badge-profile {
    padding: 0.25rem 0.75rem;
    background: var(--mystical-gradient);
    border-radius: 50px;
    font-size: 0.9rem;
}

.upgrade-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--mystical-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

/* Cancel Subscription Button */
.cancel-subscription-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.cancel-subscription-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

.cancel-subscription-btn:active {
    transform: translateY(0);
}

/* Dream Modal */
.dream-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dream-modal.active {
    opacity: 1;
}

.dream-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.dream-modal-content {
    position: relative;
    background: rgba(10, 5, 21, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    animation: modalSlideIn 0.3s ease;
}

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

.dream-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.dream-modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    background: var(--mystical-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(139, 92, 246, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: rotate(90deg);
}

.dream-modal-body {
    padding: 2rem;
}

.dream-section {
    margin-bottom: 2rem;
}

.dream-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.dream-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.dream-mood {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
}

.dream-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.modal-btn.delete-btn {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.modal-btn.delete-btn:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.2);
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
    .dreams-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════ */
/* SELEÇÃO DE SENTIMENTOS (Mood Buttons)                          */
/* ══════════════════════════════════════════════════════════════ */

.additional-info {
    margin: 2rem 0;
}

.additional-info label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.required-star {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-left: 0.25rem;
}

.mood-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mood-btn {
    padding: 0.875rem 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mood-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.mood-btn.selected {
    background: var(--mystical-gradient);
    border-color: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.mood-input {
    width: 100%;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.mood-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
}

.mood-input.hidden {
    display: none;
}

.mood-helper-text {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.mood-helper-text.error {
    color: #ff6b6b;
    font-style: normal;
    font-weight: 500;
}

/* Responsivo para mood buttons */
@media (max-width: 768px) {
    .mood-buttons-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .mood-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   NÍVEL DE PREOCUPAÇÃO - Barras Indicadoras
   ══════════════════════════════════════════════════════════ */

.worry-indicator {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.worry-level-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 100%;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    visibility: visible !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(138, 43, 226, 0.6);
}

.worry-level-item.active {
    background: linear-gradient(90deg, #8a2be2 0%, #da70d6 100%);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
    color: white;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(138, 43, 226, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(138, 43, 226, 0.6);
    }
}

/* Responsivo para barras de preocupação */
@media (max-width: 768px) {
    .worry-indicator {
        gap: 0.75rem;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .worry-level-item {
        height: 28px !important;
        font-size: 0.8rem;
        display: flex !important;
        visibility: visible !important;
        min-height: 28px;
    }

    /* Garantir que a seção pai não esconda */
    .result-section.worry-level,
    .worry-level {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   PADRÕES EM FORMAÇÃO - UI de Progresso
   ══════════════════════════════════════════════════════════ */

.patterns-forming-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    animation: fadeInScale 0.6s ease-out;
}

.patterns-forming-card .forming-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.patterns-forming-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.patterns-forming-card .forming-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.progress-container {
    margin: 2rem 0;
}

.progress-item {
    margin-bottom: 2rem;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--mystical-gradient);
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::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;
}

.progress-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.forming-message {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-purple);
}

.forming-message p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.forming-message strong {
    color: var(--primary-purple);
}

/* Animações */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Bypass Option (Acesso Rápido) */
.progress-item.bypass-option {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 2px dashed rgba(245, 158, 11, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.progress-bar-fill.bypass {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.bypass-hint {
    color: #f59e0b !important;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════
   QUALITY TIP BANNER - Aviso de melhoria com 30+ sonhos
   ══════════════════════════════════════════════════════════ */

.quality-tip-banner {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    animation: slideInDown 0.5s ease-out;
}

.quality-tip-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.quality-tip-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.quality-tip-text h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #10b981;
    margin: 0 0 0.75rem 0;
}

.quality-tip-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    line-height: 1.6;
}

.quality-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.quality-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 10px;
    transition: width 1s ease-out;
}

.quality-tip-hint {
    font-size: 0.95rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 0.75rem;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsivo */
@media (max-width: 768px) {
    .patterns-forming-card {
        padding: 2rem 1.5rem;
    }

    .patterns-forming-card h3 {
        font-size: 1.5rem;
    }

    .patterns-forming-card .forming-subtitle {
        font-size: 1rem;
    }

    .quality-tip-content {
        flex-direction: column;
        text-align: center;
    }

    .quality-tip-icon {
        font-size: 2.5rem;
    }

    .quality-tip-banner {
        padding: 1.25rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   BLOQUEIO DE FEATURES - Cards de Upgrade
   ══════════════════════════════════════════════════════════ */

.feature-locked-overlay {
    position: relative;
    min-height: 400px;
}

.feature-locked-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(219, 39, 119, 0.15) 100%);
    border: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.6s ease-out;
}

.locked-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.feature-locked-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.feature-locked-card .locked-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-benefits {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(139, 92, 246, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

.feature-benefits h4 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    color: var(--text-primary);
}

.benefit-item .benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.upgrade-cta-btn {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--mystical-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.upgrade-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--mystical-gradient);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin: 0 0.25rem;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
    .feature-locked-card {
        padding: 2rem 1.5rem;
    }

    .feature-locked-card h3 {
        font-size: 1.5rem;
    }

    .locked-icon {
        font-size: 3rem;
    }

    .upgrade-cta-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🔮 SOPHIA INSIGHTS - Análise IA das Estatísticas
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.sophia-insights-container {
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.sophia-insights-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(218, 112, 214, 0.05) 100%);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.sophia-insights-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2, #da70d6, #8a2be2);
    animation: shimmer 3s ease-in-out infinite;
}

.sophia-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.sophia-icon {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
}

.sophia-title h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #8a2be2;
    text-shadow: 0 2px 10px rgba(138, 43, 226, 0.5);
}

.sophia-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.9;
}

.insights-grid {
    display: grid;
    gap: 2rem;
}

/* Frase Mística Hero */
.insight-hero {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(218, 112, 214, 0.1) 100%);
    border: 2px solid rgba(218, 112, 214, 0.4);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.insight-hero::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: rgba(138, 43, 226, 0.1);
    font-family: Georgia, serif;
}

.mystical-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.6;
    color: #da70d6;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(218, 112, 214, 0.3);
    position: relative;
    z-index: 1;
}

/* Cards de Insights */
.insight-card {
    background: rgba(20, 10, 35, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.8), rgba(218, 112, 214, 0.4));
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.6);
}

.insight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.insight-card h4 {
    margin: 0 0 1rem 0;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #da70d6;
}

.insight-text {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    opacity: 0.95;
}

/* Cores específicas para cada tipo */
.insight-primary {
    border-left-color: #8a2be2;
}

.insight-key {
    border-left-color: #da70d6;
}

.insight-unconscious {
    border-left-color: #9370db;
}

.insight-guidance {
    border-left-color: #ba55d3;
}

.sophia-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    text-align: center;
}

.sophia-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Responsivo */
@media (max-width: 768px) {
    .sophia-insights-card {
        padding: 2rem 1.5rem;
    }

    .sophia-title h3 {
        font-size: 1.5rem;
    }

    .mystical-quote {
        font-size: 1.4rem;
    }

    .insight-card {
        padding: 1.5rem;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🌟 NOVO DASHBOARD DE PADRÕES - KPIs, Gráficos e Visualizações
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* === KPI CARDS === */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(75, 0, 130, 0.05) 100%);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #da70d6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
}

.kpi-card:hover::before {
    opacity: 1;
}

.kpi-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.kpi-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8a2be2, #da70d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* === CHARTS GRID === */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(20, 10, 35, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.chart-card:hover {
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
}

.chart-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(138, 43, 226, 0.2);
    padding-bottom: 0.75rem;
}

.chart-container {
    min-height: 200px;
}

/* === BARRAS HORIZONTAIS (Top Símbolos/Emoções) === */
.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    animation: slideInLeft 0.5s ease;
}

.chart-bar:last-child {
    margin-bottom: 0;
}

.chart-bar-label {
    min-width: 100px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.chart-bar-container {
    flex: 1;
    height: 30px;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 1rem;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #da70d6);
    border-radius: 15px;
    transition: width 0.8s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.4);
}

.chart-bar-fill::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;
}

.chart-bar-value {
    min-width: 50px;
    text-align: right;
    color: #da70d6;
    font-weight: 600;
    font-size: 0.95rem;
}

/* === INDICADOR CIRCULAR (Nível de Preocupação) === */
.circular-progress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
    margin-top: 1rem;
}

.circular-progress svg {
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 10;
}

.circular-progress .progress-bg {
    stroke: rgba(138, 43, 226, 0.15);
}

.circular-progress .progress-bar {
    stroke: url(#progressGradient);
    stroke-linecap: round;
    stroke-dasharray: 408;
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 1s ease;
}

.circular-progress .progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: #da70d6;
    text-align: center;
}

/* === NUVEM DE TAGS (Arquétipos) === */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.tags-cloud .tag {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(218, 112, 214, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 25px;
    color: #da70d6;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
}

.tags-cloud .tag:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(218, 112, 214, 0.2));
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

/* === TIMELINE DE ATIVIDADE === */
.activity-timeline {
    background: rgba(20, 10, 35, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.activity-timeline h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(138, 43, 226, 0.2);
    padding-bottom: 0.75rem;
}

.timeline-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 150px;
    gap: 0.5rem;
    padding: 1rem 0;
}

.timeline-bar {
    flex: 1;
    background: linear-gradient(180deg, #8a2be2, #da70d6);
    border-radius: 8px 8px 0 0;
    min-height: 10px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.timeline-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.timeline-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.timeline-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #da70d6;
}

/* === ANIMAÇÕES === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .kpi-card {
        padding: 1.5rem 1rem;
    }

    .kpi-icon {
        font-size: 2.5rem;
    }

    .kpi-value {
        font-size: 2.5rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chart-card {
        padding: 1.5rem;
    }

    .activity-timeline {
        padding: 1.5rem;
    }

    .chart-bar-label {
        min-width: 80px;
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE DESIGN - Hamburger Menu & Drawer
   ═══════════════════════════════════════════════════════════ */

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #8a2be2, #da70d6);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    pointer-events: none; /* NÃO BLOQUEAR CLIQUES quando inativo */
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto; /* ACEITAR CLIQUES quando ativo */
}

/* Mobile Responsive Breakpoints */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }

    /* Sidebar becomes drawer on mobile */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(138, 43, 226, 0.3);
    }

    .sidebar.mobile-open {
        left: 0;
    }

    /* Main content takes full width */
    .dashboard-main {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    /* Header adjustments */
    .dashboard-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
        position: relative;
    }

    .dashboard-header h1 {
        font-size: 1.3rem;
        flex: 1;
        text-align: center;
        order: 2;
        margin: 0;
    }

    .mobile-menu-toggle {
        order: 1;
        flex-shrink: 0;
        margin-right: auto;
        z-index: 1002;
        position: relative;
        pointer-events: auto;
        /* Garantir visibilidade e clicabilidade */
        min-width: 44px;
        min-height: 44px;
        background: rgba(138, 43, 226, 0.1) !important;
        border-radius: 8px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        order: 3;
        flex-basis: 100%;
    }

    .usage-counter {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Cards and sections responsive */
    .dream-input-card,
    .dream-results-card,
    .kpi-grid,
    .charts-grid {
        padding: 1rem;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Interpretation results */
    .interpretation-card {
        padding: 1.5rem;
    }

    .interpretation-header h3 {
        font-size: 1.3rem;
    }

    /* Dream diary cards */
    .dream-card {
        padding: 1.25rem;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        max-width: 500px;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Input fields */
    .dream-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Buttons spacing */
    .card-actions,
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-actions button,
    .button-group button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .kpi-card {
        padding: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.3rem;
    }

    .dream-card {
        padding: 1rem;
    }

    .interpretation-card {
        padding: 1rem;
    }

    /* Smaller font sizes for mobile */
    body {
        font-size: 14px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* =============================================
   PASSWORD MANAGEMENT MODAL
   ============================================= */

/* Change Password Button */
.change-password-btn {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    margin-top: 0;
    color: #fff;
}

.close-modal {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #a8b2d1;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #2d3748;
    border-radius: 8px;
    background: #0f1419;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* ===================================================
   🌟 BARRA DE PROGRESSO MÍSTICA
   =================================================== */

.mystical-progress-container {
    margin-top: 2rem;
    width: 100%;
}

.mystical-progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2);
}

.mystical-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #667eea 0%,
        #764ba2 50%,
        #f093fb 100%
    );
    border-radius: 10px;
    transition: width 0.3s ease-out;
    box-shadow: 
        0 0 10px rgba(102, 126, 234, 0.5),
        0 0 20px rgba(118, 75, 162, 0.3);
}

.mystical-progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.mystical-progress-percentage {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Animação pulsante para mensagens de loading */
.loading-text {
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 30px rgba(118, 75, 162, 0.7);
    }
}

/* ===================================
   LOADING PADRÕES - Discreto e Elegante
   =================================== */

.patterns-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    margin: 1rem 0 2rem 0;
    background: rgba(139, 92, 246, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.loading-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .patterns-loading {
        padding: 1.5rem 1rem;
        margin: 0.5rem 0 1.5rem 0;
    }

    .loading-text {
        font-size: 0.85rem;
    }

    .loading-spinner {
        width: 20px;
        height: 20px;
    }
}
