/* Custom styles for Life Analyzing app */
* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #fff;
    background-attachment: fixed;
    background-image: 
        radial-gradient(ellipse 130% 110% at 15% -35%, rgba(185, 190, 235, 0.75) 0%, transparent 85%),
        radial-gradient(ellipse 90% 90% at 0% 115%, rgba(255, 238, 214, 0.95) 0%, transparent 75%),
        radial-gradient(ellipse 100% 100% at 100% 100%, rgba(200, 205, 245, 0.6) 0%, transparent 80%),
        radial-gradient(circle at 60% 40%, rgba(215, 217, 241, 0.35) 0%, transparent 60%);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    min-height: 100vh;
}

/* Full-viewport cover while session is resolved (prevents auth page flash for returning users) */
.retrify-app-boot-cover {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background-color: #fdfbf7;
    background-image:
        radial-gradient(ellipse 78% 58% at 88% 6%, rgba(215, 217, 241, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse 70% 52% at 4% 92%, rgba(215, 217, 241, 0.32) 0%, transparent 46%),
        radial-gradient(ellipse 65% 55% at 70% 78%, rgba(253, 245, 234, 0.65) 0%, transparent 48%);
    background-repeat: no-repeat;
    pointer-events: none;
}

.retrify-app-boot-cover.hidden {
    display: none !important;
}

/* Loading animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Message animations */
.message-enter {
    animation: slideInUp 0.3s ease-out;
}

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

/* Modal animations */
.animate-in {
    animation: animate-in 0.3s ease-out forwards;
}

@keyframes animate-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.zoom-in {
    animation: zoom-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoom-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in {
    animation: fade-in 0.3s ease-out forwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Typing indicator animation */
.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -8px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}

/* Custom Google Button - Warm Tech 2.0 */
.retrify-google-custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.retrify-google-custom-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.retrify-google-custom-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.retrify-google-custom-btn .google-icon {
    width: 20px;
    height: 20px;
}


/* Sidebar tooltips */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 7px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
}
[data-tooltip]::before {
    content: '';
    position: absolute;
    left: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #1f2937;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
}
[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
}

/* Quick Reply Buttons */
.message-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.quick-reply-btn {
    padding: 6px 16px;
    font-size: 14px;
    background-color: white;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quick-reply-btn:hover {
    background-color: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-reply-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Thinking indicator */
.thinking-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.thinking-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.4;
    animation: thinking-pulse 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking-pulse {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Category Tree Styles */
.category-item {
    transition: all 0.2s ease;
}

.category-item:hover {
    transform: translateX(2px);
}

.retrify-category-actions {
    transition: opacity 0.2s ease;
}

@media (min-width: 769px) {
    .retrify-category-actions {
        opacity: 0;
    }
    .group:hover .retrify-category-actions {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .retrify-category-actions {
        opacity: 1;
    }
}

/* Modal animations */
#category-modal {
    animation: fadeIn 0.2s ease-out;
}

#category-modal .bg-white {
    animation: slideInFromTop 0.3s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Focus styles */
.focus-ring:focus {
    outline: none;
    ring: 2px;
    ring-color: #0ea5e9;
    ring-offset: 2px;
}

/* Button hover effects */
.btn-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Input focus effects */
.input-focus:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    transition: all 0.2s ease;
}

/* Status indicators */
.status-online {
    background-color: #10b981;
    animation: pulse 2s infinite;
}

.status-offline {
    background-color: #ef4444;
}

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

/* Category selection indicator */
.category-item.selected {
    background-color: rgb(240 249 255);
    border-color: rgb(191 219 254);
}

.category-item.selected .w-2.h-2 {
    background-color: rgb(14 165 233);
}

/* Active/current category — stronger highlight */
.category-content.bg-primary-50 {
    background-color: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: inset 3px 0 0 #6366f1;
}

.category-content.bg-primary-50 span.font-medium {
    color: #4338ca;
    font-weight: 600;
}

.category-content.bg-primary-50 .bg-primary-600 {
    background-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error states */
.error {
    border-color: rgb(239 68 68);
    background-color: rgb(254 242 242);
}

/* Success states */
.success {
    border-color: rgb(34 197 94);
    background-color: rgb(240 253 244);
}

/* Calendar Styles */
.calendar-day {
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: rgb(249 250 251);
}

.calendar-day.today {
    background-color: rgb(240 249 255);
    border-color: rgb(191 219 254);
}

.calendar-day.has-events {
    position: relative;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background-color: rgb(14 165 233);
    border-radius: 50%;
}

/* Event indicators */
.event-indicator {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-indicator.general {
    background-color: rgb(219 234 254);
    color: rgb(30 64 175);
}

.event-indicator.work {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
}

.event-indicator.personal {
    background-color: rgb(221 214 254);
    color: rgb(91 33 182);
}

/* Calendar navigation */
.calendar-nav-btn {
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background-color: rgb(243 244 246);
    transform: scale(1.05);
}

/* Event modal */
.event-modal {
    animation: slideInFromTop 0.3s ease-out;
}

/* Month view grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day-cell {
    min-height: 96px;
    border: 1px solid rgb(229 231 235);
    padding: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day-cell:hover {
    background-color: rgb(249 250 251);
}

.calendar-day-cell.today {
    background-color: rgb(240 249 255);
    border-color: rgb(191 219 254);
}

.calendar-day-cell.other-month {
    background-color: rgb(249 250 251);
    color: rgb(156 163 175);
}

/* Event summary */
.events-summary-item {
    transition: all 0.2s ease;
}

.events-summary-item:hover {
    background-color: rgb(249 250 251);
    transform: translateX(2px);
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */


/* Mobile sidebar toggle button (in header) */
.mobile-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #0284c7;
    color: white;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.mobile-sidebar-toggle:hover {
    background-color: #0369a1;
}

.mobile-sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile sidebar close button */
.mobile-sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.mobile-sidebar-close:hover {
    background-color: #e5e7eb;
}

.mobile-sidebar-close svg {
    width: 20px;
    height: 20px;
}

/* Mobile overlay for sidebar */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 45;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
}

@media (max-width: 768px) {
    /* Show mobile toggle button and close button */
    .mobile-sidebar-toggle,
    .mobile-sidebar-close {
        display: flex;
    }

    /* Chat page layout — compact shell */
    #chat-page.retrify-chat-page {
        flex-direction: column;
        padding: 0.45rem 0.65rem 0;
    }

    #chat-page .retrify-chat-stage {
        flex: 1;
        min-height: 0;
        overflow: visible;
    }

    #chat-page .retrify-chat-main {
        flex: 1;
        min-height: 0;
        min-width: 0;
        overflow: visible;
    }

    /* Chat side sheets: positioning lives in the later @media block with .retrify-chat-drawer
       so desktop `left`/`right` + `transform` do not override off-canvas state. */

    /* Show overlay when sidebar is open */
    .mobile-sidebar-overlay.active {
        display: block;
    }

    /* Chat input area - make it more mobile friendly */
    #chat-page .bg-white.border-t {
        padding: 12px;
    }

    #chat-page .bg-white.border-t .flex {
        flex-wrap: wrap;
        gap: 8px;
    }

    #chat-page #message-input {
        flex: 1;
        min-width: 0;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    #chat-page #send-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    #chat-page #voice-btn {
        padding: 8px 12px;
    }

    /* Messages container */
    #messages-container {
        padding: 0.45rem 0.55rem;
    }

    #messages-container .max-w-md,
    #messages-container .max-w-xs {
        max-width: 90%;
    }

    /* Tighter vertical stack than Tailwind space-y-4 */
    #chat-page #messages-container > * + * {
        margin-top: 0.45rem !important;
    }

    #chat-page #messages-container .rounded-lg {
        padding: 0.45rem 0.6rem !important;
    }

    #chat-page #messages-container .text-sm,
    #chat-page #messages-container p.text-gray-900,
    #chat-page #messages-container p.text-gray-800 {
        font-size: 0.8125rem;
        line-height: 1.38;
    }

    #chat-page #messages-container audio {
        max-height: 34px;
        margin-top: 0.25rem;
    }

    #chat-page #messages-container .text-xs {
        font-size: 0.65rem;
    }

    /* Chat header - fixed on mobile */
    #chat-page .bg-white.border-b {
        padding: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 40;
    }

    /* Chat header is in-flow (retrify-dashboard-header), not fixed legacy bar */
    #chat-page .retrify-chat-main #messages-container {
        padding-top: 0.35rem;
    }


    /* Calendar page layout */
    #calendar-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #calendar-page > main {
        flex: none;
        height: auto;
    }

    #calendar-page > aside {
        flex: none;
        width: 100%;
        max-height: none;
        border-left: none;
        border-top: 1px solid rgb(229 231 235);
    }

    /* Calendar main content - no inner scroll on mobile */
    #calendar-page > main > .flex-1.overflow-y-auto {
        overflow-y: visible;
        flex: none;
    }

    /* Calendar grid */
    .calendar-day-cell {
        min-height: 60px;
        padding: 2px;
        font-size: 12px;
    }

    /* Onboarding page - mobile */
    .retrify-onboarding-page {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .retrify-onboarding-shell {
        padding: 1rem 0.75rem 2rem;
    }

    .retrify-onboarding-card {
        padding: 1.25rem 1rem 1rem;
        border-radius: 1rem;
    }

    #onboarding-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .onboarding-category-tile {
        padding: 0.5rem 0.4rem;
        max-height: 90px;
    }

    #add-custom-category-tile {
        padding: 0.5rem 0.4rem;
        max-height: 90px;
    }

    #onboarding-category-grid {
        max-width: 280px !important;
    }

    .retrify-onboarding-title {
        font-size: 1.4rem;
    }

    .retrify-onboarding-subtitle {
        font-size: 0.9rem;
    }

    /* Recovery pages — той самий .retrify-auth-page; трохи щільніші бокові поля на вузьких екранах */
    #forgot-password-page.retrify-auth-page,
    #reset-password-page.retrify-auth-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Modals */
    #category-modal .bg-white,
    #custom-category-modal .bg-white {
        margin: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Navbar */
    #navbar .max-w-7xl {
        padding-left: 12px;
        padding-right: 12px;
    }

    #navbar .flex.space-x-4 {
        display: none;
    }

    #user-email {
        display: none;
    }

    /* Mobile utility classes */
    .mobile-hidden {
        display: none !important;
    }

    .mobile-full {
        width: 100% !important;
    }

    /* Mobile category tree */
    .category-item {
        padding: 12px;
    }

    .category-item .retrify-category-actions,
    .subcategory-item .retrify-category-actions {
        opacity: 1 !important;
    }

    /* Hide voice status text on very small screens */
    #voice-status {
        display: none;
    }

    /* Model selector on mobile */
    #model-selector {
        flex-wrap: wrap;
    }

    #model-input {
        width: 100px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    #onboarding-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .onboarding-category-tile {
        aspect-ratio: 1;
        flex-direction: column;
        justify-content: center;
        gap: 0.3rem;
        padding: 0.5rem 0.4rem;
        max-width: none;
    }

    .onboarding-category-tile .tile-icon {
        width: 1.4rem;
        height: 1.4rem;
        flex-shrink: 0;
    }

    #add-custom-category-tile {
        aspect-ratio: 1;
        flex-direction: column;
        justify-content: center;
        gap: 0.3rem;
        padding: 0.5rem 0.4rem;
    }

    #add-custom-category-tile .tile-icon {
        width: 1.4rem;
        height: 1.4rem;
    }

    .retrify-onboarding-title {
        font-size: 1.25rem;
    }

    #chat-page #send-btn span {
        display: none;
    }

    #chat-page #send-btn::after {
        content: '→';
        font-size: 18px;
    }

    #chat-page #send-btn {
        padding: 8px 12px;
    }

    /* Make voice button and send button same row */
    #chat-page .bg-white.border-t .flex {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    #chat-page .flex.items-center.space-x-2 {
        order: 1;
    }

    #chat-page #message-input {
        order: 2;
    }

    #chat-page #send-btn {
        order: 3;
    }
}

