/* ════════════════════════════════════
   NEW FEATURES STYLES
════════════════════════════════════ */

/* ═══════ LOGIN / PROFILE MODAL ═══════ */
.login-modal-overlay {
   position: fixed;
   inset: 0;
   z-index: 10000;
   background: rgba(15, 22, 41, .85);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
   transition: all .35s var(--ease);
   padding: 20px
}

.login-modal-overlay.visible {
   opacity: 1;
   visibility: visible;
   pointer-events: auto
}

.login-modal,
.profile-modal {
   position: relative;
   width: min(420px, 100%);
   max-height: 90vh;
   overflow-y: auto;
   background: var(--surface);
   border-radius: var(--r-xl);
   box-shadow: 0 24px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(201, 168, 76, .15);
   animation: fadeUp .4s var(--ease)
}

.login-close-btn {
   position: absolute;
   top: 16px;
   right: 16px;
   z-index: 5;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-3);
   font-size: 1.1rem;
   background: var(--bg-3);
   border: 1px solid var(--border);
   cursor: pointer;
   transition: all .2s
}

.login-close-btn:hover {
   background: var(--gold-pale);
   color: var(--gold)
}

.login-modal-bg {
   position: absolute;
   inset: 0;
   border-radius: var(--r-xl);
   overflow: hidden;
   pointer-events: none
}

.login-stars {
   position: absolute;
   inset: 0;
   background: radial-gradient(2px 2px at 20% 30%, rgba(201, 168, 76, .3), transparent), radial-gradient(2px 2px at 60% 70%, rgba(201, 168, 76, .2), transparent), radial-gradient(1px 1px at 80% 20%, rgba(201, 168, 76, .25), transparent)
}

.login-orb {
   position: absolute;
   border-radius: 50%;
   pointer-events: none
}

.login-orb-1 {
   width: 200px;
   height: 200px;
   top: -60px;
   right: -60px;
   background: radial-gradient(circle, rgba(201, 168, 76, .12), transparent 70%)
}

.login-orb-2 {
   width: 150px;
   height: 150px;
   bottom: -40px;
   left: -40px;
   background: radial-gradient(circle, rgba(36, 52, 96, .2), transparent 70%)
}

/* Login Header */
.login-header {
   position: relative;
   text-align: center;
   padding: 40px 24px 20px
}

.login-cross-wrap {
   width: 72px;
   height: 72px;
   margin: 0 auto 16px;
   position: relative
}

.login-cross-wrap .cross-v {
   position: absolute;
   width: 6px;
   height: 100%;
   background: linear-gradient(180deg, var(--gold-light), var(--gold));
   border-radius: 3px;
   left: 50%;
   transform: translateX(-50%)
}

.login-cross-wrap .cross-h {
   position: absolute;
   width: 100%;
   height: 6px;
   background: linear-gradient(90deg, var(--gold-light), var(--gold));
   border-radius: 3px;
   top: 35%;
   left: 0
}

.login-cross-glow {
   position: absolute;
   inset: -16px;
   background: radial-gradient(ellipse, rgba(201, 168, 76, .25), transparent 70%);
   animation: crossGlow 2s ease-in-out infinite alternate
}

.login-cross-ring {
   position: absolute;
   inset: -8px;
   border: 2px solid rgba(201, 168, 76, .15);
   border-radius: 50%;
   animation: crossGlow 3s ease-in-out infinite alternate-reverse
}

.login-title {
   font-family: var(--font-display);
   font-size: 1.8rem;
   font-weight: 400;
   color: var(--text-1);
   letter-spacing: .02em
}

.login-subtitle {
   font-size: .85rem;
   color: var(--text-3);
   line-height: 1.5;
   margin-top: 8px
}

/* Login Body */
.login-body {
   position: relative;
   padding: 0 24px 28px
}

.login-verse {
   background: var(--bg-3);
   border-radius: var(--r-lg);
   padding: 16px 18px;
   margin-bottom: 20px;
   border-left: 3px solid var(--gold)
}

.login-verse-text {
   font-family: var(--font-reading);
   font-style: italic;
   font-size: .88rem;
   line-height: 1.6;
   color: var(--text-2)
}

.login-verse-ref {
   display: block;
   font-size: .72rem;
   font-weight: 800;
   letter-spacing: .12em;
   color: var(--gold);
   text-transform: uppercase;
   margin-top: 8px
}

.login-benefits {
   display: flex;
   flex-direction: column;
   gap: 10px;
   margin-bottom: 24px
}

.login-benefit {
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: .85rem;
   color: var(--text-2)
}

.benefit-icon {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   background: var(--gold-pale);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: .9rem;
   flex-shrink: 0;
   color: var(--gold);
   border: 1px solid rgba(201, 168, 76, .2)
}

.login-google-btn {
   width: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   padding: 14px 20px;
   border-radius: var(--r-full);
   background: white;
   border: 1.5px solid var(--border);
   font-size: .9rem;
   font-weight: 700;
   color: var(--text-1);
   cursor: pointer;
   transition: all .2s;
   box-shadow: var(--shadow-sm)
}

.login-google-btn:hover {
   border-color: var(--gold);
   box-shadow: var(--shadow-md);
   transform: translateY(-1px)
}

.login-google-icon {
   width: 22px;
   height: 22px;
   flex-shrink: 0
}

.login-divider {
   display: flex;
   align-items: center;
   gap: 12px;
   margin: 16px 0;
   color: var(--text-3);
   font-size: .78rem
}

.login-divider::before,
.login-divider::after {
   content: '';
   flex: 1;
   height: 1px;
   background: var(--border)
}

.login-skip {
   width: 100%;
   padding: 12px;
   border-radius: var(--r-full);
   font-size: .85rem;
   font-weight: 600;
   color: var(--text-3);
   cursor: pointer;
   transition: all .2s;
   border: 1px solid var(--border)
}

.login-skip:hover {
   color: var(--gold);
   border-color: var(--gold)
}

/* Profile Modal */
.profile-header {
   position: relative;
   text-align: center;
   padding: 40px 24px 20px
}

.profile-avatar-wrap {
   width: 80px;
   height: 80px;
   margin: 0 auto 14px;
   position: relative
}

