:root {
    --bg-color: #efe6d2;
    --bg-gradient: radial-gradient(ellipse at 50% 0%, #f5eedd 0%, #efe6d2 55%, #e8dec6 100%);
    --card-bg: rgba(247, 242, 231, 0.96);
    --card-bg-solid: #f7f2e7;
    --card-hover: #fbf8f0;
    --surface-glass: rgba(143, 127, 94, 0.08);
    --surface-glass-border: rgba(143, 127, 94, 0.4);
    --surface-glass-border-focus: #99463c;
    --text-color: #3a3530;
    --text-muted: #6b6457;
    --text-dim: #8f7f5e;
    --gold: #c99a2e;
    --gold-light: #d9ae48;
    --gold-glow: rgba(201, 154, 46, 0.25);
    --gold-dark: #8f6a14;
    --accent-color: #99463c;
    --accent-hover: #7f372f;
    --accent-glow: rgba(153, 70, 60, 0.22);
    --danger: #a33b32;
    --danger-glow: rgba(163, 59, 50, 0.2);
    --success: #5c7a4e;
    --success-glow: rgba(92, 122, 78, 0.2);
    --warning: #b8821e;
    --border-color: #bca779;
    --border-radius-sm: 2px;
    --border-radius-md: 3px;
    --border-radius-lg: 4px;
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Serif 4', Georgia, serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 60px;
}

/* Efeito sutil de estrelas de fundo */
.star-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(58, 53, 48, 0)),
        radial-gradient(1px 1px at 150px 180px, #d9ae48, rgba(58, 53, 48, 0)),
        radial-gradient(1.5px 1.5px at 280px 70px, #b06256, rgba(58, 53, 48, 0)),
        radial-gradient(1px 1px at 420px 220px, #ffffff, rgba(58, 53, 48, 0)),
        radial-gradient(1.5px 1.5px at 600px 120px, #d9ae48, rgba(58, 53, 48, 0)),
        radial-gradient(1px 1px at 780px 280px, #ffffff, rgba(58, 53, 48, 0)),
        radial-gradient(2px 2px at 920px 80px, #c99a2e, rgba(58, 53, 48, 0)),
        radial-gradient(1px 1px at 1100px 200px, #ffffff, rgba(58, 53, 48, 0));
    background-repeat: repeat;
    background-size: 1000px 350px;
    opacity: 0.45;
}

/* Header & Barra Superior */
header {
    width: 100%;
    max-width: 1100px;
    padding: 30px 20px 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(153, 70, 60, 0.15);
    border: 1px solid rgba(153, 70, 60, 0.4);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #b06256;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: var(--surface-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--accent-color);
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    transform: translateY(-2px);
}

h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(153, 70, 60, 0.4);
    background: linear-gradient(135deg, #ffffff 30%, #d9ae48 70%, #c99a2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 650px;
    margin: 0 auto;
}

.iniciatico-tag {
    color: var(--gold-dark);
    font-weight: 500;
}

/* Navegação por Abas */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 25px 0 10px;
    flex-wrap: wrap;
    z-index: 2;
}

.tab-btn {
    background: var(--surface-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.tab-btn:hover {
    color: var(--text-color);
    border-color: var(--accent-color);
    background: rgba(153, 70, 60, 0.12);
}

.tab-btn.active {
    background: linear-gradient(135deg, #99463c 0%, #99463c 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.badge-count {
    background: var(--gold);
    color: #f7f2e7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Container Principal */
.main-wrapper {
    width: 100%;
    max-width: 1080px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.tab-content {
    display: none;
    animation: fadeIn 0.35s ease forwards;
}

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

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

/* Painel de Vidro (Card Containers) */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 16px 36px rgba(58, 53, 48, 0.225);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 154, 46, 0.5), transparent);
}

/* Formulário de Consulta do Tarô */
.oracle-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

input[type="text"], select, textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: rgba(247, 242, 231, 0.85);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: rgba(247, 242, 231, 0.95);
}

.clear-input-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.clear-input-btn:hover {
    color: var(--text-color);
}

/* Chips de Sugestão de Perguntas */
.suggestion-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.chip {
    background: rgba(143, 127, 94, 0.05);
    border: 1px solid rgba(143, 127, 94, 0.1);
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    background: rgba(201, 154, 46, 0.15);
    border-color: var(--gold);
    color: var(--accent-color);
    transform: translateY(-1px);
}

/* Botões Principais */
.btn-primary {
    background: linear-gradient(135deg, #99463c 0%, #99463c 100%);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 20px var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #99463c 0%, #99463c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(153, 70, 60, 0.6);
}

.btn-secondary {
    background: var(--surface-glass);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(143, 127, 94, 0.08);
    border-color: var(--text-muted);
}

.btn-gold {
    background: linear-gradient(135deg, #c99a2e 0%, #c99a2e 100%);
    color: #f7f2e7;
    border: none;
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d9ae48 0%, #c99a2e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 154, 46, 0.5);
}

/* Área de Tiragem e Cartas */
.results-container {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spread-header-info {
    text-align: center;
    padding: 16px;
    background: rgba(153, 70, 60, 0.08);
    border: 1px dashed rgba(153, 70, 60, 0.3);
    border-radius: var(--border-radius-md);
}

.spread-header-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.spread-header-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
}

.spread-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    perspective: 1200px;
}

/* Cartas de Tarô 3D com Flip */
.card-wrapper {
    width: 190px;
    min-height: 380px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
}

.card-position-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tarot-card {
    width: 100%;
    flex: 1;
    min-height: 340px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: var(--border-radius-md);
}

.tarot-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: var(--border-radius-md);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(58, 53, 48, 0.3);
}

/* Frente da Carta (Verso Místico antes de virar) */
.card-face.front {
    background: radial-gradient(circle at 50% 50%, #f7f2e7 0%, #f7f2e7 100%);
    border: 2px solid var(--gold);
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back-pattern {
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(201, 154, 46, 0.4);
    border-radius: calc(var(--border-radius-md) - 4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

.card-back-pattern svg {
    width: 70px;
    height: 70px;
    stroke: var(--gold);
    opacity: 0.85;
    animation: pulseIcon 3s ease-in-out infinite;
}

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

.card-back-hint {
    font-size: 0.75rem;
    color: var(--gold-dark);
    margin-top: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Verso Revelado da Carta */
.card-face.back {
    background: #f7f2e7;
    border: 2px solid var(--gold);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(153, 70, 60, 0.25);
}

.card-face.back.inverted {
    border-color: var(--danger);
    box-shadow: 0 0 20px var(--danger-glow);
}

.card-inner-frame {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(201, 154, 46, 0.3);
    border-radius: calc(var(--border-radius-md) - 4px);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.card-top-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 1px;
}

.card-svg-container {
    width: 68px;
    height: 68px;
    margin: 4px 0;
    transition: transform 0.4s ease;
}

.card-svg-container.inverted {
    transform: rotate(180deg);
}

.card-svg-container svg {
    width: 100%;
    height: 100%;
}

.card-name-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 2px;
}

.card-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    margin: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-status-badge.upright {
    background: rgba(201, 154, 46, 0.2);
    color: var(--accent-color);
    border: 1px solid rgba(201, 154, 46, 0.4);
}

.card-status-badge.inverted {
    background: rgba(163, 59, 50, 0.2);
    color: #a33b32;
    border: 1px solid rgba(163, 59, 50, 0.4);
}

.card-meaning-text {
    font-size: 0.78rem;
    color: #6b6457;
    line-height: 1.35;
    margin: 4px 0;
    text-align: center;
    background: rgba(58, 53, 48, 0.125);
    padding: 6px;
    border-radius: 6px;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-action-btn {
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 0.75rem;
    background: rgba(153, 70, 60, 0.2);
    border: 1px solid rgba(153, 70, 60, 0.5);
    color: #b06256;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.card-action-btn:hover {
    background: var(--accent-color);
    color: var(--text-color);
    border-color: var(--accent-hover);
}

/* Barra de Ação da Tiragem */
.reading-action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(201, 154, 46, 0.06);
    border: 1px solid rgba(201, 154, 46, 0.2);
    border-radius: var(--border-radius-md);
    margin-top: 10px;
}

.reading-summary-text {
    flex: 1;
    min-width: 250px;
}

.reading-summary-text h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--accent-color);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.reading-summary-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.reading-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================================
   SEÇÃO TO-DO & GESTOR DE TAREFAS
   ======================================================== */
.todo-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.todo-header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(247, 242, 231, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-progress {
    height: 6px;
    background: rgba(143, 127, 94, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #99463c, #c99a2e);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Formulário de Nova Tarefa */
.new-task-card {
    background: rgba(247, 242, 231, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-input-row {
    display: flex;
    gap: 12px;
}

.task-input-row input {
    flex: 1;
}

.task-options-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.task-options-row select {
    width: auto;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.todo-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.filter-pills {
    display: flex;
    gap: 6px;
}

.filter-pill {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    color: var(--text-color);
    border-color: var(--accent-color);
}

.filter-pill.active {
    background: rgba(153, 70, 60, 0.2);
    border-color: var(--accent-color);
    color: #fff;
}

/* Lista de Tarefas */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
}

.task-item {
    background: rgba(247, 242, 231, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.task-item:hover {
    border-color: rgba(153, 70, 60, 0.4);
    background: rgba(247, 242, 231, 0.9);
    transform: translateX(3px);
}

.task-item.completed {
    opacity: 0.6;
    background: rgba(247, 242, 231, 0.5);
}

.task-checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gold);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    background: rgba(58, 53, 48, 0.15);
}

.task-item.completed .task-checkbox-custom {
    background: var(--success);
    border-color: var(--success);
}

.task-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    display: none;
}

.task-item.completed .task-checkbox-custom::after {
    display: block;
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-title {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.badge-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-category {
    background: rgba(153, 70, 60, 0.15);
    color: #b06256;
    border: 1px solid rgba(153, 70, 60, 0.3);
}

.badge-priority-alta {
    background: rgba(163, 59, 50, 0.15);
    color: #a33b32;
    border: 1px solid rgba(163, 59, 50, 0.3);
}

.badge-priority-media {
    background: rgba(201, 154, 46, 0.15);
    color: var(--gold-dark);
    border: 1px solid rgba(201, 154, 46, 0.3);
}

.badge-priority-baixa {
    background: rgba(92, 122, 78, 0.15);
    color: #5c7a4e;
    border: 1px solid rgba(92, 122, 78, 0.3);
}

.badge-arcano-origin {
    background: rgba(201, 154, 46, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(201, 154, 46, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.task-actions {
    display: flex;
    gap: 6px;
}

.task-delete-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
}

.task-delete-btn:hover {
    color: var(--danger);
    background: rgba(163, 59, 50, 0.15);
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-icon {
    font-size: 2.8rem;
    margin-bottom: 4px;
    opacity: 0.8;
}

.empty-state h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--text-color);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
}

/* ========================================================
   SEÇÃO GRIMÓRIO / BIBLIOTECA DOS ARCANOS
   ======================================================== */
.grimorio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-box input {
    padding-left: 40px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1.1rem;
}

.grimorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.grimorio-card-item {
    background: rgba(247, 242, 231, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.grimorio-card-item:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(58, 53, 48, 0.25), 0 0 15px var(--gold-glow);
    background: rgba(247, 242, 231, 0.95);
}

.grimorio-card-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.grimorio-card-svg {
    width: 65px;
    height: 65px;
    margin: 10px 0;
}

.grimorio-card-svg svg {
    width: 100%;
    height: 100%;
}

.grimorio-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.grimorio-card-element {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ========================================================
   SEÇÃO HISTÓRICO DE LEITURAS
   ======================================================== */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: rgba(247, 242, 231, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.history-item:hover {
    border-color: rgba(153, 70, 60, 0.4);
}

.history-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.history-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.history-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.history-cards-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.history-mini-card {
    background: rgba(58, 53, 48, 0.175);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-mini-card.inverted {
    border-color: rgba(163, 59, 50, 0.4);
    color: #a33b32;
}

/* ========================================================
   MODAIS (DETALHES DO ARCANO & NOTIFICAÇÕES)
   ======================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(247, 242, 231, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
    animation: fadeIn 0.25s ease forwards;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #f7f2e7;
    border: 2px solid var(--gold);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(58, 53, 48, 0.35), 0 0 30px var(--gold-glow);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.modal-card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-card-svg {
    width: 85px;
    height: 85px;
}

.modal-card-svg svg {
    width: 100%;
    height: 100%;
}

.modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    color: var(--text-color);
}

.modal-subtitle {
    color: var(--gold-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-section {
    margin-bottom: 18px;
    background: rgba(58, 53, 48, 0.125);
    padding: 14px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.modal-section h4 {
    font-size: 0.88rem;
    color: var(--accent-color);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-section p {
    font-size: 0.92rem;
    color: #6b6457;
    line-height: 1.5;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Toast de Notificação */
.toast-notification {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #f7f2e7;
    border: 1px solid var(--gold);
    color: var(--text-color);
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(58, 53, 48, 0.3), 0 0 15px var(--gold-glow);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ========================================================
   NOVOS COMPONENTES: CABEÇALHO, PERFIL, STREAK E XP
   ======================================================== */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(201, 154, 46, 0.15);
    border: 1px solid rgba(201, 154, 46, 0.4);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--gold-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.streak-badge:hover {
    background: rgba(201, 154, 46, 0.25);
    border-color: #c99a2e;
    box-shadow: 0 0 12px rgba(201, 154, 46, 0.35);
    transform: translateY(-1px);
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(153, 70, 60, 0.18);
    border: 1px solid rgba(153, 70, 60, 0.4);
    border-radius: 20px;
    font-size: 0.82rem;
    color: #b06256;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.level-badge:hover {
    border-color: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-1px);
}

.text-icon-btn {
    width: auto !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--text-muted);
}

.text-icon-btn.active {
    color: var(--accent-color);
    border-color: var(--gold);
    background: rgba(201, 154, 46, 0.18);
    box-shadow: 0 0 14px var(--gold-glow);
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 6px;
    background: var(--surface-glass);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 14px var(--gold-glow);
    transform: translateY(-1px);
}

.avatar-icon {
    font-size: 1.15rem;
    background: rgba(201, 154, 46, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-dot-glow {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 8px var(--gold);
    display: inline-block;
    animation: pulseGlowDot 1.6s infinite ease-in-out;
}

@keyframes pulseGlowDot {
    0%, 100% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--gold-light); }
}

/* ========================================================
   ORÁCULO & MESA CÓSMICA INTERATIVA (ESTILO OTAROT.NET)
   ======================================================== */
.chips-categories-row {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chips-category-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oracle-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-large-glow {
    padding: 14px 28px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 260px;
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-small-gold {
    background: rgba(201, 154, 46, 0.15);
    border: 1px solid var(--gold);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-small-gold:hover {
    background: var(--gold);
    color: #f7f2e7;
    box-shadow: 0 0 12px var(--gold-glow);
}

.btn-small-secondary {
    background: var(--surface-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-small-secondary:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.btn-small-ghost {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-small-ghost:hover {
    color: var(--danger);
}

/* Mesa Interativa */
.interactive-deck-container {
    margin-top: 25px;
    background: radial-gradient(circle at 50% 30%, #f7f2e7 0%, #f7f2e7 65%, #f7f2e7 100%);
    border: 2px solid rgba(201, 154, 46, 0.35);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: inset 0 0 50px rgba(58, 53, 48, 0.35), 0 12px 35px rgba(58, 53, 48, 0.3);
    position: relative;
    overflow: hidden;
}

.deck-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(201, 154, 46, 0.2);
    padding-bottom: 15px;
}

.deck-prompt-info {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-sparkle {
    animation: pulseGlowDot 1.4s infinite;
    color: var(--gold-dark);
}

.deck-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Bandeja dos slots escolhidos */
.picked-slots-tray {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px 18px;
    margin-bottom: 15px;
    scrollbar-width: thin;
}

.picked-slot-chip {
    flex: 0 0 auto;
    min-width: 140px;
    background: rgba(143, 127, 94, 0.04);
    border: 1px dashed rgba(201, 154, 46, 0.3);
    border-radius: var(--border-radius-md);
    padding: 10px;
    text-align: center;
    transition: var(--transition);
}

.picked-slot-chip.current-target {
    border-color: var(--gold-light);
    border-style: solid;
    background: rgba(201, 154, 46, 0.12);
    box-shadow: 0 0 14px var(--gold-glow);
    animation: targetSlotPulse 2s infinite;
}

@keyframes targetSlotPulse {
    0%, 100% { border-color: var(--gold); }
    50% { border-color: #fff; box-shadow: 0 0 18px var(--gold-light); }
}

.picked-slot-chip.filled {
    border-color: var(--success);
    border-style: solid;
    background: rgba(92, 122, 78, 0.12);
}

.picked-slot-chip .slot-pos-label {
    font-size: 0.72rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.picked-slot-chip .slot-card-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.picked-slot-chip.filled .slot-card-status {
    color: var(--text-color);
    font-weight: 600;
}

/* A mesa com as 22 cartas viradas para baixo */
.interactive-deck-board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px 10px;
    perspective: 1000px;
    min-height: 240px;
}

.deck-card-item {
    width: 68px;
    height: 108px;
    background: linear-gradient(135deg, #f7f2e7 0%, #f7f2e7 100%);
    border: 1.5px solid rgba(201, 154, 46, 0.4);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 6px 14px rgba(58, 53, 48, 0.25);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-card-item:hover:not(.picked) {
    transform: translateY(-16px) scale(1.12);
    border-color: var(--gold-light);
    box-shadow: 0 16px 28px rgba(58, 53, 48, 0.35), 0 0 20px var(--gold-glow);
    z-index: 10;
}

.deck-card-pattern {
    width: 82%;
    height: 86%;
    border: 1px solid rgba(201, 154, 46, 0.25);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    background: radial-gradient(circle, rgba(153, 70, 60, 0.15) 0%, transparent 80%);
}

.deck-card-item.picked {
    opacity: 0.2;
    transform: scale(0.9);
    cursor: default;
    border-color: rgba(143, 127, 94, 0.1);
    pointer-events: none;
}

.deck-card-item.shuffling {
    animation: shuffleFly 0.6s ease-in-out;
}

@keyframes shuffleFly {
    0% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(calc(var(--rand-x, 10) * 1px), calc(var(--rand-y, 10) * 1px)) rotate(calc(var(--rand-r, 10) * 1deg)); }
    70% { transform: translate(calc(var(--rand-x, -10) * -1px), calc(var(--rand-y, -10) * -1px)) rotate(calc(var(--rand-r, -10) * -1deg)); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ========================================================
   BANNER SIM OU NÃO
   ======================================================== */
.sim-nao-banner {
    width: 100%;
    margin-bottom: 25px;
    border-radius: var(--border-radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(247, 242, 231, 0.9);
    border: 2px solid var(--gold);
    box-shadow: 0 8px 28px rgba(58, 53, 48, 0.25);
}

.sim-nao-badge {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 30px;
    letter-spacing: 2px;
}

.sim-nao-badge.sim {
    background: rgba(92, 122, 78, 0.2);
    color: #5c7a4e;
    border: 2px solid #5c7a4e;
    box-shadow: 0 0 20px rgba(92, 122, 78, 0.4);
}

.sim-nao-badge.nao {
    background: rgba(163, 59, 50, 0.2);
    color: #a33b32;
    border: 2px solid #a33b32;
    box-shadow: 0 0 20px rgba(163, 59, 50, 0.4);
}

.sim-nao-badge.talvez {
    background: rgba(153, 70, 60, 0.25);
    color: #b06256;
    border: 2px solid #99463c;
    box-shadow: 0 0 20px rgba(153, 70, 60, 0.4);
}

.sim-nao-text {
    flex: 1;
    min-width: 240px;
}

.sim-nao-text h4 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.sim-nao-text p {
    font-size: 0.92rem;
    color: #8f7f5e;
}

/* Diário da Leitura na aba Oráculo */
.reading-journal-box {
    margin-top: 25px;
    background: rgba(247, 242, 231, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
}

.journal-box-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.journal-box-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.reading-journal-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(58, 53, 48, 0.175);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    padding: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: var(--transition);
}

.reading-journal-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

/* ========================================================
   ABA 2: RITUAL MATINAL & ARCANO DO DIA
   ======================================================== */
.daily-panel {
    text-align: center;
}

.daily-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(201, 154, 46, 0.12);
    border: 1px solid rgba(201, 154, 46, 0.35);
    border-radius: 20px;
    color: var(--accent-color);
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
}

.daily-date-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--text-color);
    margin-bottom: 6px;
}

.daily-date-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Estado bloqueado / selo sagrado */
.daily-locked-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.daily-sacred-card-seal {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.sacred-seal-rings {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--gold);
    animation: rotateSeal 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px var(--gold-glow);
}

@keyframes rotateSeal {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.seal-inner-star {
    font-size: 3rem;
    color: var(--accent-color);
    animation: pulseStar 2s ease-in-out infinite;
}

@keyframes pulseStar {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 15px var(--gold)); }
}

.daily-locked-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.daily-locked-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Estado Revelado */
.daily-revealed-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.daily-showcase-row {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.daily-card-container {
    flex: 0 0 260px;
    margin: 0 auto;
}

.daily-details-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.daily-guidance-card {
    background: rgba(58, 53, 48, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 18px 20px;
}

.daily-guidance-card h4 {
    font-size: 0.88rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.daily-guidance-card p {
    font-size: 0.95rem;
    color: #b06256;
    line-height: 1.5;
}

.daily-guidance-card.quest-card {
    border-color: rgba(153, 70, 60, 0.4);
    background: rgba(153, 70, 60, 0.08);
}

.daily-guidance-card.quest-card button {
    margin-top: 12px;
}

.daily-guidance-card.mantra-card {
    border-color: rgba(201, 154, 46, 0.4);
    background: rgba(201, 154, 46, 0.08);
}

.mantra-text {
    font-style: italic;
    color: var(--accent-color) !important;
    font-weight: 500;
}

.daily-guidance-card.mantra-card button {
    margin-top: 12px;
}

/* Check-in de humor diário */
.daily-mood-checkin {
    background: rgba(247, 242, 231, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.daily-mood-checkin h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.mood-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mood-btn {
    background: var(--surface-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.mood-btn:hover {
    border-color: var(--gold);
    color: var(--text-color);
}

.mood-btn.active {
    background: rgba(201, 154, 46, 0.2);
    border-color: var(--gold);
    color: var(--accent-color);
    box-shadow: 0 0 14px var(--gold-glow);
}

.mood-feedback-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--success);
}

.daily-countdown-footer {
    text-align: center;
    padding: 14px;
    background: rgba(58, 53, 48, 0.125);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.daily-countdown-footer strong {
    color: var(--accent-color);
    font-family: monospace;
    font-size: 1.05rem;
}

/* ========================================================
   ABA 4: CALCULADORA DE ARCANO DE NASCIMENTO & GRIMÓRIO
   ======================================================== */
.soul-card-calculator-box {
    background: linear-gradient(135deg, rgba(153, 70, 60, 0.15) 0%, rgba(201, 154, 46, 0.15) 100%);
    border: 1px solid rgba(201, 154, 46, 0.4);
    border-radius: var(--border-radius-md);
    padding: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.calc-icon {
    font-size: 2.2rem;
}

.calc-text {
    flex: 1;
    min-width: 250px;
}

.calc-text h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.calc-text p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.calc-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.calc-date-input {
    background: rgba(58, 53, 48, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    padding: 10px 14px;
    font-size: 0.9rem;
}

.calc-date-input:focus {
    outline: none;
    border-color: var(--gold);
}

.element-filters-row {
    display: flex;
    gap: 8px;
    margin: 15px 0 20px;
    flex-wrap: wrap;
}

.elem-filter-btn {
    background: var(--surface-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.elem-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.elem-filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ========================================================
   ABA 5: HISTÓRICO & FILTROS DE DIÁRIO
   ======================================================== */
.history-filters-bar {
    display: flex;
    gap: 8px;
    margin: 15px 0 20px;
    flex-wrap: wrap;
}

.history-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.history-fav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: var(--transition);
}

.history-fav-btn.active {
    color: var(--accent-color);
    filter: drop-shadow(0 0 6px var(--gold));
}

.history-notes-preview {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(58, 53, 48, 0.125);
    border-left: 2px solid var(--gold);
    border-radius: 4px;
    font-size: 0.85rem;
    color: #8f7f5e;
    font-style: italic;
}

/* ========================================================
   MODAL DE PERFIL & SISTEMA DE CONTAS
   ======================================================== */
.profile-modal-card {
    max-width: 650px !important;
}

.profile-modal-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.prof-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.prof-tab-btn:hover {
    color: var(--text-color);
}

.prof-tab-btn.active {
    color: var(--accent-color);
    background: rgba(201, 154, 46, 0.12);
}

.prof-section-content {
    display: none;
}

.prof-section-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Hero do Perfil */
.profile-card-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(58, 53, 48, 0.125);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 18px;
    margin-bottom: 20px;
}

.profile-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar-large {
    font-size: 3.2rem;
    background: rgba(153, 70, 60, 0.2);
    border: 2px solid var(--gold);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--gold-glow);
}

.avatar-picker-mini {
    display: flex;
    gap: 4px;
}

.avatar-picker-mini span {
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.avatar-picker-mini span:hover {
    opacity: 1;
    transform: scale(1.2);
}

.profile-hero-info {
    flex: 1;
}

.profile-hero-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.profile-email-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.level-progress-box {
    margin-top: 5px;
}

.level-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.level-badge-tag {
    color: var(--accent-hover);
    font-weight: 700;
}

.level-xp-text {
    color: var(--gold-dark);
    font-weight: 600;
}

.stat-progress-bar.xp-bar {
    background: linear-gradient(90deg, #99463c 0%, #d9ae48 100%);
}

/* Destaque do Arcano da Alma */
.profile-soul-card-highlight {
    background: linear-gradient(135deg, rgba(201, 154, 46, 0.12) 0%, rgba(153, 70, 60, 0.12) 100%);
    border: 1px solid var(--gold);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.soul-card-badge {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.soul-card-content-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.soul-card-svg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.soul-card-svg svg {
    width: 100%;
    height: 100%;
}

.soul-card-info h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.soul-card-info p {
    font-size: 0.85rem;
    color: #8f7f5e;
    line-height: 1.4;
}

/* Grid de estatísticas */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

/* Galeria de Selos / Badges */
.profile-achievements-box {
    margin-bottom: 20px;
}

.profile-achievements-box h4 {
    font-size: 0.88rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.achievement-badge-card {
    background: rgba(58, 53, 48, 0.125);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    text-align: center;
    transition: var(--transition);
}

.achievement-badge-card.unlocked {
    border-color: rgba(201, 154, 46, 0.5);
    background: rgba(201, 154, 46, 0.08);
}

.achievement-badge-card.locked {
    opacity: 0.45;
    filter: grayscale(80%);
}

.achievement-badge-card .badge-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.achievement-badge-card .badge-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.achievement-badge-card .badge-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.profile-footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

/* Formulários de Auth */
.auth-toggle-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(58, 53, 48, 0.125);
    padding: 4px;
    border-radius: 25px;
}

.auth-toggle-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-toggle-btn.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.avatar-selection-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.avatar-radio {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(143, 127, 94, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.avatar-radio input {
    margin: 0;
}

.avatar-radio:hover {
    border-color: var(--gold);
}

/* ========================================================
   MODAL DE RESPIRAÇÃO GUIADA
   ======================================================== */
.breath-modal-card {
    text-align: center;
    max-width: 440px !important;
    padding: 35px 25px !important;
}

.breath-visual-container {
    width: 140px;
    height: 140px;
    margin: 10px auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breath-orb-outer {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(153, 70, 60, 0.5) 0%, rgba(201, 154, 46, 0.2) 70%, transparent 100%);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px var(--gold-glow);
    animation: breathCycle 8s infinite ease-in-out;
}

.breath-orb-core {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #d9ae48;
    box-shadow: 0 0 20px #d9ae48;
    animation: corePulse 8s infinite ease-in-out;
}

@keyframes breathCycle {
    0%, 100% { transform: scale(0.7); opacity: 0.6; }
    40%, 60% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 50px var(--gold); }
}

@keyframes corePulse {
    0%, 100% { transform: scale(0.6); }
    40%, 60% { transform: scale(1.4); }
}

.breath-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.breath-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.breath-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ========================================================
   RESPONSIVIDADE GERAL
   ======================================================== */
@media (max-width: 768px) {
    body {
        padding: 10px 10px 60px;
    }
    
    header {
        padding: 15px 5px 10px;
    }

    .top-bar {
        flex-direction: column;
        gap: 12px;
    }

    .top-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .glass-panel {
        padding: 20px 14px;
    }

    .card-wrapper {
        width: 150px;
        min-height: 330px;
    }

    .tarot-card {
        min-height: 300px;
    }

    .task-input-row {
        flex-direction: column;
    }

    .reading-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-content {
        padding: 20px;
    }

    .daily-showcase-row {
        flex-direction: column;
    }

    .daily-card-container {
        width: 100%;
        max-width: 240px;
    }

    .profile-card-hero {
        flex-direction: column;
        text-align: center;
    }

    .interactive-deck-board {
        gap: 6px;
    }

    .deck-card-item {
        width: 54px;
        height: 88px;
    }
}