/* Drag and Drop styles for categories */
.category-item {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-item.dragging {
    opacity: 0.4;
}

.category-item.drag-over-top {
    border-top: 3px solid #3b82f6;
    margin-top: -3px;
}

.category-item.drag-over-bottom {
    border-bottom: 3px solid #3b82f6;
    margin-bottom: -3px;
}

.category-content {
    user-select: none;
}

.drag-handle {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.category-item:hover .drag-handle {
    opacity: 0.6;
}

.drag-handle:hover {
    opacity: 1 !important;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Chat header styles */
#current-category-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.5;
}

#chat-header-actions {
    min-width: fit-content;
}

/* Message content formatting */
.message-content {
    line-height: 1.6;
    white-space: normal;
}

.message-content br {
    display: block;
    content: "";
    margin: 0.5em 0;
}

/* Facts — drag-and-drop insert line */
.fact-item {
    position: relative;
}

.fact-item.fact-drag-insert-before::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    right: 0.375rem;
    top: -7px;
    height: 3px;
    border-radius: 9999px;
    background: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 3;
}

.fact-item.fact-drag-insert-after::after {
    content: '';
    position: absolute;
    left: 0.375rem;
    right: 0.375rem;
    bottom: -7px;
    height: 3px;
    border-radius: 9999px;
    background: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 3;
}

.fact-item.fact-is-dragging {
    opacity: 0.5;
    transform: scale(0.992);
    box-shadow: 0 12px 28px -8px rgba(14, 165, 233, 0.28);
    outline: 1px solid rgba(14, 165, 233, 0.45);
    outline-offset: 0;
    z-index: 2;
}

/* -------------------------------------------------------------------------- */
/* Retrify login — Warm Tech 2.0: warm hearth + cold glass (no yellow tint)   */
/* -------------------------------------------------------------------------- */

body:has(#auth-page:not(.hidden)),
body:has(#forgot-password-page:not(.hidden)),
body:has(#reset-password-page:not(.hidden)) {
    background-color: #fdfbf7 !important;
}

/* ─── Onboarding Page ───────────────────────────────────────────── */
.retrify-onboarding-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #fff;
    background-image:
        radial-gradient(ellipse 130% 110% at 15% -35%, rgba(185, 190, 235, 0.75) 0%, transparent 85%),
        radial-gradient(ellipse 90%  90%  at 0%  115%, rgba(255, 238, 214, 0.95) 0%, transparent 75%),
        radial-gradient(ellipse 100% 100% at 100% 100%, rgba(200, 205, 245, 0.6) 0%, transparent 80%),
        radial-gradient(circle at 60% 40%, rgba(215, 217, 241, 0.35) 0%, transparent 60%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.retrify-onboarding-shell {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem 1.5rem;
    flex: 1;
}

.retrify-onboarding-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(215, 217, 241, 0.5);
    border-radius: 1.25rem;
    box-shadow: 0 4px 32px rgba(185, 190, 235, 0.18);
    padding: 1.25rem 1.5rem 1rem;
    max-width: 560px;
    width: 100%;
}

.retrify-onboarding-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0D0D0E;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.retrify-onboarding-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    max-width: 520px;
    margin: 0 auto;
}

.retrify-onboarding-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.4rem;
}

/* Onboarding category tiles — minimalist style */
.onboarding-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.4rem;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(215, 217, 241, 0.6);
    border-radius: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    gap: 0.3rem;
    box-sizing: border-box;
}

.onboarding-category-tile:hover {
    border-color: rgba(185, 190, 235, 0.9);
    box-shadow: 0 2px 12px rgba(185, 190, 235, 0.25);
    background: rgba(255, 255, 255, 0.9);
}

.onboarding-category-tile.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.onboarding-category-tile .tile-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: #6b7280;
    flex-shrink: 0;
}

.onboarding-category-tile.selected .tile-icon {
    color: #6366f1;
}

.onboarding-category-tile .tile-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    line-height: 1.3;
}

.onboarding-category-tile.selected .tile-label {
    color: #4f46e5;
}

/* Custom category add tile */
#add-custom-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.4rem;
    aspect-ratio: 1;
    background: transparent;
    border: 1.5px dashed rgba(185, 190, 235, 0.7);
    border-radius: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    gap: 0.3rem;
    box-sizing: border-box;
}

#add-custom-category-tile .tile-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: #9ca3af;
    flex-shrink: 0;
}

#add-custom-category-tile .tile-label {
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.2;
}

#add-custom-category-tile:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.03);
}

/* ─────────────────────────────────────────────────────────────────── */

.retrify-auth-page {
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    /* overflow:hidden blocked scroll on short viewports / zoom; clip X only for blob bleed */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: transparent !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.retrify-auth-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.retrify-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(88px);
    opacity: 0.7;
}

.retrify-blob--lavender {
    width: min(520px, 100vw);
    height: min(520px, 100vw);
    background: #d7d9f1;
    top: -16%;
    right: -20%;
    opacity: 0.62;
}

.retrify-blob--lavender-secondary {
    width: min(360px, 90vw);
    height: min(360px, 90vw);
    background: #d7d9f1;
    bottom: -6%;
    left: -16%;
    opacity: 0.42;
}

.retrify-blob--peach {
    width: min(420px, 95vw);
    height: min(420px, 95vw);
    background: rgba(253, 245, 234, 0.85);
    top: 44%;
    left: 4%;
    filter: blur(96px);
    opacity: 0.55;
}

.retrify-blob--amber-soft {
    width: min(380px, 90vw);
    height: min(380px, 90vw);
    background: #fdf5ea;
    top: 14%;
    left: 48%;
    opacity: 0.38;
    filter: blur(92px);
}

.retrify-auth-stack {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 432px;
    min-width: 0;
    margin: auto;
}

.retrify-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(13, 13, 14, 0.08);
    box-shadow: 0 4px 14px -10px rgba(13, 13, 14, 0.35);
}