.profile-avatar-img {
   width: 100%;
   height: 100%;
   border-radius: 50%;
   object-fit: cover;
   border: 3px solid var(--gold)
}

.profile-avatar-ring {
   position: absolute;
   inset: -6px;
   border: 2px solid rgba(201, 168, 76, .2);
   border-radius: 50%
}

.profile-name {
   font-family: var(--font-display);
   font-size: 1.4rem;
   font-weight: 600;
   color: var(--text-1)
}

.profile-email {
   font-size: .8rem;
   color: var(--text-3);
   margin-top: 4px
}

.profile-badge {
   display: inline-block;
   margin-top: 8px;
   padding: 4px 14px;
   border-radius: var(--r-full);
   font-size: .68rem;
   font-weight: 800;
   letter-spacing: .12em;
   transition: all 0.3s ease;
}

.profile-badge.standard {
   background: rgba(255, 255, 255, 0.08);
   border: 1px solid rgba(255, 255, 255, 0.15);
   color: var(--text-3);
}

.profile-badge.pro {
   background: linear-gradient(135deg, var(--gold), var(--gold-light));
   color: var(--navy);
   box-shadow: 0 0 12px rgba(201, 168, 76, 0.35);
   border: 1px solid var(--gold-light);
}

.profile-actions {
   padding: 8px 24px 28px;
   display: flex;
   flex-direction: column;
   gap: 8px
}

.profile-action-btn {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 14px 18px;
   border-radius: var(--r-lg);
   background: var(--bg-3);
   border: 1px solid var(--border);
   font-size: .88rem;
   font-weight: 600;
   color: var(--text-2);
   cursor: pointer;
   transition: all .2s
}

.profile-action-btn svg {
   width: 20px;
   height: 20px;
   flex-shrink: 0
}

.profile-action-btn:hover {
   border-color: var(--gold);
   color: var(--gold)
}

.profile-logout-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 14px;
   border-radius: var(--r-lg);
   font-size: .85rem;
   font-weight: 700;
   color: #ef4444;
   border: 1px solid rgba(239, 68, 68, .2);
   cursor: pointer;
   transition: all .2s;
   margin-top: 4px
}

.profile-logout-btn:hover {
   background: rgba(239, 68, 68, .08);
   border-color: #ef4444
}

[data-theme="dark"] .login-google-btn {
   background: var(--bg-3);
   color: var(--text-1)
}

/* MODALS */
.modal-overlay {
   position: fixed;
   inset: 0;
   z-index: 500;
   background: rgba(0, 0, 0, .6);
   backdrop-filter: blur(6px);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   visibility: hidden;
   transition: all .3s
}

.modal-overlay.visible {
   opacity: 1;
   visibility: visible
}

.modal-card {
   background: var(--surface);
   border-radius: var(--r-xl);
   width: min(420px, 92vw);
   max-height: 85vh;
   overflow-y: auto;
   box-shadow: var(--shadow-lg);
   animation: fadeUp .3s var(--ease)
}

.modal-card-lg {
   width: min(520px, 92vw)
}

.modal-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 18px 20px;
   border-bottom: 1px solid var(--border)
}

.modal-header h3 {
   font-size: 1rem;
   font-weight: 700;
   color: var(--text-1)
}

.modal-header button {
   color: var(--text-3);
   font-size: 1.1rem;
   padding: 4px 8px;
   border-radius: 6px
}

.modal-body {
   padding: 20px
}

.modal-footer {
   display: flex;
   gap: 10px;
   padding: 16px 20px;
   border-top: 1px solid var(--border)
}

.modal-input {
   width: 100%;
   padding: 12px 14px;
   border-radius: var(--r-md);
   background: var(--bg-3);
   border: 1.5px solid var(--border);
   font-size: .9rem;
   color: var(--text-1);
   outline: none;
   margin-bottom: 12px
}

.modal-input:focus {
   border-color: var(--gold)
}

.modal-textarea {
   width: 100%;
   height: 120px;
   padding: 12px 14px;
   border-radius: var(--r-md);
   background: var(--bg-3);
   border: 1.5px solid var(--border);
   font-family: var(--font-reading);
   font-size: .9rem;
   color: var(--text-1);
   resize: none;
   outline: none;
   margin-bottom: 12px
}

.modal-textarea:focus {
   border-color: var(--gold)
}

.modal-select {
   width: 100%;
   padding: 12px 14px;
   border-radius: var(--r-md);
   background: var(--bg-3);
   border: 1.5px solid var(--border);
   font-size: .9rem;
   color: var(--text-1);
   outline: none;
   cursor: pointer
}

.modal-btn {
   flex: 1;
   padding: 12px 16px;
   border-radius: var(--r-lg);
   font-weight: 700;
   font-size: .85rem;
   text-align: center;
   transition: all .2s
}

.modal-btn.primary {
   background: linear-gradient(135deg, var(--gold), var(--gold-light));
   color: var(--navy);
   box-shadow: 0 4px 14px rgba(201, 168, 76, .3)
}

.modal-btn.secondary {
   background: var(--bg-3);
   color: var(--text-2);
   border: 1px solid var(--border)
}

/* NOTE FORM */
.note-form-ref {
   font-size: .72rem;
   font-weight: 800;
   letter-spacing: .14em;
   color: var(--gold);
   text-transform: uppercase;
   margin-bottom: 12px
}

.note-form-label {
   font-size: .78rem;
   font-weight: 700;
   color: var(--text-2);
   margin: 12px 0 8px
}

.note-tag-list {
   display: flex;
   flex-wrap: wrap;
   gap: 6px
}

.note-tag-btn {
   padding: 6px 12px;
   border-radius: var(--r-full);
   font-size: .75rem;
   font-weight: 600;
   color: var(--text-3);
   border: 1.5px solid var(--border);
   transition: all .2s;
   cursor: pointer
}

.note-tag-btn.active {
   color: var(--gold);
   border-color: var(--gold);
   background: var(--gold-pale)
}

.note-color-list {
   display: flex;
   gap: 8px
}

.note-color-btn {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   border: 3px solid transparent;
   cursor: pointer;
   transition: all .2s;
   font-size: .7rem;
   color: white;
   display: flex;
   align-items: center;
   justify-content: center
}