.retrify-lang-btn {
    border: none;
    background: transparent;
    color: rgba(13, 13, 14, 0.62);
    border-radius: 9999px;
    padding: 0.32rem 0.62rem;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.retrify-lang-btn:hover {
    background: rgba(13, 13, 14, 0.08);
    color: #0d0d0e;
}

.retrify-lang-btn.is-active {
    background: #0d0d0e;
    color: #fdfbf7;
}

.retrify-auth-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    /* Do not clip GIS button — overflow-x:hidden cut the right side of the Google pill */
    overflow-x: visible;
    padding: 2rem 1.85rem 1.75rem;
    border-radius: 28px;
}

.retrify-glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(55px) saturate(120%);
    -webkit-backdrop-filter: blur(32px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 26px;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        inset 1px 0 0 0 rgba(255, 255, 255, 0.15),
        0 12px 32px -8px rgba(0, 0, 0, 0.04),
        0 0 0 0.5px rgba(255, 255, 255, 0.06) inset;
}

/* ─── Welcome & Schedule modals ──────────────────────────────── */
.retrify-onboarding-modal {
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        0 24px 64px -12px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.retrify-onboarding-modal-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.retrify-onboarding-modal-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.retrify-onboarding-modal-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #0D0D0E;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    text-align: center;
}

.retrify-onboarding-modal-btn:hover {
    opacity: 0.88;
}

.retrify-schedule-block {
    padding: 1rem;
    background: var(--block-bg);
    border: 1px solid var(--block-border);
    border-radius: 16px;
}

@media (max-width: 480px) {
    .retrify-schedule-block {
        padding: 0.75rem;
    }
}

.retrify-schedule-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.retrify-schedule-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.retrify-schedule-ics-btn {
    padding: 0.625rem 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.retrify-schedule-ics-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
/* ─────────────────────────────────────────────────────────────── */

.retrify-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.retrify-auth-brand--page {
    margin-bottom: 0;
}

.retrify-logo-mark {
    display: flex;
    filter: drop-shadow(0 1px 2px rgba(13, 13, 14, 0.12));
}

.retrify-logo-word {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    color: #0d0d0e;
}

.retrify-auth-intro {
    text-align: center;
    margin-bottom: 1.35rem;
}

.retrify-auth-heading {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.75rem, 4.2vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0d0d0e;
}

.retrify-auth-sub {
    margin: 0.55rem 0 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(13, 13, 14, 0.58);
}

.retrify-auth-alert {
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    margin-bottom: 0.85rem;
    border: 1px solid transparent;
}

.retrify-auth-alert--error {
    background: rgba(254, 226, 226, 0.55);
    border-color: rgba(220, 38, 38, 0.18);
    color: #991b1b;
}

.retrify-auth-alert--success {
    background: rgba(220, 252, 231, 0.55);
    border-color: rgba(22, 163, 74, 0.2);
    color: #166534;
}

.retrify-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.retrify-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.retrify-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(13, 13, 14, 0.72);
}

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

.retrify-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #0d0d0e;
    /* Stronger “cold glass” so fields read clearly on warm hearth */
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 16px;
    outline: none;
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 0 0 1px rgba(13, 13, 14, 0.07),
        0 6px 20px -8px rgba(13, 13, 14, 0.14);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Single trailing control (password visibility toggle) */
.retrify-input--with-icons {
    padding-right: 2.875rem;
}

.retrify-input::placeholder {
    color: rgba(13, 13, 14, 0.44);
}

.retrify-input:hover {
    border-color: rgba(13, 13, 14, 0.12);
    background: rgba(255, 255, 255, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 1px rgba(215, 217, 241, 0.55),
        0 8px 26px -10px rgba(13, 13, 14, 0.16);
}

.retrify-input:focus {
    border-color: rgba(168, 176, 228, 0.95);
    box-shadow:
        0 0 0 3px rgba(215, 217, 241, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.62);
}

.retrify-input-icons {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.retrify-input-icons--split {
    gap: 0.15rem;
    pointer-events: auto;
}

.retrify-input-icons--toggle {
    pointer-events: auto;
    right: 0.25rem;
}

.retrify-icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.18);
    color: rgba(13, 13, 14, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 0 0 0.5px rgba(13, 13, 14, 0.04);
}

.retrify-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 0.5px 0 rgba(255, 255, 255, 0.95));
}

.retrify-icon-btn {
    pointer-events: auto;
    cursor: pointer;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.15s ease, color 0.15s ease;
}

.retrify-icon-btn:hover {
    background: rgba(255, 255, 255, 0.55);
    color: #0d0d0e;
}

/* Password visibility: icon only, no chip / glass tile */
.retrify-icon-btn--plain {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    box-shadow: none;
    color: rgba(13, 13, 14, 0.45);
}

.retrify-icon-btn--plain .retrify-icon {
    filter: none;
}

.retrify-icon-btn--plain:hover {
    background: rgba(13, 13, 14, 0.06);
    color: #0d0d0e;
}

.retrify-icon-btn--plain:focus-visible {
    outline: 2px solid rgba(215, 217, 241, 0.9);
    outline-offset: 2px;
}

.retrify-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.15rem;
}

.retrify-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(13, 13, 14, 0.55);
    background: none;
    border: none;
    padding: 0.25rem 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.retrify-link:hover {
    color: #0d0d0e;
}

.retrify-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: rgba(13, 13, 14, 0.42);
    text-align: center;
}

.retrify-auth-divider::before,
.retrify-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(13, 13, 14, 0.08);
}

.retrify-auth-divider span {
    white-space: nowrap;
}

/* GIS button only — no extra glass pill behind it */
.retrify-google-btn-slot {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.retrify-google-btn-slot > div {
    box-sizing: border-box;
}

.retrify-google-btn-slot iframe {
    display: block;
}

/*
 * GIS “large” pill is still a bit shorter than .retrify-btn (50px) — scale Y only on login
 * so the white Google capsule reads closer to Увійти without changing width.
 */

.retrify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0.7rem 1.25rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.retrify-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.retrify-btn-primary {
    margin-top: 0.2rem;
    color: #0d0d0e;
    border: 1px solid rgba(13, 13, 14, 0.1);
    /* Flat warm fill — no gradient (matches “монотонна” primary) */
    background: #f0ebe3;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 2px 10px -4px rgba(13, 13, 14, 0.08);
}

.retrify-btn-primary:hover:not(:disabled) {
    background: #e4ddd3;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 3px 12px -4px rgba(13, 13, 14, 0.1);
}

.retrify-auth-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.45rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.retrify-auth-footer-line {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(13, 13, 14, 0.58);
    white-space: nowrap;
    line-height: 1.3;
}

.retrify-btn-register {
    width: 100%;
    max-width: 100%;
    background: #0d0d0e;
    color: #fdfbf7;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.retrify-btn-register:hover {
    opacity: 0.92;
}

/* -------------------------------------------------------------------------- */
/* Retrify Home — Warm Tech 2.0                                               */
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* Retrify Dashboard 2.0                                                      */
/* -------------------------------------------------------------------------- */

.retrify-home-page {
    position: relative;
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    overflow-y: visible;
    background-color: #fff;
    background-attachment: fixed;
    background-image:
        radial-gradient(ellipse 130% 110% at 15% -35%, rgba(185, 190, 235, 0.75) 0%, transparent 85%),
        radial-gradient(ellipse 90%  90%  at 0%  115%, rgba(255, 238, 214, 0.95) 0%, transparent 75%),
        radial-gradient(ellipse 100% 100% at 100% 100%, rgba(200, 205, 245, 0.6) 0%, transparent 80%),
        radial-gradient(circle at 60% 40%, rgba(215, 217, 241, 0.35) 0%, transparent 60%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
}

.retrify-home-page > .retrify-home-shell {
    width: 100%;
    max-width: 1300px;
    margin-left: auto !important;
    margin-right: auto !important;
}



/* Energy Glows (Blobs) */
.retrify-home-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.retrify-home-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.6;
    animation: pulseBlob 10s ease-in-out infinite alternate;
}

.retrify-home-blob--lavender {
    width: 400px;
    height: 400px;
    background: #D7D9F1; /* Lavender Mist */
    top: -50px;
    right: -50px;
}

.retrify-home-blob--amber {
    width: 300px;
    height: 300px;
    background: #FDF5EA; /* Subtle Amber */
    bottom: -20px;
    left: -50px;
    animation-delay: -5s;
}

.retrify-home-blob--lavender-soft {
    width: 250px;
    height: 250px;
    background: rgba(215, 217, 241, 0.5); /* Lighter Lavender */
    top: 40%;
    left: 30%;
    animation-delay: -2s;
}

@keyframes pulseBlob {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, 20px); }
}


/* CSS-змінні для кожної сторінки — хедер підхоплює автоматично */
.retrify-home-page       { --header-max-width: 1300px; --header-padding-x: 0rem;  --header-padding-y: 0rem;   --header-bg: transparent; --header-backdrop: none; --header-border: none; --header-margin-bottom: 2.5rem; --header-logo-size: 2.2rem; }
.retrify-auth-page       { --header-max-width: 432px;  --header-padding-x: 0.5rem; --header-padding-y: 1.5rem; --header-bg: transparent; --header-backdrop: none; --header-border: none; --header-margin-bottom: 0rem;  --header-logo-size: 2.2rem; }
.retrify-chat-page       { --header-max-width: 90vw;   --header-padding-x: 0rem;  --header-padding-y: 0rem;   --header-bg: transparent; --header-backdrop: none; --header-border: none; --header-margin-bottom: 0.75rem; --header-logo-size: 1.6rem; }
.retrify-onboarding-page { --header-max-width: 560px;  --header-padding-x: 0rem; --header-padding-y: 0rem;   --header-bg: transparent; --header-backdrop: none; --header-border: none; --header-margin-bottom: 0rem; --header-logo-size: 2.2rem; }

.retrify-dashboard-header {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--header-padding-y, 0.75rem) var(--header-padding-x, 2rem);
    margin: 0 auto var(--header-margin-bottom, 0.5rem) auto;
    max-width: var(--header-max-width, 100%);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
    background: var(--header-bg, rgba(255, 255, 255, 0.8));
    backdrop-filter: var(--header-backdrop, blur(10px));
    border-bottom: var(--header-border, 1px solid rgba(0,0,0,0.05));
}

.retrify-home-shell {
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.retrify-dashboard-header .retrify-logo-word {
    font-family: 'Inter', sans-serif;
    font-size: var(--header-logo-size, 2.2rem);
    font-weight: 700;
    color: #0D0D0E;
    letter-spacing: -0.03em;
}

.retrify-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.retrify-start-conv-btn {
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1.8px solid transparent;
    border-radius: 99px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.retrify-start-conv-btn:hover {
    background: white;
    color: #0D0D0E;
    border-color: #0D0D0E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.retrify-start-conv-btn .plus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.retrify-profile-circle {
    font-family: 'Inter', sans-serif;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0D0D0E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.retrify-profile-circle:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Dashboard Grid Layout */
.retrify-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(280px, 320px) 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    width: 100%;
    padding-bottom: 5rem;
    position: relative;
    z-index: 5;
}

/* Card Component - Cold Logic Glassmorphism */
.retrify-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(55px) saturate(120%);
    -webkit-backdrop-filter: blur(32px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    padding: 1.8rem;
    min-width: 0;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        inset 1px 0 0 0 rgba(255, 255, 255, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.03),
        0 0 0 0.5px rgba(255, 255, 255, 0.06) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.retrify-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5), 0 20px 60px rgba(0, 0, 0, 0.05);
}

.retrify-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.today-card .card-title {
    margin-bottom: 1.2rem;
}


.today-card {
    grid-column: 1;
    grid-row: 1;
    min-height: 220px;
    height: 100%; /* Дозволяємо сітці керувати висотою для вирівнювання */
}

.today-card .card-content {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
}

.actions-panel {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(55px) saturate(120%);
    -webkit-backdrop-filter: blur(32px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 1.1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.03);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5), 0 8px 24px rgba(0,0,0,0.06);
}

.action-btn::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.action-btn:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.action-btn .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.2s;
}

.action-btn:hover .btn-icon {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0,0,0,0.1);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8), 0 2px 5px rgba(0,0,0,0.04);
    color: #374151;
}

.action-btn .btn-text {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

/* Energy Card (Large) */
.energy-card {
    grid-column: 2 / span 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

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

.arrow-icon {
    color: #d1d5db;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.retrify-card:hover .arrow-icon {
    transform: translateX(4px);
    opacity: 1;
    color: #9ca3af;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.chart-container {
    flex: 1;
    min-height: 120px;
    max-height: 260px;
    margin-bottom: 0.5rem;
    position: relative;
}

.chart-container canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.score-text {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 600;
}

/* Calendar Card */
.calendar-card {
    grid-column: 2;
    grid-row: 2;
    height: 100%;
    cursor: pointer;
}

.calendar-mini-content .today-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.slot {
    height: 38px;
    background: rgba(0,0,0,0.03);
    border: 1.5px dashed rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: all 0.2s;
}

.calendar-card:hover .slot {
    border-color: rgba(0,0,0,0.2);
}

/* Life Tree Card */
.lifetree-card {
    grid-column: 3;
    grid-row: 2;
    height: 100%;
    cursor: pointer;
}

.lifetree-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    flex: 1;
}

.tree-node {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 18px;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0D0D0E;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.tree-node:hover {
    border-color: #0D0D0E;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* History Card */
.history-card {
    grid-column: 1 / span 3;
    grid-row: 3;
    /* lifetree-card stays at col 3 */
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: none;
    overflow-y: visible;
    padding-right: 0.4rem;
    margin-top: 1rem;
}

/* Custom scrollbar for history list */
.history-list::-webkit-scrollbar {
    width: 4px;
}
.history-list::-webkit-scrollbar-track {
    background: transparent;
}
.history-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.history-item {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    cursor: pointer;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
}

.history-item:hover {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.1);
    transform: translateX(4px);
}


.retrify-home-energy-card canvas {
    width: 100%;
    height: 100%;
    min-height: 150px;
    max-height: 260px;
    border-radius: 14px;
    display: block;
    flex: 1;
}

.retrify-home-energy-summary {
    margin: 0.58rem 0 0;
    font-size: 0.98rem;
    line-height: 1.4;
    color: rgba(13, 13, 14, 0.78);
}

.retrify-home-insights-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.retrify-home-insight-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.46rem 0.82rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(13, 13, 14, 0.08);
    font-size: 0.92rem;
    color: rgba(13, 13, 14, 0.86);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.retrify-home-insight-item::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #6f8fdc;
    box-shadow: 0 0 0 2px rgba(215, 217, 241, 0.65);
    flex-shrink: 0;
}

.retrify-home-profile-btn {
    width: min(420px, 100%);
    align-self: center;
    min-height: 84px;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    color: #0d0d0e;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.12rem, 2.1vw, 2rem);
    letter-spacing: -0.01em;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.retrify-home-profile-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Auth flows — fit one mobile viewport without scrolling (compact tap targets preserved) */
@media (max-width: 640px) {
    #auth-page.retrify-auth-page,
    #forgot-password-page.retrify-auth-page,
    #reset-password-page.retrify-auth-page {
        padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0.65rem max(0.5rem, env(safe-area-inset-bottom, 0px));
        min-height: 100dvh;
        min-height: 100vh;
        overflow-x: hidden;
        /* Usually no scrollbar after compaction; auto helps when the OS keyboard shrinks the viewport */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        place-items: center;
        align-content: center;
    }

    #auth-page .retrify-auth-stack,
    #forgot-password-page .retrify-auth-stack,
    #reset-password-page .retrify-auth-stack {
        gap: 0.5rem;
        max-width: 100%;
    }

    #auth-page .retrify-auth-brand--page .retrify-logo-mark svg,
    #forgot-password-page .retrify-auth-brand--page .retrify-logo-mark svg,
    #reset-password-page .retrify-auth-brand--page .retrify-logo-mark svg {
        width: 30px;
        height: 30px;
    }

    #auth-page .retrify-logo-word,
    #forgot-password-page .retrify-logo-word,
    #reset-password-page .retrify-logo-word {
        font-size: 1.05rem;
    }

    #auth-page .retrify-auth-card,
    #forgot-password-page .retrify-auth-card,
    #reset-password-page .retrify-auth-card {
        padding: 0.85rem 1rem 0.75rem;
        border-radius: 20px;
    }

    #auth-page .retrify-glass-panel,
    #forgot-password-page .retrify-glass-panel,
    #reset-password-page .retrify-glass-panel {
        -webkit-backdrop-filter: blur(28px) saturate(120%);
        backdrop-filter: blur(28px) saturate(120%);
    }

    #auth-page .retrify-auth-intro,
    #forgot-password-page .retrify-auth-intro,
    #reset-password-page .retrify-auth-intro {
        margin-bottom: 0.45rem;
    }

    #auth-page .retrify-auth-heading,
    #forgot-password-page .retrify-auth-heading,
    #reset-password-page .retrify-auth-heading {
        font-size: 1.35rem;
        line-height: 1.15;
    }

    #auth-page .retrify-auth-sub,
    #forgot-password-page .retrify-auth-sub,
    #reset-password-page .retrify-auth-sub {
        margin-top: 0.2rem;
        font-size: 0.8125rem;
        line-height: 1.3;
    }

    #auth-page .retrify-auth-alert,
    #forgot-password-page .retrify-auth-alert,
    #reset-password-page .retrify-auth-alert {
        padding: 0.4rem 0.55rem;
        margin-bottom: 0.45rem;
        font-size: 0.78rem;
        border-radius: 12px;
    }

    #auth-page .retrify-auth-form,
    #forgot-password-page .retrify-auth-form,
    #reset-password-page .retrify-auth-form {
        gap: 0.85rem;
    }

    #auth-page .retrify-field,
    #forgot-password-page .retrify-field,
    #reset-password-page .retrify-field {
        gap: 0.15rem;
    }

    #auth-page .retrify-label,
    #forgot-password-page .retrify-label,
    #reset-password-page .retrify-label {
        font-size: 0.72rem;
    }

    #auth-page .retrify-input,
    #forgot-password-page .retrify-input,
    #reset-password-page .retrify-input {
        padding: 0.55rem 0.7rem;
        font-size: 0.875rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.52);
        border: 1px solid rgba(255, 255, 255, 0.48);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 0 0 1px rgba(13, 13, 14, 0.08),
            0 4px 16px -8px rgba(13, 13, 14, 0.15);
    }

    #auth-page .retrify-input:hover,
    #forgot-password-page .retrify-input:hover,
    #reset-password-page .retrify-input:hover {
        background: rgba(255, 255, 255, 0.62);
    }

    #auth-page .retrify-input:focus,
    #forgot-password-page .retrify-input:focus,
    #reset-password-page .retrify-input:focus {
        background: rgba(255, 255, 255, 0.68);
    }

    #auth-page .retrify-input--with-icons,
    #forgot-password-page .retrify-input--with-icons,
    #reset-password-page .retrify-input--with-icons {
        padding-right: 2.65rem;
    }

    #auth-page .retrify-icon-chip,
    #forgot-password-page .retrify-icon-chip,
    #reset-password-page .retrify-icon-chip {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 8px;
    }

    #auth-page .retrify-forgot-row,
    #forgot-password-page .retrify-forgot-row,
    #reset-password-page .retrify-forgot-row {
        margin-top: 0;
    }

    #auth-page .retrify-auth-divider,
    #forgot-password-page .retrify-auth-divider,
    #reset-password-page .retrify-auth-divider {
        margin: 0.45rem 0 0.15rem;
        gap: 0.45rem;
        font-size: 0.7rem;
    }

    #auth-page .retrify-google-btn-slot,
    #forgot-password-page .retrify-google-btn-slot,
    #reset-password-page .retrify-google-btn-slot {
        height: 44px;
    }

    #auth-page .retrify-btn,
    #forgot-password-page .retrify-btn,
    #reset-password-page .retrify-btn {
        height: 44px;
        padding: 0.45rem 0.85rem;
        font-size: 0.875rem;
    }

    #auth-page .retrify-btn-primary,
    #forgot-password-page .retrify-btn-primary,
    #reset-password-page .retrify-btn-primary {
        margin-top: 0;
    }

    #auth-page .retrify-auth-footer,
    #forgot-password-page .retrify-auth-footer,
    #reset-password-page .retrify-auth-footer {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        gap: 0.45rem;
    }

    #auth-page .retrify-auth-footer-line,
    #forgot-password-page .retrify-auth-footer-line,
    #reset-password-page .retrify-auth-footer-line {
        font-size: 0.78rem;
    }
}