.note-color-btn.active {
   border-color: var(--text-1);
   transform: scale(1.15)
}

/* NOTES VIEW */
.notes-filter-bar {
   margin-bottom: 16px
}

.notes-search-wrap {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 14px;
   border-radius: var(--r-full);
   background: var(--surface);
   border: 1.5px solid var(--border);
   margin-bottom: 12px
}

.notes-search-wrap svg {
   width: 16px;
   height: 16px;
   color: var(--text-3)
}

.notes-search-wrap input {
   flex: 1;
   background: none;
   border: none;
   outline: none;
   font-size: .88rem;
   color: var(--text-1)
}

.notes-tags-filter {
   display: flex;
   flex-wrap: wrap;
   gap: 6px
}

.note-filter-tag {
   padding: 6px 12px;
   border-radius: var(--r-full);
   font-size: .72rem;
   font-weight: 700;
   color: var(--text-3);
   border: 1px solid var(--border);
   cursor: pointer;
   transition: all .2s
}

.note-filter-tag.active {
   color: var(--gold);
   border-color: var(--gold);
   background: var(--gold-pale)
}

.note-card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-lg);
   padding: 16px;
   margin-bottom: 10px;
   box-shadow: var(--shadow-card);
   border-left: 4px solid var(--note-color, var(--gold));
   animation: fadeUp .3s var(--ease) both
}

.note-card-header {
   display: flex;
   justify-content: space-between;
   margin-bottom: 8px
}

.note-card-ref {
   font-size: .72rem;
   font-weight: 800;
   letter-spacing: .12em;
   color: var(--gold);
   text-transform: uppercase
}

.note-card-date {
   font-size: .7rem;
   color: var(--text-3)
}

.note-card-verse {
   font-family: var(--font-reading);
   font-style: italic;
   font-size: .82rem;
   color: var(--text-3);
   margin-bottom: 8px;
   line-height: 1.5
}

.note-card-text {
   font-size: .9rem;
   line-height: 1.6;
   color: var(--text-2)
}

.note-card-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 4px;
   margin-top: 10px
}

.note-card-tag {
   font-size: .68rem;
   padding: 3px 8px;
   border-radius: var(--r-full);
   background: var(--bg-3);
   color: var(--text-3)
}

.note-card-actions {
   display: flex;
   gap: 8px;
   margin-top: 12px
}

.note-action-btn {
   padding: 6px 12px;
   border-radius: var(--r-full);
   font-size: .72rem;
   font-weight: 700;
   color: var(--text-3);
   border: 1px solid var(--border);
   cursor: pointer;
   transition: all .2s
}

.note-action-btn:hover {
   border-color: var(--gold);
   color: var(--gold)
}

.note-action-btn.danger:hover {
   border-color: #ef4444;
   color: #ef4444
}

/* PLANS */
.plan-section-title {
   font-size: 1rem;
   font-weight: 700;
   color: var(--text-1);
   margin: 20px 0 12px
}

.plans-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
   gap: 12px
}

.plan-card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-lg);
   padding: 18px;
   text-align: center;
   box-shadow: var(--shadow-card)
}

.plan-card-icon {
   font-size: 2rem;
   margin-bottom: 8px
}

.plan-card-title {
   font-size: .9rem;
   font-weight: 700;
   color: var(--text-1);
   margin-bottom: 6px
}

.plan-card-desc {
   font-size: .78rem;
   color: var(--text-3);
   line-height: 1.4;
   margin-bottom: 8px
}

.plan-card-meta {
   font-size: .7rem;
   color: var(--text-3);
   margin-bottom: 12px
}

.plan-card-btn {
   width: 100%;
   padding: 10px;
   border-radius: var(--r-full);
   font-weight: 700;
   font-size: .82rem;
   background: linear-gradient(135deg, var(--gold), var(--gold-light));
   color: var(--navy);
   cursor: pointer;
   transition: all .2s
}

.plan-card-btn.active {
   background: var(--bg-3);
   color: var(--text-3);
   cursor: default
}

.plan-active-card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-xl);
   padding: 20px;
   box-shadow: var(--shadow-md);
   margin-bottom: 20px
}

.plan-active-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 16px
}

.plan-active-info {
   display: flex;
   align-items: center;
   gap: 12px
}

.plan-active-icon {
   font-size: 1.6rem
}

.plan-active-title {
   font-weight: 700;
   font-size: .95rem;
   color: var(--text-1)
}

.plan-active-sub {
   font-size: .78rem;
   color: var(--text-3)
}

.plan-progress-ring {
   width: 52px;
   height: 52px;
   position: relative
}

.plan-progress-ring svg {
   width: 100%;
   height: 100%;
   transform: rotate(-90deg)
}

.ring-bg {
   fill: none;
   stroke: var(--border);
   stroke-width: 3
}

.ring-fill {
   fill: none;
   stroke: var(--gold);
   stroke-width: 3;
   stroke-linecap: round;
   transition: stroke-dasharray .5s
}

.ring-text {
   position: absolute;
   inset: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: .65rem;
   font-weight: 800;
   color: var(--gold)
}

.plan-today {
   margin-bottom: 14px
}

.plan-today-label {
   font-size: .78rem;
   font-weight: 700;
   color: var(--text-2);
   margin-bottom: 8px
}

.plan-reading-item {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 12px;
   border-radius: var(--r-md);
   background: var(--bg-3);
   margin-bottom: 6px;
   cursor: pointer;
   font-size: .88rem;
   color: var(--text-2);
   transition: all .2s
}

.plan-reading-item:hover {
   background: var(--gold-pale)
}

.plan-reading-item.completed {
   color: var(--gold);
   text-decoration: line-through;
   opacity: .7
}

.plan-reading-check {
   font-weight: 800;
   color: var(--gold);
   min-width: 20px
}

.plan-progress-bar-wrap {
   height: 6px;
   background: var(--bg-3);
   border-radius: 3px;
   overflow: hidden;
   margin-bottom: 14px
}

.plan-progress-bar {
   height: 100%;
   background: linear-gradient(90deg, var(--gold), var(--gold-light));
   border-radius: 3px;
   transition: width .5s
}

.plan-active-actions {
   display: flex;
   gap: 8px
}