@media (max-width: 900px) {
    .retrify-home-page {
        padding: 1rem 1.2rem;
    }

    .retrify-header-right {
        gap: 1rem;
    }

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

    .today-card, .energy-card, .actions-panel, .calendar-card, .lifetree-card, .history-card {
        grid-column: 1;
        grid-row: auto;
    }

    .energy-card {
        order: -1; /* Energy graph at top on mobile */
    }

    .energy-card canvas {
        height: 135px !important; /* Зменшено на ~30% для мобільних */
    }

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

    .today-card {
        order: 1;
    }

    .actions-panel {
        order: 2;
    }

    .calendar-card {
        order: 3;
    }

    .lifetree-card {
        order: 4;
    }

    .history-card {
        order: 5;
    }

    .retrify-card {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .retrify-dashboard-header .retrify-logo-word {
        font-size: 1.8rem;
    }
}

/* Profile Dropdown & Glassmorphism */
.retrify-profile-wrapper {
    position: relative;
    cursor: pointer;
}

.glass-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px) saturate(130%);
    -webkit-backdrop-filter: blur(30px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.retrify-glass-dropdown-fixed {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(30px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(130%) !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.02) !important;
    overflow: hidden !important;
}

.retrify-glass-dropdown-fixed button {
    background: transparent !important;
    border: none !important;
}

.retrify-glass-dropdown-fixed button:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.retrify-profile-wrapper:hover .glass-dropdown,
.retrify-profile-wrapper.active .glass-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-email {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2C2C2E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


#chat-page .retrify-chat-shell {
    width: min(100%, 90vw);
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Categories overlay: desktop never uses it (in-flow pane); mobile uses .active */
@media (min-width: 769px) {
    #chat-page #mobile-categories-overlay {
        display: none !important;
        pointer-events: none !important;
    }
}

#chat-page #mobile-categories-overlay {
    z-index: 180;
}

.retrify-chat-page {
    position: relative;
    box-sizing: border-box;
    /* One viewport tall — scroll only inside #messages-container, not the whole page */
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    padding: 0.75rem 2rem 0; /* Зменшено верхній відступ вдвічі, прибрано нижній */
    overflow: hidden;
    overscroll-behavior: none;
    background: transparent !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.retrify-chat-page > .retrify-home-blobs {
    z-index: 0;
}

.retrify-chat-shell {
    position: relative;
    z-index: 5;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-top: 0.75rem;
}

/* Main + categories share one row; categories width animates and narrows the chat column */
.retrify-chat-stage {
    --retrify-categories-pane-width: min(300px, 32vw);
    --retrify-chat-stage-gap: 0.5rem;
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    gap: var(--retrify-chat-stage-gap); /* Симетричний відступ між чатом та категоріями */
    align-items: stretch;
}

.retrify-chat-main {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 0;
    /* Horizontal rhythm comes from #chat-page padding (matches home shell) */
    padding: 0; /* Прибираємо паддінг тут, переносимо на загальний рівень */
}

.retrify-chat-categories-pane {
    --retrify-categories-top-offset: 0px;
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    max-width: 0;
    height: calc(100% - var(--retrify-categories-top-offset));
    margin-top: var(--retrify-categories-top-offset);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    align-self: flex-start;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
    border: none;
    box-shadow: none;
    transition:
        flex-basis 0.28s ease,
        min-width 0.28s ease,
        max-width 0.28s ease,
        width 0.28s ease,
        opacity 0.22s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.42); /* Як у retrify-glass-panel */
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    font-family: 'Inter', sans-serif;
}

.retrify-chat-categories-pane.categories-pane-open {
    flex: 0 0 var(--retrify-categories-pane-width);
    width: var(--retrify-categories-pane-width);
    min-width: var(--retrify-categories-pane-width);
    max-width: var(--retrify-categories-pane-width);
    opacity: 1;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.45); /* Як у retrify-glass-panel */
    border-radius: 28px; /* Заокруглення з усіх боків */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 20px 40px -12px rgba(13, 13, 14, 0.15),
        0 0 0 1px rgba(13, 13, 14, 0.05);
    overflow: hidden;
}

@media (min-width: 769px) {
    .retrify-chat-categories-pane {
        --retrify-categories-top-offset: 4.85rem;
    }

    .retrify-chat-toolbar-strip,
    .retrify-chat-toolbar {
        position: relative;
        z-index: 40;
    }

    .retrify-chat-stage:has(.retrify-chat-categories-pane.categories-pane-open) .retrify-chat-toolbar__cluster--right {
        transform: translateX(calc(var(--retrify-categories-pane-width) + var(--retrify-chat-stage-gap)));
    }
}

.retrify-chat-center {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 auto;
}

.retrify-chat-toolbar {
    position: relative;
    z-index: 25;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.15rem;
    border-radius: 28px;
}

.retrify-chat-toolbar__cluster {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.retrify-chat-toolbar__cluster--right {
    justify-content: flex-end;
    position: relative;
    z-index: 45;
    transition: transform 0.28s ease;
}

/* Toolbar: one solid strip on desktop (labels + icons); compact icons on mobile */
.retrify-chat-toolbar-strip {
    width: 100%;
    box-sizing: border-box;
}

.retrify-chat-toolbar-strip .retrify-chat-toolbar {
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

@media (min-width: 769px) {
    .retrify-chat-toolbar-strip {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }

    .retrify-chat-toolbar-btn--mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .retrify-chat-toolbar-strip {
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(13, 13, 14, 0.08);
        border-radius: 18px;
        padding: 0.3rem 0.4rem;
        margin-bottom: 0.35rem;
        box-shadow: 0 2px 8px rgba(13, 13, 14, 0.05);
    }

    .retrify-chat-toolbar__label {
        display: none !important;
    }
}

.retrify-chat-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0d0d0e;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.retrify-chat-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.retrify-chat-toolbar-btn:focus-visible {
    outline: 2px solid rgba(14, 165, 233, 0.55);
    outline-offset: 2px;
}

.retrify-chat-toolbar-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.retrify-chat-toolbar__label {
    display: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 0.85;
}

@media (min-width: 769px) {
    .retrify-chat-toolbar__label {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .retrify-chat-toolbar-btn {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.46);
        background: rgba(255, 255, 255, 0.62);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.85),
            0 10px 22px -16px rgba(13, 13, 14, 0.35);
    }

    .retrify-chat-toolbar-btn:hover {
        background: rgba(255, 255, 255, 0.82);
    }

    .retrify-chat-toolbar-btn svg {
        width: 17px;
        height: 17px;
    }
}

.retrify-chat-title {
    margin: 0;
    text-align: center;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0D0D0E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#chat-mobile-subtitle {
    display: none;
}

@media (max-width: 768px) {
    #chat-mobile-subtitle {
        display: block;
        text-align: center;
        font-family: 'Inter', sans-serif;
        font-size: 0.75rem;
        font-weight: 400;
        color: #a0a0a8;
        padding: 0.25rem 1rem 0.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .retrify-chat-title {
        font-size: 0.9rem;
        max-width: 160px;
        opacity: 0.8;
    }
    
    /* Hide brand word on mobile when title is present if possible */
    /* But for now let's just make the title fit */
}

/* Energy Slider styling */
.retrify-energy-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(13, 13, 14, 0.08);
    border-radius: 10px;
    outline: none;
    margin: 1.5rem 0;
}