.plan-btn-secondary {
   flex: 1;
   padding: 10px;
   border-radius: var(--r-full);
   font-size: .82rem;
   font-weight: 600;
   background: var(--bg-3);
   color: var(--text-2);
   border: 1px solid var(--border);
   cursor: pointer
}

.plan-btn-danger {
   padding: 10px 16px;
   border-radius: var(--r-full);
   font-size: .82rem;
   font-weight: 600;
   color: #ef4444;
   border: 1px solid rgba(239, 68, 68, .3);
   cursor: pointer;
   background: transparent;
   transition: all .2s;
   -webkit-tap-highlight-color: transparent;
   touch-action: manipulation;
   user-select: none;
   position: relative;
   z-index: 1
}

.plan-btn-danger:hover {
   background: rgba(239, 68, 68, .1);
   border-color: #ef4444
}

.plan-btn-danger:active {
   background: rgba(239, 68, 68, .2);
   transform: scale(.96)
}

.plan-all-days {
   margin-top: 14px;
   max-height: 300px;
   overflow-y: auto
}

.plan-day-row {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 8px 12px;
   border-radius: var(--r-sm);
   cursor: pointer;
   font-size: .82rem;
   color: var(--text-2);
   transition: background .2s
}

.plan-day-row:hover {
   background: var(--bg-3)
}

.plan-day-row.done {
   color: var(--gold);
   opacity: .7
}

.plan-day-row.today {
   background: var(--gold-pale);
   font-weight: 700
}

.plan-day-check {
   font-weight: 800;
   min-width: 24px;
   text-align: center;
   color: var(--gold)
}

.plan-day-text {
   font-size: .78rem;
   color: var(--text-3)
}

/* Plan/Streak widgets */
.plan-widget,
.streak-widget,
.plan-widget-empty {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 14px 18px;
   border-radius: var(--r-lg);
   background: var(--surface);
   border: 1px solid var(--border);
   cursor: pointer;
   transition: all .2s;
   box-shadow: var(--shadow-card)
}

.plan-widget:hover,
.streak-widget:hover,
.plan-widget-empty:hover {
   border-color: var(--gold)
}

.plan-widget-icon,
.streak-fire {
   font-size: 1.4rem
}

.plan-widget-info,
.streak-info {
   flex: 1
}

.plan-widget-title,
.streak-count {
   display: block;
   font-weight: 700;
   font-size: .9rem;
   color: var(--text-1)
}

.plan-widget-sub,
.streak-sub {
   display: block;
   font-size: .75rem;
   color: var(--text-3);
   margin-top: 2px
}

.plan-widget-arrow,
.streak-arrow {
   color: var(--gold);
   font-size: 1.2rem
}

.plan-widget-ring {
   width: 36px;
   height: 36px;
   position: relative
}

.plan-widget-ring svg {
   width: 100%;
   height: 100%;
   transform: rotate(-90deg)
}

/* STATS */
.stats-hero {
   background: linear-gradient(145deg, #1a2744, #243460);
   padding: 32px 24px 24px;
   position: relative;
   overflow: hidden
}

.stats-hero-title {
   font-family: var(--font-display);
   font-size: 1.8rem;
   font-weight: 400;
   color: white
}

.stats-hero-sub {
   font-size: .8rem;
   color: rgba(255, 255, 255, .6);
   margin-top: 4px
}

.stats-cards {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 10px;
   margin-bottom: 20px
}

.stat-card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-lg);
   padding: 16px;
   text-align: center;
   box-shadow: var(--shadow-card)
}

.stat-card.accent {
   border-color: var(--gold);
   background: var(--gold-pale)
}

.stat-value {
   font-size: 1.6rem;
   font-weight: 800;
   color: var(--text-1)
}

.stat-label {
   font-size: .72rem;
   color: var(--text-3);
   margin-top: 4px
}

.stats-section {
   margin-bottom: 24px
}

.stats-section-title {
   font-size: .9rem;
   font-weight: 700;
   color: var(--text-1);
   margin-bottom: 12px
}

.heatmap-container {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-lg);
   padding: 16px;
   box-shadow: var(--shadow-card)
}

.heatmap-grid {
   display: grid;
   grid-template-columns: repeat(13, 1fr);
   gap: 3px
}

.heatmap-cell {
   width: 100%;
   aspect-ratio: 1;
   border-radius: 3px;
   background: var(--bg-3)
}

.heatmap-cell.level-1 {
   background: rgba(201, 168, 76, .25)
}

.heatmap-cell.level-2 {
   background: rgba(201, 168, 76, .45)
}

.heatmap-cell.level-3 {
   background: rgba(201, 168, 76, .65)
}

.heatmap-cell.level-4 {
   background: var(--gold)
}

.heatmap-legend {
   display: flex;
   align-items: center;
   gap: 4px;
   justify-content: flex-end;
   margin-top: 8px;
   font-size: .65rem;
   color: var(--text-3)
}

.heatmap-legend .heatmap-cell {
   width: 14px;
   height: 14px
}

.testament-progress {
   display: flex;
   flex-direction: column;
   gap: 12px
}

.testament-bar-wrap {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-md);
   padding: 14px;
   box-shadow: var(--shadow-card)
}

.testament-bar-label {
   display: flex;
   justify-content: space-between;
   font-size: .8rem;
   font-weight: 600;
   color: var(--text-2);
   margin-bottom: 8px
}

.testament-bar {
   height: 8px;
   background: var(--bg-3);
   border-radius: 4px;
   overflow: hidden
}

.testament-bar-fill {
   height: 100%;
   border-radius: 4px;
   transition: width .8s
}

.testament-bar-fill.at {
   background: linear-gradient(90deg, #c9a84c, #e8d08a)
}

.testament-bar-fill.nt {
   background: linear-gradient(90deg, #4a90d9, #90caf9)
}

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

.badge-card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-lg);
   padding: 16px;
   text-align: center;
   box-shadow: var(--shadow-card)
}

.badge-card.locked {
   opacity: .45
}

.badge-card.earned {
   border-color: var(--gold);
   background: var(--gold-pale)
}

.badge-icon {
   font-size: 1.8rem;
   display: block;
   margin-bottom: 6px
}