.retrify-energy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #D97706; /* Amber 600 */
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.15s ease;
}

.retrify-energy-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.retrify-energy-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #D97706;
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.retrify-prompt-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(13, 13, 14, 0.04);
    cursor: pointer;
}

.retrify-prompt-btn:hover {
    background: white;
    border-color: #f59e0b; /* Amber border on hover */
    color: #0D0D0E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 13, 14, 0.08);
}

.retrify-chat-icon-btn,
.retrify-chat-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.62);
    color: #0d0d0e;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 18px 30px -22px rgba(13, 13, 14, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.retrify-chat-icon-btn:hover,
.retrify-chat-action-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 24px 36px -24px rgba(13, 13, 14, 0.42);
}

.retrify-chat-icon-btn svg,
.retrify-chat-action-btn svg {
    width: 20px;
    height: 20px;
}

.retrify-chat-icon-btn {
    width: 48px;
    padding: 0;
}

.retrify-chat-icon-btn--pill {
    border-radius: 999px;
}

.retrify-chat-action-btn {
    gap: 0.7rem;
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.retrify-chat-panel {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    border-radius: 32px;
    overflow: hidden;
}

.retrify-chat-input-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.34);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
}

.retrify-chat-input-wrap > .flex {
    align-items: flex-start;
    align-content: flex-start;
}

.retrify-chat-input-wrap #message-input {
    min-height: 44px;
    max-height: 132px;
    line-height: 1.35;
    border-radius: 18px;
    border: 1px solid rgba(193, 201, 215, 0.9);
    background: rgba(255, 255, 255, 0.84);
    box-sizing: border-box;
    align-self: flex-start;
}

.retrify-chat-voice-btn,
.retrify-chat-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.retrify-chat-voice-btn {
    padding: 0 1rem;
    background: rgba(215, 217, 241, 0.55);
    color: #27324a;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.retrify-chat-send-btn {
    padding: 0 1.25rem;
    background: #0d0d0e;
    color: #fdfbf7;
    border: 1px solid rgba(13, 13, 14, 0.3);
    font-weight: 600;
}

.retrify-chat-drawer {
    position: fixed;
    top: 88px;
    bottom: 20px;
    z-index: 46;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background:
        linear-gradient(160deg, rgba(255,255,255,0.82), rgba(255,255,255,0.56));
    -webkit-backdrop-filter: blur(28px) saturate(125%);
    backdrop-filter: blur(28px) saturate(125%);
    box-shadow: 0 28px 60px -34px rgba(13, 13, 14, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.26s ease;
}

.retrify-chat-drawer--left {
    left: 20px;
    transform: translateX(-108%);
    border-radius: 28px;
}

/* Dialog list opens above the conversation (not shrinking the chat column) */
.retrify-chat-drawer--left.drawer-open,
.retrify-chat-drawer--left.mobile-open {
    z-index: 60;
}

#mobile-dialogs-overlay.active,
#mobile-dialogs-overlay.desktop-active {
    z-index: 55;
}

.retrify-chat-drawer--right {
    right: 20px;
    transform: translateX(108%);
    border-radius: 28px;
}

.retrify-chat-drawer.drawer-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Rounded panels: clip chrome to the same radius as .retrify-chat-drawer--* (desktop) */
@media (min-width: 769px) {
    .retrify-chat-drawer.retrify-chat-drawer--left,
    .retrify-chat-drawer.retrify-chat-drawer--right {
        overflow: hidden;
    }

    /* Slightly inset from 28px so the 1px border still reads cleanly */
    .retrify-chat-drawer--left > .retrify-chat-drawer-head,
    .retrify-chat-drawer--right > .retrify-chat-drawer-head {
        border-top-left-radius: 26px;
        border-top-right-radius: 26px;
    }

    .retrify-chat-drawer > .retrify-chat-drawer-body {
        border-bottom-left-radius: 26px;
        border-bottom-right-radius: 26px;
    }
}

.retrify-chat-drawer-head {
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.retrify-chat-drawer-body {
    scrollbar-gutter: stable;
    min-height: 0;
    flex: 1;
}

.mobile-sidebar-overlay.desktop-active {
    display: block;
    background-color: rgba(13, 13, 14, 0.12);
    opacity: 1;
}

@media (max-width: 768px) {
    /* Chat header on mobile */
    #chat-page > .retrify-dashboard-header {
        --header-max-width: 92vw;
        margin-bottom: 0.35rem;
    }

    #chat-page > .retrify-dashboard-header .retrify-header-right {
        gap: 0.35rem !important;
        flex-shrink: 1;
        justify-content: flex-end;
    }

    /* Generic mobile header start button - icon only */
    .retrify-start-conv-btn {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    .retrify-start-conv-btn .btn-text {
        display: none !important;
    }

    #chat-page > .retrify-dashboard-header .start-conv-menu {
        right: 0 !important;
        left: auto !important;
        width: 260px !important;
        z-index: 120;
    }

    #chat-page > .retrify-dashboard-header .start-conv-menu .text-gray-500 {
        display: none !important;
    }

    #chat-page > .retrify-dashboard-header .start-conv-menu button {
        padding: 0.6rem 1rem !important;
    }

    /*
     * z-index: auto — shell must not create a low stacking context; otherwise fixed drawers
     * stay under the header. Width unchanged from desktop #chat-page rules.
     */
    #chat-page .retrify-chat-shell {
        z-index: auto;
        width: min(100%, 92vw);
        max-width: 92vw;
    }

    #chat-page > .retrify-dashboard-header .retrify-logo-word {
        display: none;
    }

    #chat-page > .retrify-dashboard-header .retrify-profile-circle {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .retrify-chat-main {
        padding: 0.3rem 0 0;
    }

    .retrify-chat-center {
        gap: 0.4rem;
    }

    .retrify-chat-toolbar {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        padding: 0;
        border-radius: 0;
    }

    .retrify-chat-toolbar__cluster,
    .retrify-chat-toolbar__cluster--right {
        justify-content: space-between;
        gap: 0.35rem;
    }

    #chat-page .retrify-chat-toolbar-btn {
        width: 38px;
        min-width: 38px;
        max-width: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    #chat-page .retrify-chat-toolbar-btn svg,
    #chat-page .retrify-chat-action-btn svg {
        width: 17px;
        height: 17px;
    }

    .retrify-chat-action-btn {
        flex: 1;
        min-width: 0;
        min-height: 38px;
        justify-content: center;
        padding: 0 0.45rem;
        font-size: 0.78rem;
        border-radius: 12px;
    }

    .retrify-chat-action-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .retrify-chat-title,
    #chat-page #current-category-title {
        order: 0; /* Повертаємо в центр */
        font-size: 0.9rem;
        line-height: 1.25;
        font-family: 'Inter', system-ui, sans-serif;
    }

    .retrify-chat-panel {
        border-radius: 18px 18px 0 0;
    }

    .retrify-chat-input-wrap {
        padding: 0.45rem 0.5rem;
        border-top-width: 1px;
    }

    .retrify-chat-input-wrap .flex {
        flex-wrap: nowrap; /* Всі елементи в один ряд */
        gap: 0.5rem;
        align-items: center;
    }

    .retrify-chat-input-wrap #message-input {
        flex: 1; /* Великий інпут на весь простір */
        order: unset;
        min-height: 44px;
        max-height: 120px;
    }

    #chat-page .retrify-chat-voice-btn,
    #chat-page .retrify-chat-send-btn {
        width: 44px; /* Квадратна форма */
        height: 44px;
        min-height: 44px;
        flex: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    #chat-page .retrify-chat-send-btn span {
        display: none;
    }

    /*
     * Mobile chat drawers: must override desktop .retrify-chat-drawer--left/right
     * (left: 20px / right: 20px + translate) which appear later in the file.
     * Hidden off-canvas until .mobile-open; glass + radius on the inner edge only.
     */
    .retrify-chat-drawer.retrify-chat-drawer--left.mobile-dialogs-sidebar {
        top: 0;
        bottom: 0;
        left: -100%;
        right: auto;
        width: min(88vw, 300px);
        max-width: none;
        height: 100vh;
        height: 100dvh;
        transform: none;
        opacity: 1;
        pointer-events: none;
        z-index: 200;
        overflow: hidden;
        border-radius: 0 20px 20px 0;
        border-left: none;
        box-shadow: 8px 0 32px rgba(13, 13, 14, 0.12);
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
        -webkit-backdrop-filter: blur(28px) saturate(125%);
        backdrop-filter: blur(28px) saturate(125%);
        transition: left 0.28s ease, box-shadow 0.28s ease;
    }

    .retrify-chat-drawer.retrify-chat-drawer--left.mobile-dialogs-sidebar.mobile-open {
        left: 0;
        pointer-events: auto;
    }

    #chat-page .retrify-chat-drawer.retrify-chat-drawer--left.mobile-dialogs-sidebar {
        z-index: 200;
    }

    #chat-page #mobile-dialogs-overlay.active {
        z-index: 190;
    }

    /*
     * Categories on mobile: fixed right drawer + overlay (chat stays full width).
     * Overrides desktop in-flow flex width so the thread is not squeezed to ~50%.
     */
    #chat-page .retrify-chat-categories-pane {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        width: min(88vw, 300px);
        max-width: min(88vw, 300px);
        height: 100vh;
        height: 100dvh;
        flex: none !important;
        min-height: 0;
        margin: 0;
        transform: translateX(100%);
        opacity: 1;
        pointer-events: none;
        z-index: 200;
        overflow: hidden;
        border-radius: 20px 0 0 20px;
        border: 1px solid rgba(255, 255, 255, 0.36);
        border-right: none;
        box-shadow: -8px 0 32px rgba(13, 13, 14, 0.14);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
        -webkit-backdrop-filter: blur(28px) saturate(125%);
        backdrop-filter: blur(28px) saturate(125%);
        background: linear-gradient(200deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
    }

    #chat-page .retrify-chat-categories-pane.categories-pane-open {
        transform: translateX(0);
        pointer-events: auto;
        width: min(88vw, 300px) !important;
        min-width: min(88vw, 300px) !important;
        max-width: min(88vw, 300px) !important;
        flex: none !important;
    }

    .mobile-sidebar-overlay.desktop-active {
        display: none;
    }
}