.badge-title {
   display: block;
   font-size: .82rem;
   font-weight: 700;
   color: var(--text-1)
}

.badge-desc {
   display: block;
   font-size: .68rem;
   color: var(--text-3);
   margin-top: 4px
}

.book-progress-list {
   display: flex;
   flex-direction: column;
   gap: 8px
}

.book-progress-item {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-md);
   padding: 12px
}

.book-progress-info {
   display: flex;
   justify-content: space-between;
   margin-bottom: 6px
}

.book-progress-name {
   font-size: .82rem;
   font-weight: 600;
   color: var(--text-1)
}

.book-progress-pct {
   font-size: .78rem;
   font-weight: 700;
   color: var(--gold)
}

.book-progress-bar {
   height: 6px;
   background: var(--bg-3);
   border-radius: 3px;
   overflow: hidden
}

.book-progress-fill {
   height: 100%;
   background: var(--gold);
   border-radius: 3px;
   transition: width .5s
}

.stats-summary {
   display: flex;
   justify-content: center;
   gap: 16px;
   padding: 20px;
   flex-wrap: wrap
}

.stats-summary-item {
   font-size: .82rem;
   color: var(--text-3)
}

/* PRAYER */
.prayer-tabs {
   display: flex;
   gap: 6px;
   margin-bottom: 16px
}

.prayer-tab {
   flex: 1;
   padding: 10px;
   border-radius: var(--r-full);
   font-size: .82rem;
   font-weight: 600;
   color: var(--text-3);
   border: 1.5px solid var(--border);
   text-align: center;
   cursor: pointer;
   transition: all .2s
}

.prayer-tab.active {
   color: var(--gold);
   border-color: var(--gold);
   background: var(--gold-pale)
}

.prayer-card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-lg);
   padding: 16px;
   margin-bottom: 10px;
   box-shadow: var(--shadow-card);
   animation: fadeUp .3s var(--ease) both
}

.prayer-card.answered {
   border-left: 4px solid #27ae60
}

.prayer-card-header {
   display: flex;
   justify-content: space-between;
   margin-bottom: 8px
}

.prayer-cat-badge {
   font-size: .72rem;
   font-weight: 700;
   color: var(--text-2)
}

.prayer-date {
   font-size: .7rem;
   color: var(--text-3)
}

.prayer-title {
   font-size: .95rem;
   font-weight: 700;
   color: var(--text-1);
   margin-bottom: 4px
}

.prayer-desc {
   font-size: .85rem;
   color: var(--text-2);
   line-height: 1.5
}

.prayer-answered-date {
   font-size: .75rem;
   color: #27ae60;
   margin-top: 8px;
   font-weight: 600
}

.prayer-actions {
   display: flex;
   gap: 8px;
   margin-top: 12px
}

.prayer-action-btn {
   padding: 8px 14px;
   border-radius: var(--r-full);
   font-size: .78rem;
   font-weight: 700;
   color: var(--text-3);
   border: 1px solid var(--border);
   cursor: pointer;
   transition: all .2s
}

.prayer-action-btn:hover {
   border-color: var(--gold);
   color: var(--gold)
}

.prayer-action-btn.success {
   color: #27ae60;
   border-color: rgba(39, 174, 96, .3)
}

.prayer-action-btn.success:hover {
   background: rgba(39, 174, 96, .1);
   border-color: #27ae60
}

.prayer-action-btn.danger:hover {
   border-color: #ef4444;
   color: #ef4444
}

.prayer-fab {
   position: fixed;
   bottom: calc(var(--bottomnav-h) + 20px);
   right: 20px;
   width: 56px;
   height: 56px;
   border-radius: 50%;
   background: linear-gradient(135deg, var(--gold), var(--gold-light));
   color: var(--navy);
   font-size: 1.8rem;
   font-weight: 700;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 4px 20px rgba(201, 168, 76, .4);
   z-index: 50;
   cursor: pointer;
   transition: all .2s
}

.prayer-fab:hover {
   transform: scale(1.1);
   box-shadow: 0 6px 28px rgba(201, 168, 76, .6)
}

/* REMINDERS */
.reminder-card {
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: var(--r-xl);
   padding: 24px;
   box-shadow: var(--shadow-md)
}

.reminder-header {
   display: flex;
   align-items: center;
   gap: 14px;
   margin-bottom: 20px
}

.reminder-icon-wrap {
   width: 48px;
   height: 48px;
   border-radius: 50%;
   background: var(--gold-pale);
   display: flex;
   align-items: center;
   justify-content: center
}

.reminder-icon {
   font-size: 1.4rem
}

.reminder-title {
   font-weight: 700;
   font-size: .95rem;
   color: var(--text-1)
}

.reminder-sub {
   font-size: .78rem;
   color: var(--text-3)
}

.reminder-toggle-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 14px 0;
   border-bottom: 1px solid var(--border);
   font-size: .9rem;
   font-weight: 600;
   color: var(--text-2)
}

.toggle-switch {
   position: relative;
   width: 48px;
   height: 26px
}

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

.toggle-slider {
   position: absolute;
   inset: 0;
   background: var(--bg-3);
   border-radius: 13px;
   transition: .3s;
   cursor: pointer;
   border: 2px solid var(--border)
}

.toggle-slider::before {
   content: '';
   position: absolute;
   height: 18px;
   width: 18px;
   left: 2px;
   bottom: 2px;
   background: white;
   border-radius: 50%;
   transition: .3s
}

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

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

.reminder-time-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 14px 0;
   border-bottom: 1px solid var(--border);
   font-size: .9rem;
   font-weight: 600;
   color: var(--text-2)
}

.reminder-time-picker {
   display: flex;
   align-items: center;
   gap: 6px
}

.reminder-time-picker select {
   padding: 8px 12px;
   border-radius: var(--r-md);
   background: var(--bg-3);
   border: 1px solid var(--border);
   font-size: .9rem;
   color: var(--text-1);
   font-weight: 700
}

.reminder-perm-btn {
   width: 100%;
   margin-top: 14px;
   padding: 12px;
   border-radius: var(--r-lg);
   background: var(--gold-pale);
   color: var(--navy);
   font-weight: 700;
   font-size: .85rem;
   border: 1px solid var(--gold);
   cursor: pointer
}

.reminder-status {
   text-align: center;
   font-size: .78rem;
   color: var(--text-3);
   margin-top: 16px
}

/* AUDIO PLAYER */
.audio-player {
   position: fixed;
   bottom: var(--bottomnav-h);
   left: 0;
   right: 0;
   z-index: 90;
   background: rgba(26, 39, 68, 0.95);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   color: white;
   display: flex;
   flex-direction: column;
   padding: 12px 16px 16px;
   box-shadow: 0 -8px 24px rgba(0, 0, 0, .4);
   border-top: 1px solid rgba(201, 168, 76, 0.2);
   border-top-left-radius: 16px;
   border-top-right-radius: 16px;
}

.audio-progress-wrap {
   display: flex;
   align-items: center;
   gap: 12px;
   width: 100%;
   margin-bottom: 12px;
}

.audio-time {
   font-size: 0.7rem;
   font-weight: 700;
   color: var(--gold-light);
   min-width: 24px;
   text-align: center;
}

.audio-scrubber {
   flex: 1;
   -webkit-appearance: none;
   background: rgba(255, 255, 255, 0.2);
   height: 4px;
   border-radius: 2px;
   outline: none;
   cursor: pointer;
}

.audio-scrubber::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 12px;
   height: 12px;
   border-radius: 50%;
   background: var(--gold);
   cursor: pointer;
   box-shadow: 0 0 8px rgba(201, 168, 76, 0.8);
   transition: transform 0.2s;
}

.audio-scrubber::-webkit-slider-thumb:hover {
   transform: scale(1.3);
}

.audio-bottom-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   gap: 10px;
}

.audio-player-info {
   flex: 1;
   min-width: 0;
}

.audio-player-title {
   display: block;
   font-size: .82rem;
   font-weight: 700;
   color: var(--gold-light);
}

.audio-player-verse {
   display: block;
   font-size: .7rem;
   color: rgba(255, 255, 255, .5);
}

.audio-player-controls {
   display: flex;
   gap: 4px;
   align-items: center;
}

.audio-ctrl-btn {
   width: 36px;
   height: 36px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   color: white;
   transition: background .2s;
}

.audio-ctrl-btn svg {
   width: 18px;
   height: 18px;
}

.audio-ctrl-btn:hover {
   background: rgba(255, 255, 255, .1);
}

.audio-ctrl-btn.play {
   background: var(--gold);
   color: var(--navy);
   width: 44px;
   height: 44px;
   box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.audio-ctrl-btn.play svg {
   width: 22px;
   height: 22px;
}

.audio-ctrl-btn.play:hover {
   transform: scale(1.05);
   background: var(--gold-light);
}

.audio-speed-wrap select {
   padding: 6px 8px;
   border-radius: var(--r-sm);
   background: rgba(255, 255, 255, .1);
   border: 1px solid rgba(255, 255, 255, .2);
   color: white;
   font-size: .78rem;
   font-weight: 700;
}

.verse-speaking {
   background: var(--gold-pale) !important;
   border-left: 3px solid var(--gold);
   transition: background .3s
}

/* IMAGE GENERATOR */
.img-preview-wrap {
   display: flex;
   justify-content: center;
   margin-bottom: 16px
}

.img-canvas {
   width: 100%;
   max-width: 320px;
   height: auto;
   border-radius: var(--r-md);
   box-shadow: var(--shadow-md)
}

.img-format-toggle {
   display: flex;
   gap: 8px;
   margin-bottom: 12px
}

.img-fmt-btn {
   flex: 1;
   padding: 10px;
   border-radius: var(--r-full);
   font-size: .82rem;
   font-weight: 600;
   color: var(--text-3);
   border: 1.5px solid var(--border);
   text-align: center;
   cursor: pointer;
   transition: all .2s
}

.img-fmt-btn.active {
   color: var(--gold);
   border-color: var(--gold);
   background: var(--gold-pale)
}

.img-template-list {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 8px
}

.img-template-btn {
   padding: 12px 8px;
   border-radius: var(--r-md);
   font-size: .75rem;
   font-weight: 700;
   text-align: center;
   cursor: pointer;
   transition: all .2s;
   border: 2px solid transparent
}

.img-template-btn.active {
   border-color: var(--gold);
   box-shadow: var(--shadow-md)
}

/* Image Mode Toggle */
.img-mode-toggle {
   display: flex;
   gap: 8px;
   margin-bottom: 12px
}

.img-mode-btn {
   flex: 1;
   padding: 10px;
   border-radius: var(--r-full);
   font-size: .82rem;
   font-weight: 600;
   color: var(--text-3);
   border: 1.5px solid var(--border);
   text-align: center;
   cursor: pointer;
   transition: all .2s
}

.img-mode-btn.active {
   color: var(--gold);
   border-color: var(--gold);
   background: var(--gold-pale)
}

/* Photo Grid */
.img-photo-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 10px;
   max-height: 280px;
   overflow-y: auto;
   padding: 6px 2px;
   scrollbar-width: thin;
   scrollbar-color: var(--gold) transparent
}

.img-photo-grid::-webkit-scrollbar {
   width: 4px
}

.img-photo-grid::-webkit-scrollbar-thumb {
   background: var(--gold);
   border-radius: 2px
}

.img-photo-thumb {
   display: block;
   width: 100%;
   height: 0;
   padding-bottom: 100%;
   border-radius: var(--r-lg);
   background-size: cover;
   background-position: center;
   border: 3px solid transparent;
   cursor: pointer;
   transition: all .25s var(--ease);
   position: relative;
   overflow: hidden;
   box-shadow: var(--shadow-sm)
}

.img-photo-thumb:hover {
   border-color: rgba(201, 168, 76, .5);
   transform: scale(1.03);
   box-shadow: var(--shadow-md)
}

.img-photo-thumb.active {
   border-color: var(--gold);
   box-shadow: 0 0 0 2px var(--gold), 0 4px 16px rgba(201, 168, 76, .4)
}

.img-photo-label {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   padding: 6px 4px;
   background: linear-gradient(transparent, rgba(0, 0, 0, .75));
   color: white;
   font-size: .68rem;
   font-weight: 700;
   text-align: center;
   letter-spacing: .02em
}