.profile-status {
    font-size: 0.75rem;
    color: #6b7280;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0.5rem 0;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2C2C2E;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.5);
    color: #0D0D0E;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: #4b5563;
}

.dropdown-item:hover svg {
    color: #0D0D0E;
}

.logout-item {
    color: #ef4444 !important;
}

.logout-item svg {
    color: #ef4444 !important;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.05) !important;
}

.dropdown-menu:last-child .dropdown-item:last-child {
    border-radius: 0 0 18px 18px;
}

.retrify-profile-circle.small {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Switcher Styles */
.retrify-lang-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.retrify-lang-btn {
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.retrify-lang-btn:hover {
    color: #2C2C2E;
}

.retrify-lang-btn.is-active {
    background: white !important;
    color: #0D0D0E !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================ */
/* Facts Page — Warm Tech 2.0                                   */
/* ============================================================ */

.retrify-facts-page {
    --header-max-width: 1300px;
    --header-padding-x: 0rem;
    --header-padding-y: 0rem;
    --header-bg: transparent;
    --header-backdrop: none;
    --header-border: none;
    --header-margin-bottom: 1.5rem;
    --header-logo-size: 2.2rem;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    background-attachment: fixed;
    background-image:
        radial-gradient(ellipse 130% 110% at 15% -35%, rgba(185, 190, 235, 0.75) 0%, transparent 85%),
        radial-gradient(ellipse 90%  90%  at 0%  115%, rgba(255, 238, 214, 0.95) 0%, transparent 75%),
        radial-gradient(ellipse 100% 100% at 100% 100%, rgba(200, 205, 245, 0.6) 0%, transparent 80%),
        radial-gradient(circle at 60% 40%, rgba(215, 217, 241, 0.35) 0%, transparent 60%);
    font-family: 'Inter', system-ui, sans-serif;
    padding: 2rem;
    box-sizing: border-box;
}

.facts-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
}

/* Cold glass panels — neutral white, no yellow tint */
.facts-lifetree-col,
.facts-main-col {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(40px) saturate(130%);
    -webkit-backdrop-filter: blur(40px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.04);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.facts-col-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
}

.facts-col-header svg {
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0.5px 0 rgba(255, 255, 255, 0.9));
    color: #6b7280;
}

.facts-lifetree-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.75rem 2.5rem;
}

/* Facts list */
.facts-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.facts-state-msg {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.95rem;
    gap: 0.4rem;
    padding: 3rem;
    text-align: center;
}

.facts-state-msg__sub {
    font-size: 0.82rem;
    color: #d1d5db;
}

/* Mobile tabs — hidden on desktop */
.facts-mobile-tabs {
    display: none;
}

.facts-col-header--desktop-only {
    display: flex;
}

/* Mobile */
@media (max-width: 768px) {
    .retrify-facts-page .category-item {
        padding: 7px 10px;
        font-size: 0.9rem;
    }

    .retrify-facts-page .subcategory-item {
        padding: 5px 10px;
        font-size: 0.875rem;
    }

    .retrify-facts-page {
        padding: 1rem;
        --header-max-width: 100%;
        --header-margin-bottom: 1rem;
    }

    .facts-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .facts-lifetree-col {
        display: none;
    }

    .facts-lifetree-col.facts-mobile-active {
        display: flex;
    }

    .facts-main-col {
        display: flex;
    }

    .facts-main-col.facts-mobile-hidden {
        display: none;
    }

    .facts-mobile-tabs {
        display: flex;
        gap: 0.5rem;
        padding: 0 0 0.75rem 0;
        flex-shrink: 0;
    }

    .facts-tab-btn {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.45rem 1rem;
        border-radius: 99px;
        border: 1px solid rgba(255, 255, 255, 0.45);
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(12px);
        font-size: 0.85rem;
        font-weight: 500;
        color: #6b7280;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }

    .facts-tab-btn--active {
        background: #0D0D0E;
        color: white;
        border-color: #0D0D0E;
        box-shadow: none;
    }

    .facts-col-header--desktop-only {
        display: none;
    }
}

/* Fact item card — Warm Tech 2.0 cold glass */
.fact-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 0.65rem 0.75rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.fact-item:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.fact-item p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #2C2C2E;
    line-height: 1.55;
}

/* Fact date freshness colors — Warm Tech 2.0 palette */
.fact-date--fresh  { color: #6b74c4; } /* Lavender Mist accent */
.fact-date--aging  { color: #9198d6; } /* Lighter lavender */
.fact-date--stale  { color: #c0a090; } /* Muted warm tone */

/* Home button in header */
.retrify-header-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.retrify-header-home-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #0D0D0E;
}

/* Fact toggle switch */
.fact-toggle-track {
    display: inline-flex;
    align-items: center;
    width: 36px;
    height: 20px;
    border-radius: 99px;
    padding: 2px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.08);
}

.fact-toggle-track--on  { background: #6b74c4; border-color: #6b74c4; }
.fact-toggle-track--off { background: rgba(0,0,0,0.1); }

.fact-toggle-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.fact-toggle-track--on  .fact-toggle-thumb { transform: translateX(16px); }
.fact-toggle-track--off .fact-toggle-thumb { transform: translateX(0); }

/* Facts page — back to home bar */
.facts-back-bar {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto 0.75rem auto;
}

.facts-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    padding: 0.25rem 0;
    transition: color 0.15s;
}

.facts-back-btn:hover {
    color: #0D0D0E;
}

/* ============================================================ */
/* Calendar Page — Warm Tech 2.0                                */
/* ============================================================ */

.retrify-calendar-page {
    --header-max-width: 1400px;
    --header-padding-x: 0rem;
    --header-padding-y: 0rem;
    --header-bg: transparent;
    --header-backdrop: none;
    --header-border: none;
    --header-margin-bottom: 1.5rem;
    --header-logo-size: 2.2rem;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    background-attachment: fixed;
    background-image:
        radial-gradient(ellipse 130% 110% at 15% -35%, rgba(185, 190, 235, 0.75) 0%, transparent 85%),
        radial-gradient(ellipse 90%  90%  at 0%  115%, rgba(255, 238, 214, 0.95) 0%, transparent 75%),
        radial-gradient(ellipse 100% 100% at 100% 100%, rgba(200, 205, 245, 0.6) 0%, transparent 80%),
        radial-gradient(circle at 60% 40%, rgba(215, 217, 241, 0.35) 0%, transparent 60%);
    font-family: 'Inter', system-ui, sans-serif;
    padding: 2rem;
    box-sizing: border-box;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.25rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
}

/* Main calendar area */
.calendar-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

/* Toolbar */
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.calendar-toolbar__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0D0D0E;
}

.calendar-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.45);
}

.cal-btn--primary {
    background: #0D0D0E;
    color: white;
    border-color: #0D0D0E;
}

.cal-btn--primary:hover {
    background: #2C2C2E;
}

.cal-btn--ghost {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    color: #374151;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.cal-btn--ghost:hover {
    background: rgba(255,255,255,0.65);
    color: #0D0D0E;
}

/* Info note */
.calendar-info-note {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    border-radius: 16px;
    padding: 0.875rem 1.1rem;
    font-size: 0.82rem;
    color: #374151;
}

.calendar-info-note__title {
    font-weight: 600;
    color: #0D0D0E;
    margin-bottom: 0.4rem;
}

.calendar-info-note__list {
    list-style: disc;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #6b7280;
}

/* Calendar grid wrapper */
.calendar-grid-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.calendar-grid-inner {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.55),
        0 8px 32px rgba(0,0,0,0.04);
    border-radius: 24px;
    overflow: hidden;
}

/* Sidebar */
.calendar-sidebar {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(40px) saturate(130%);
    -webkit-backdrop-filter: blur(40px) saturate(130%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
        inset 1px 1px 0 rgba(255,255,255,0.55),
        0 8px 32px rgba(0,0,0,0.04);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-sidebar__section {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.calendar-sidebar__heading {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0D0D0E;
    margin-bottom: 0.25rem;
}

.calendar-sidebar__email {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Month nav */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.calendar-nav__month {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0D0D0E;
}

.calendar-nav__btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav__btn:hover {
    background: rgba(255,255,255,0.65);
    color: #0D0D0E;
}

/* Filter */
.calendar-filter__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.calendar-filter__select {
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    font-size: 0.85rem;
    color: #374151;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
}

.calendar-filter__select:focus {
    border-color: #6b74c4;
    box-shadow: 0 0 0 2px rgba(107,116,196,0.15);
}

/* Events list */
.calendar-sidebar__events {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.calendar-sidebar__events-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.calendar-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Override calendar internal styles to match glass theme */
#calendar-container table {
    width: 100%;
    border-collapse: collapse;
}

#calendar-container th {
    padding: 0.6rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

#calendar-container td {
    border: 1px solid rgba(0,0,0,0.05);
    vertical-align: top;
    min-height: 80px;
    padding: 0.3rem;
    font-size: 0.8rem;
}

#calendar-container td:hover {
    background: rgba(255,255,255,0.4);
}

#calendar-container .calendar-day-number {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.2rem;
}

#calendar-container .calendar-today .calendar-day-number {
    background: #0D0D0E;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Mobile */
@media (max-width: 768px) {
    .retrify-calendar-page {
        padding: 1rem;
        --header-max-width: 100%;
        --header-margin-bottom: 1rem;
    }

    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .calendar-sidebar {
        order: -1;
    }

    .calendar-sidebar__events {
        max-height: 200px;
    }
}

/* Calendar grid cells */
.cal-cell {
    min-height: 88px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.35rem;
    cursor: pointer;
    transition: background 0.15s;
    vertical-align: top;
}

.cal-cell:hover {
    background: rgba(255,255,255,0.45);
}

.cal-cell--empty {
    min-height: 88px;
    border: 1px solid rgba(0,0,0,0.04);
    background: rgba(0,0,0,0.015);
    cursor: default;
}

.cal-cell--today {
    background: rgba(107,116,196,0.06);
}

.cal-cell__day {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.2rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-cell__day--today {
    background: #0D0D0E;
    color: white;
    border-radius: 50%;
    font-weight: 600;
}

.cal-cell__events {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cal-cell__more {
    font-size: 0.7rem;
    color: #9ca3af;
    padding: 0 0.2rem;
}

/* Event chips */
.cal-event {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.cal-event__inactive { color: #ef4444; font-weight: 700; margin-right: 2px; }

.cal-event--default { background: rgba(107,116,196,0.12); color: #4b50a0; }
.cal-event--retro   { background: rgba(255,238,214,0.8);  color: #92400e; border: 1px solid rgba(255,220,180,0.6); }
.cal-event--c0 { background: rgba(107,116,196,0.15); color: #4b50a0; }
.cal-event--c1 { background: rgba(134,184,160,0.2);  color: #1a6b4a; }
.cal-event--c2 { background: rgba(180,130,210,0.18); color: #6b21a8; }
.cal-event--c3 { background: rgba(255,238,180,0.5);  color: #854d0e; }
.cal-event--c4 { background: rgba(255,180,200,0.25); color: #9d174d; }
.cal-event--c5 { background: rgba(150,160,230,0.2);  color: #3730a3; }

/* Calendar grid table header */
#calendar-container .cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

#calendar-container .cal-grid-header span {
    padding: 0.6rem 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#calendar-container .cal-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* Facts page lifetree — slightly more padding on desktop */
@media (min-width: 769px) {
    .retrify-facts-page .category-content {
        padding: 14px !important;
    }

    .retrify-facts-page .subcategory-content {
        padding: 10px 12px !important;
    }
}

/* Category tree — more spacing between items */
#category-tree,
#facts-lifetree-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================ */
/* Settings Page — Warm Tech 2.0                                */
/* ============================================================ */

.retrify-settings-page {
    --header-max-width: 860px;
    --header-padding-x: 0rem;
    --header-padding-y: 0rem;
    --header-bg: transparent;
    --header-backdrop: none;
    --header-border: none;
    --header-margin-bottom: 0rem;
    --header-logo-size: 2.2rem;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    background-attachment: fixed;
    background-image:
        radial-gradient(ellipse 130% 110% at 15% -35%, rgba(185, 190, 235, 0.75) 0%, transparent 85%),
        radial-gradient(ellipse 90%  90%  at 0%  115%, rgba(255, 238, 214, 0.95) 0%, transparent 75%),
        radial-gradient(ellipse 100% 100% at 100% 100%, rgba(200, 205, 245, 0.6) 0%, transparent 80%),
        radial-gradient(circle at 60% 40%, rgba(215, 217, 241, 0.35) 0%, transparent 60%);
    font-family: 'Inter', system-ui, sans-serif;
    padding: 2rem;
    box-sizing: border-box;
}

.settings-back-bar {
    max-width: 860px;
    width: 100%;
    margin: 0 auto 1.25rem auto;
}

.settings-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
}

/* Settings card */
.settings-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(120%);
    -webkit-backdrop-filter: blur(40px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.55),
        0 8px 32px rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 1.75rem;
}

.settings-card__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.4rem;
    color: #6b7280;
}

.settings-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0D0D0E;
}

.settings-card__desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

/* Model selector */
.settings-model-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.settings-model-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 1.5px solid rgba(0,0,0,0.07);
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.settings-model-btn:hover {
    background: rgba(255,255,255,0.75);
    border-color: rgba(107,116,196,0.3);
}

.settings-model-btn.active {
    background: rgba(107,116,196,0.1);
    border-color: #6b74c4;
    box-shadow: 0 0 0 3px rgba(107,116,196,0.1);
}

.settings-model-btn__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0D0D0E;
}

.settings-model-btn__desc {
    font-size: 0.78rem;
    color: #9ca3af;
}

.settings-model-btn.active .settings-model-btn__name {
    color: #4b50a0;
}

/* Style selector */
.settings-style-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.settings-style-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 1.5px solid rgba(0,0,0,0.07);
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.settings-style-btn:hover {
    background: rgba(255,255,255,0.75);
    border-color: rgba(107,116,196,0.3);
}

.settings-style-btn.active {
    background: rgba(107,116,196,0.1);
    border-color: #6b74c4;
    box-shadow: 0 0 0 3px rgba(107,116,196,0.1);
}

.settings-style-btn__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.settings-style-btn__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0D0D0E;
}

.settings-style-btn.active .settings-style-btn__name {
    color: #4b50a0;
}

.settings-style-btn__desc {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

/* Schedule */
.settings-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.settings-schedule__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.settings-schedule__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.settings-time-input,
.settings-select {
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(12px);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: #374151;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 130px;
}

.settings-time-input:focus,
.settings-select:focus {
    border-color: #6b74c4;
    box-shadow: 0 0 0 3px rgba(107,116,196,0.12);
}

.settings-save-btn {
    align-self: flex-end;
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    border: none;
    background: #0D0D0E;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-save-btn:hover {
    background: #2C2C2E;
}

.settings-save-btn.saved {
    background: #6b74c4;
}

@media (max-width: 768px) {
    .retrify-settings-page {
        padding: 1rem;
        --header-max-width: 100%;
    }

    .settings-layout,
    .settings-back-bar {
        max-width: 100%;
    }

    .settings-schedule__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .settings-time-input,
    .settings-select {
        width: 100%;
    }
}

/* VIP promo card */
.settings-vip-promo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.settings-vip-promo__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.settings-vip-promo__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0D0D0E;
    margin-bottom: 0.25rem;
}

.settings-vip-promo__desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.settings-vip-promo__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b74c4;
    text-decoration: none;
    border-bottom: 1px solid rgba(107,116,196,0.3);
    transition: color 0.15s, border-color 0.15s;
}

.settings-vip-promo__link:hover {
    color: #4b50a0;
    border-color: #4b50a0;
}