.img-photo-upload {
   display: flex;
   flex-direction: column;
   width: 100%;
   height: 0;
   padding-bottom: 100%;
   border-radius: var(--r-lg);
   background: var(--bg-3);
   border: 2.5px dashed var(--border);
   cursor: pointer;
   position: relative;
   overflow: hidden;
   transition: all .25s var(--ease)
}

.img-photo-upload:hover {
   border-color: var(--gold);
   background: var(--gold-pale)
}

.img-photo-upload-content {
   position: absolute;
   inset: 0;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 6px
}

.img-photo-upload-icon {
   font-size: 1.4rem
}

.img-photo-upload-text {
   font-size: .72rem;
   font-weight: 700;
   color: var(--text-3)
}

/* SEARCH TABS */
.search-tabs {
   display: flex;
   gap: 6px;
   margin-bottom: 16px
}

.search-tab-btn {
   flex: 1;
   padding: 10px;
   border-radius: var(--r-full);
   font-size: .82rem;
   font-weight: 600;
   color: var(--text-3);
   border: 1.5px solid var(--border);
   text-align: center;
   cursor: pointer
}

.search-tab-btn.active {
   color: var(--gold);
   border-color: var(--gold);
   background: var(--gold-pale)
}

.highlight-match {
   background: rgba(201, 168, 76, .3);
   padding: 1px 2px;
   border-radius: 3px
}

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

/* ── QUIZ BÍBLICO ── */
.quiz-home {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding: 40px 20px;
   background: var(--bg-2);
   border-radius: var(--r-xl);
   margin: 20px;
   box-shadow: var(--shadow-sm);
}

.quiz-hero-icon {
   font-size: 4rem;
   margin-bottom: 16px;
   animation: popIn 0.5s var(--ease);
}

.quiz-high-score {
   color: var(--gold);
   font-size: 1.6rem;
   font-family: var(--font-display);
   font-weight: 700;
   margin-bottom: 8px;
}

.quiz-desc {
   color: var(--text-2);
   font-size: 0.95rem;
   line-height: 1.5;
   margin-bottom: 24px;
   max-width: 300px;
}

.quiz-header {
   padding-bottom: 20px;
   margin-bottom: 20px;
   border-bottom: 1px solid var(--border);
}

.quiz-progress-bar {
   height: 6px;
   background: var(--border);
   border-radius: 3px;
   overflow: hidden;
   margin-bottom: 12px;
}

.quiz-progress-fill {
   height: 100%;
   background: var(--gold);
   transition: width 0.4s var(--ease);
}

.quiz-header-stats {
   display: flex;
   justify-content: space-between;
   font-size: 0.85rem;
   font-weight: 700;
   color: var(--text-2);
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

.quiz-score-badge {
   color: var(--gold);
   background: var(--gold-pale);
   padding: 4px 10px;
   border-radius: 12px;
}

.quiz-question-card {
   margin: 20px;
   padding: 24px;
   background: var(--bg-2);
   border-radius: var(--r-xl);
   box-shadow: var(--shadow-sm);
   animation: slideUpFade 0.4s var(--ease);
}

.quiz-question-text {
   font-size: 1.25rem;
   font-family: var(--font-display);
   font-weight: 600;
   color: var(--text-1);
   margin-bottom: 24px;
   line-height: 1.4;
}

.quiz-options-grid {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.quiz-opt-btn {
   width: 100%;
   padding: 12px 16px;
   border: 2px solid var(--border);
   background: var(--bg-2);
   border-radius: var(--r-lg);
   font-size: 1rem;
   font-weight: 600;
   color: var(--text-1);
   text-align: left;
   cursor: pointer;
   transition: all 0.2s var(--ease);
   display: flex;
   align-items: center;
   gap: 14px;
}

.quiz-opt-letter {
   width: 34px;
   height: 34px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--bg-3);
   border-radius: 50%;
   font-size: 0.9rem;
   font-weight: 800;
   color: var(--gold);
   border: 1px solid var(--border);
   flex-shrink: 0;
   transition: all 0.2s var(--ease);
}

.quiz-opt-text {
   flex: 1;
}

.quiz-opt-btn:hover:not(:disabled) .quiz-opt-letter {
   background: var(--gold);
   color: white;
   border-color: var(--gold);
}

.quiz-opt-btn.correct .quiz-opt-letter {
   background: #34A853;
   color: white;
   border-color: #34A853;
}

.quiz-opt-btn.wrong .quiz-opt-letter {
   background: #EA4335;
   color: white;
   border-color: #EA4335;
}

.quiz-opt-btn:hover:not(:disabled) {
   border-color: var(--gold);
   background: var(--gold-pale);
}

.quiz-opt-btn:disabled {
   cursor: default;
   opacity: 0.7;
}

.quiz-opt-btn.correct {
   border-color: #34A853;
   background: rgba(52, 168, 83, 0.1);
   color: #34A853;
}

.quiz-opt-btn.wrong {
   border-color: #EA4335;
   background: rgba(234, 67, 53, 0.1);
   color: #EA4335;
}

.quiz-feedback {
   margin-top: 20px;
   padding: 16px;
   border-radius: var(--r-lg);
   font-weight: 700;
   font-size: 1rem;
   text-align: center;
   animation: popIn 0.3s var(--ease);
}

.quiz-feedback.correct {
   background: rgba(52, 168, 83, 0.15);
   color: #34A853;
}

.quiz-feedback.wrong {
   background: rgba(234, 67, 53, 0.15);
   color: #EA4335;
}

.quiz-ref {
   display: block;
   font-size: 0.8rem;
   font-weight: 600;
   margin-top: 6px;
   opacity: 0.9;
}

.quiz-result {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding: 40px 20px;
   margin: 20px;
   background: var(--bg-2);
   border-radius: var(--r-xl);
   box-shadow: var(--shadow-sm);
   animation: slideUpFade 0.5s var(--ease);
}

.quiz-result-ring {
   width: 120px;
   height: 120px;
   border-radius: 50%;
   border: 8px solid var(--gold);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   margin-bottom: 24px;
   box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.quiz-result-score {
   font-size: 2.5rem;
   font-weight: 900;
   color: var(--text-1);
   line-height: 1;
}

.quiz-result-label {
   font-size: 0.8rem;
   font-weight: 700;
   color: var(--text-3);
   text-transform: uppercase;
}

.quiz-result h3 {
   font-size: 1.4rem;
   color: var(--text-1);
   margin-bottom: 8px;
}

.quiz-result p {
   color: var(--text-2);
   font-size: 1rem;
   margin-bottom: 32px;
}

.quiz-result-actions {
   display: flex;
   flex-direction: column;
   gap: 12px;
   width: 100%;
}

/* ── GENERIC BUTTONS (Quiz & others) ── */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 14px 24px;
   border-radius: var(--r-full);
   font-weight: 700;
   font-size: 0.95rem;
   cursor: pointer;
   transition: all var(--t-med);
   text-align: center;
   border: 2px solid transparent;
}

.btn-primary {
   background: linear-gradient(135deg, var(--gold), var(--gold-light));
   color: var(--navy);
   box-shadow: 0 4px 15px rgba(201, 168, 76, 0.25);
   border: none;
}

.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
   background: transparent;
   color: var(--text-1);
   border-color: var(--border);
}

.btn-secondary:hover {
   border-color: var(--gold);
   color: var(--gold);
   background: var(--gold-pale);
   transform: translateY(-2px);
}

.btn-lg {
   padding: 16px 32px;
   font-size: 1.05rem;
}

/* ── QUIZ SELECTOR ── */
.quiz-length-selector {
   width: 100%;
   max-width: 300px;
   margin: 0 auto 28px auto;
   text-align: left;
}

.quiz-select {
   width: 100%;
   padding: 14px 16px;
   border-radius: 12px;
   border: 1px solid rgba(255, 255, 255, 0.1);
   background: var(--surface);
   color: var(--text-1);
   font-family: var(--font-main);
   font-size: 1rem;
   font-weight: 500;
   outline: none;
   cursor: pointer;
   appearance: none;
   -webkit-appearance: none;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 16px center;
   background-size: 16px;
   box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
   transition: all 0.2s ease;
}

.quiz-select:focus,
.quiz-select:hover {
   border-color: var(--gold);
   background: var(--surface-hover);
}

/* ════════════════════════════════════════════════════════════════
   BOTÃO "GERAR REFLEXÃO COM IA" - VERSÃO BONITA
   Adicionado: ReflectionGenerator Integration
════════════════════════════════════════════════════════════════ */

/* Botão Principal */
.ai-reflection-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   width: 100%;
   padding: 14px 20px;
   margin-bottom: 16px;

   /* Background Gradient */
   background: linear-gradient(135deg, var(--brand-1) 0%, #d4a574 100%);
   border: none;
   border-radius: 12px;

   /* Typography */
   font-size: 15px;
   font-weight: 600;
   color: white;
   text-transform: uppercase;
   letter-spacing: 0.5px;

   /* Interaction */
   cursor: pointer;
   transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
   box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);

   /* Outline */
   outline: none;
   border: 2px solid transparent;
}

/* Hover State */
.ai-reflection-btn:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 25px rgba(201, 168, 76, 0.5);
   background: linear-gradient(135deg, #d4a574 0%, var(--brand-1) 100%);
}

/* Active State */
.ai-reflection-btn:active {
   transform: translateY(-1px);
}

/* Focus State (Accessibility) */
.ai-reflection-btn:focus {
   border: 2px solid rgba(201, 168, 76, 0.8);
   box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4), 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Icon */
.ai-btn-icon {
   font-size: 18px;
   animation: sparkle 2s ease-in-out infinite;
}

/* Text */
.ai-btn-text {
   flex: 1;
   text-align: center;
}

/* Arrow */
.ai-btn-arrow {
   font-size: 18px;
   font-weight: 700;
   transition: transform 0.3s ease;
}

.ai-reflection-btn:hover .ai-btn-arrow {
   transform: translateX(4px);
}

/* Animation */
@keyframes sparkle {

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

   50% {
      opacity: 0.7;
      transform: scale(1.1);
   }
}

/* Disabled State */
.ai-reflection-btn:disabled {
   opacity: 0.6;
   cursor: not-allowed;
   box-shadow: none;
}

.ai-reflection-btn:disabled:hover {
   transform: none;
   box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

/* Loading State (quando está processando) */
.ai-reflection-btn.loading {
   pointer-events: none;
}

.ai-reflection-btn.loading .ai-btn-icon {
   animation: spin 1s linear infinite;
}

@keyframes spin {
   from {
      transform: rotate(0deg);
   }

   to {
      transform: rotate(360deg);
   }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
   .ai-reflection-btn {
      box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
   }

   .ai-reflection-btn:hover {
      box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
   }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
   .ai-reflection-btn {
      padding: 12px 16px;
      font-size: 14px;
   }

   .ai-btn-icon,
   .ai-btn-arrow {
      font-size: 16px;
   }
}

/* ── PREMIUM ADVERTISING CONTAINERS ── */
.ad-banner-wrapper {
   margin: 20px auto;
   max-width: 728px;
   width: calc(100% - 24px);
   background: linear-gradient(135deg, rgba(25, 34, 56, 0.4) 0%, rgba(20, 26, 43, 0.4) 100%);
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
   border: 1px solid rgba(255, 255, 255, 0.04);
   border-radius: 12px;
   padding: 12px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
   overflow: hidden;
}

.ad-banner-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 10px;
   padding: 0 4px;
}

.ad-label {
   font-size: 0.65rem;
   font-weight: 700;
   color: var(--text-3);
   letter-spacing: 0.1em;
}

.ad-remove-btn {
   font-size: 0.68rem;
   font-weight: 800;
   color: var(--gold-light);
   background: none;
   border: none;
   cursor: pointer;
   letter-spacing: 0.05em;
   transition: all 0.3s ease;
   text-shadow: 0 0 8px rgba(201, 168, 76, 0.2);
}

.ad-remove-btn:hover {
   color: var(--gold);
   text-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
   transform: translateY(-1px);
}

.ad-banner-slot {
   width: 100%;
   min-height: 90px;
   border-radius: 8px;
   overflow: hidden;
}