@font-face {
    font-family: 'ZhiMangXingLocal';
    src: url('/assets/ZhiMangXing-Regular-xlWl2Bmu.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UnGungseoLocal';
    src: url('/assets/fonts/UnGungseo.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-family: 'ChosunGsLocal';
  src: url('/assets/fonts/ChosunGs/ChosunGs.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KizashiLocal';
  src: url('/assets/fonts/kizashi_0001/Kizashi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MasaFontLocal';
  src: url('/assets/fonts/MasaFont-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base Styles */
:root {
    --primary-color: #1A1A1A;
    --secondary-color: #3A3A3A;
    --accent-color: #007AFF;
    --background-color: #F8F8FA;
    --card-background: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #EBEBEB;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 深色模式已移除 */

/* Toast通知系统 */
#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    animation: toastIn 0.3s ease forwards;
}

.toast.toast-hiding {
    animation: toastOut 0.3s ease forwards;
}

.toast-success { background-color: #22c55e; }
.toast-error { background-color: #ef4444; }
.toast-warning { background-color: #f59e0b; }
.toast-info { background-color: #1f2937; }

@keyframes toastIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100%); }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overscroll-behavior: none;
    display: flex;
    justify-content: center;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbars but keep scrolling functionality */
body::-webkit-scrollbar {
    display: none;
}

/* Critical utility fallbacks.
   The app currently uses many Tailwind utility classes directly in HTML.
   These local definitions keep core layout, screen stacking, and hit-testing
   working even if the Tailwind CDN is unavailable in preview/app environments. */
.block { display: block !important; }
.flex { display: flex !important; }
.fixed { position: fixed !important; }
.absolute { position: absolute !important; }
.relative { position: relative !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }
.flex-col { flex-direction: column !important; }
.flex-grow { flex-grow: 1 !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.w-full { width: 100% !important; }
.max-w-md { max-width: 28rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.min-h-screen { min-height: 100vh !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }
.pointer-events-none { pointer-events: none !important; }
.opacity-0 { opacity: 0 !important; }
.text-center { text-align: center !important; }
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-50 { z-index: 50 !important; }
.transition-opacity { transition-property: opacity !important; }
.duration-300 { transition-duration: 0.3s !important; }
.duration-500 { transition-duration: 0.5s !important; }
.duration-700 { transition-duration: 0.7s !important; }
.hidden { display: none !important; }


/* 变爻标记样式 */
.changing-mark {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #007AFF;
}

.position-relative {
    position: relative;
}

.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
    letter-spacing: -0.02em;
}

/* Glass Effect Card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.glass-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Hexagram Styling */
.hexagram-line {
    height: 8px;
    width: 60px;
    background: transparent;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 阳爻样式 - 实线 */
.yang-line {
    height: 8px;
    width: 60px;
    background-color: #1A1A1A !important;
    border-radius: 4px;
    display: block;
}

/* 阴爻样式 - 断线 */
.yin-line {
    height: 8px;
    width: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important;
}

.yin-line span {
    height: 8px;
    width: 24px;
    background-color: #1A1A1A !important;
    border-radius: 4px;
    display: block;
}

/* 动爻行需要 position:relative 才能让 ::after 正确定位 */
.hexagram-line.changing-yang,
.hexagram-line.changing-yin {
    position: relative;
}

/* 老阳动爻标识 ○ — 垂直居中对齐爻条 */
.hexagram-line.changing-yang::after {
    content: "○";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--accent-color);
}

/* 老阴动爻标识 × — 垂直居中对齐爻条 */
.hexagram-line.changing-yin::after {
    content: "×";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--accent-color);
}

/* 表格中的变爻标识 */
td.changing-yang::after {
    content: "○";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--accent-color);
}

/* 左滑删除样式 */
.history-card-container {
    position: relative;
    overflow: hidden;
}

.history-card-container .glass-card {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.history-card-container .absolute {
    width: 120px;
    right: -120px;
}

.history-card-container .absolute button {
    width: 60px;
    height: 100%;
    border: none;
    outline: none;
    cursor: pointer;
}

td.changing-yin::after {
    content: "×";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--accent-color);
}

/* 卦象箭头样式 */
.hexagram-arrow {
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(156, 163, 175, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagram-arrow:hover {
    background-color: rgba(156, 163, 175, 0.2);
    transform: scale(1.1);
}

.hexagram-arrow svg {
    transition: stroke 0.3s ease;
}

.hexagram-arrow:hover svg {
    stroke: #6B7280;
}

/* 历史记录样式 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2; /* 标准属性，用于未来兼容性 */
}

#history-list .glass-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#history-list .glass-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.history-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6B7280;
}

/* Button States */
.method-btn.selected {
    background-color: transparent !important;
    color: #111827 !important;
    border-color: transparent !important;
    border-bottom-color: #111827 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Coin input buttons: minimal outline → sun/moon after interaction */
.coin-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid #e2dfdb;   /* unset/default: very light coin outline */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 180ms ease,
                transform 120ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.coin-btn[data-state="yang"] {
    border-color: #c9a32a;         /* gold ring = sun / 正面 */
}

.coin-btn[data-state="yin"] {
    border-color: #9ca3af;         /* silver ring = moon / 反面 */
}

.coin-btn:active {
    transform: scale(0.88);
}

#feedback-good-btn.selected, #feedback-bad.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Animation Effects */

/* ── Login tagline: switch to serif when language is English ─────── */
html[lang="en"] .login-tagline-h1 {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 24px !important;
    letter-spacing: 0.03em !important;
}

/* ── Logo SVG + line draw-in animation ───────────────────────────── */
.hx-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: -60px;
    opacity: 0;
    transform: translateY(10px) scale(0.94);
    animation:
        hxLogoIntro 1.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards 0.1s,
        hxFloat 6.8s ease-in-out infinite 2s;
    will-change: transform, opacity, filter;
}

.hx-logo-img {
    width: min(384px, 90vw);
    display: block;
    opacity: 1;
    filter: blur(6px) drop-shadow(0 0 0 rgba(17, 24, 39, 0));
    animation:
        hxLogoImageIntro 1.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards 0.1s,
        hxGlow 8s ease-in-out infinite 2.4s;
}

/* Rare, low-contrast light sweep */
.hx-logo-wrap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -95%;
    width: 32%;
    height: 200%;
    background: linear-gradient(
        108deg,
        transparent 20%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 80%
    );
    opacity: 0;
    animation: hxShimmer 11s ease-in-out infinite 4.5s;
    pointer-events: none;
}

@keyframes hxLogoIntro {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.94);
    }
    62% {
        opacity: 1;
        transform: translateY(-1px) scale(1.024);
    }
    82% {
        opacity: 1;
        transform: translateY(0) scale(0.996);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes hxLogoImageIntro {
    0% {
        opacity: 0;
        filter: blur(6px) drop-shadow(0 0 0 rgba(17, 24, 39, 0));
    }
    55% {
        opacity: 0.96;
        filter: blur(2px) drop-shadow(0 12px 24px rgba(17, 24, 39, 0.1));
    }
    72% {
        opacity: 1;
        filter: blur(0.6px) drop-shadow(0 13px 26px rgba(17, 24, 39, 0.12));
    }
    84% {
        opacity: 1;
        filter: blur(0) drop-shadow(0 5px 14px rgba(17, 24, 39, 0.06));
    }
    100% {
        opacity: 1;
        filter: blur(0) drop-shadow(0 6px 16px rgba(17, 24, 39, 0.08));
    }
}
@keyframes hxGlow {
    0%, 100% { filter: blur(0) drop-shadow(0 6px 16px rgba(17, 24, 39, 0.07)); }
    50% { filter: blur(0) drop-shadow(0 9px 22px rgba(17, 24, 39, 0.12)); }
}
@keyframes hxShimmer {
    0%, 72%, 100% {
        left: -95%;
        opacity: 0;
    }
    78% {
        opacity: 0.3;
    }
    92% {
        left: 128%;
        opacity: 0.12;
    }
}
@keyframes hxFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.008); }
}

.title-animation {
    opacity: 0;
    animation: fadeIn 1.3s ease forwards 0.9s;
}

.subtitle-animation {
    opacity: 0;
    animation: fadeIn 1.3s ease forwards 1.0s;
}

.welcome-divider {
    width: 32px;
    height: 1px;
    background: #d1d5db;
}

.start-button {
    opacity: 0;
    animation: fadeIn 1.3s ease forwards 1.1s;
}

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


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

/* Hexagram Animation */
.hexagram-animation {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hexagram-animation.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ── Paywall Modal ───────────────────────────────────────────── */
/* (animation handled via #paywall-sheet transition + is-open class below) */

/* Modal Animation */
#share-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

#share-modal.visible > div {
    transform: scale(1);
}

/* Aphorism — same timing as button */
#welcome-aphorism {
    opacity: 0;
    animation: fadeIn 1.3s ease forwards 1.1s;
}

/* Recent Activity Animation */
#recent-activity {
    transition-duration: 1.4s !important;
}
#recent-activity.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transform Arrow Animation */
.transform-arrow {
    animation: pulseArrow 2s infinite;
}

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

/* Screen sections: ensure content is not hidden behind bottom nav */
#analysis-screen > div,
#history-screen,
#profile-screen,
#settings-screen,
#about-screen,
#divination-input-screen {
    padding-bottom: 80px;
}

/* ── Bottom Navigation — text-only, minimal ────────── */
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 0 14px;
    color: #c0bbb4;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 200ms ease;
}

/* Small dot above label — visible only when active */
.nav-item::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: transparent;
    transition: background 200ms ease;
    flex-shrink: 0;
}

.nav-item span {
    font-size: 10px;
    letter-spacing: 0.04em;
    font-weight: 400;
    line-height: 1;
}

.nav-item.active {
    color: #1a1a1a;
}

.nav-item.active::before {
    background: #1a1a1a;
}

.nav-item.active span {
    font-weight: 600;
}

/* (coin-btn circle styles consolidated above) */

/* Analysis screen specific styles */


/* Responsive adjustments */
@media (max-width: 640px) {
    .max-w-md {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hexagram-display {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .transform-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .bottom-nav {
        padding: 8px 16px;
    }
    
    .nav-item {
        min-width: 50px;
        padding: 14px 4px 10px;
    }
}

/* 神煞信息样式 */
.spirits-info {
    overflow-x: auto;
}

.spirits-info div {
    text-align: left;
    line-height: 1.6;
    padding: 4px 0;
    word-wrap: break-word;
    font-size: 12px;
}

#spirits-row1, #spirits-row2 {
    white-space: normal;
    display: block;
    width: 100%;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    letter-spacing: 1px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Tablet breakpoint */
@media (min-width: 768px) {
    .max-w-md {
        max-width: 540px !important;
    }

    .glass-card {
        padding: 24px;
    }

    .bottom-nav {
        padding: 14px 0;
    }

    .nav-item {
        font-size: 13px;
    }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
    .max-w-md {
        max-width: 640px !important;
    }

    .glass-card {
        padding: 28px;
        border-radius: 16px;
    }

    .hexagram-display {
        gap: 3rem;
    }

    .analysis-section {
        font-size: 15px;
    }

    .bottom-nav {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }
}

/* ==================== UI 交互打磨 ==================== */

/* 1. 页面切换动画 */
.screen-enter {
    animation: screenFadeIn 0.3s ease-out forwards;
}

.screen-exit {
    animation: screenFadeOut 0.2s ease-in forwards;
}

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

@keyframes screenFadeOut {
    to { opacity: 0; transform: translateY(-8px); }
}

/* 2. 底部导航激活态 — 细点标记，取代粗横线 */
.nav-item.active::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #1a1a1a;
}

/* 3. 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

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

/* 4. 铜钱翻转动画（已移除） */

/* 6. 按钮触摸反馈增强 - 只对独立按钮生效，不影响容器 */
.start-button,
.method-btn,
.coin-btn,
#send-code-btn,
#phone-login-btn,
#feedback-good-btn,
#feedback-bad,
#copy-result,
#confirm-cancel,
#confirm-ok {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.start-button:active,
.method-btn:active,
#send-code-btn:active,
#phone-login-btn:active,
#feedback-good-btn:active,
#feedback-bad:active,
#copy-result:active,
#confirm-cancel:active,
#confirm-ok:active {
    transform: scale(0.96);
    opacity: 0.85;
}

.start-button:active {
    transform: scale(0.94);
}

/* 按钮按压动画类 */
.press-animation {
    transform: scale(0.97);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 7. 空状态浮动动画 */
.empty-state-icon {
    animation: floatIcon 3s ease-in-out infinite;
}

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

/* 9. 分析结果渐入 CSS class */
.analysis-fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.analysis-fade-in.visible {
    opacity: 1 !important;
    visibility: visible;
    transform: translateY(0);
}

/* 10. 免责声明 */
.disclaimer-text {
    font-size: 10px;
    line-height: 1.5;
    color: #9ca3af;
    text-align: center;
    padding: 12px 20px 20px;
    opacity: 0.7;
}

/* 11. 模态框弹入动画 */
.modal-enter {
    animation: modalFadeIn 0.25s ease-out forwards;
}

.modal-enter > div {
    animation: modalScaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

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

/* 11. 历史卡片入场动画 */
.history-card-container {
    animation: cardSlideIn 0.3s ease-out both;
}

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

/* 12. 输入框聚焦效果增强 */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(120, 113, 108, 0.2);
    border-color: #a8a29e !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* 13. 方法按钮切换过渡 */
.method-btn {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.method-btn:active {
    transform: scale(0.95);
}

/* 14. 删除记录滑出动画 */
.history-card-removing {
    animation: cardRemove 0.3s ease-in forwards;
}

@keyframes cardRemove {
    to { opacity: 0; transform: translateX(-100%); height: 0; margin: 0; padding: 0; overflow: hidden; }
}

/* 15. 反馈按钮选中动效 */
#feedback-good-btn, #feedback-bad {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* 隐藏滚动条 — 全局 */
html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: hidden;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

.scrollbar-hide {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

/* ── Share Bottom Sheet ─────────────────────────────────────────────────── */
#share-panel-overlay {
    opacity: 0;
    transition: opacity .3s ease;
}
#share-panel {
    transition: transform .32s cubic-bezier(.32,1,.34,1);
    will-change: transform;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#template-scroll::-webkit-scrollbar { display: none; }
#template-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* Template active ring */
.tpl-btn--active { box-shadow: 0 0 0 2px #c8a86e44; }

/* ── Share card template themes ─────────────────────────────────────────── */

/* Preview image container aspect ratio */
#share-preview-img { aspect-ratio: 3/4; object-fit: cover; }

/* ── Share Card: base reset (wrappers control all layout) ─────────────── */
#share-card-template {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

/* Hide all wrappers by default; active template class shows its own */
.receipt-wrapper, .amulet-wrapper, .energy-wrapper { display: none; }

/* ════════════════════════════════════════════════════════════════════════════
   TEMPLATE A — RECEIPT  宇宙小票
   Thermal printer receipt aesthetic, Courier New monospace, CSS barcode.
   ════════════════════════════════════════════════════════════════════════════ */
#share-card-template.tpl-receipt .receipt-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FAFAF7;
  color: #111;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  padding: 28px 24px 20px;
  width: 100%;
  box-sizing: border-box;
}
.rc-store-name {
  font-size: 14px; font-weight: 700; text-align: center;
  letter-spacing: 3px; line-height: 1.5; margin-bottom: 4px;
}
.rc-tagline {
  font-size: 8px; color: #666; letter-spacing: 1.5px;
  text-align: center; margin-bottom: 10px;
}
.rc-divider {
  width: 100%; border-top: 1px solid #222;
  margin: 8px 0;
}
.rc-divider-dashed {
  width: 100%; border-top: 1px dashed #888;
  margin: 8px 0;
}
.rc-meta { width: 100%; line-height: 1.9; font-size: 10px; }
.rc-items { width: 100%; }
.rc-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  line-height: 1.7; font-size: 10px; gap: 8px;
}
.rc-item-key { color: #555; flex-shrink: 0; }
.rc-item-q span:last-child { font-size: 9px; color: #444; text-align: right; max-width: 60%; }
.rc-verdict-section { width: 100%; }
.rc-verdict-label { font-size: 10px; color: #555; text-align: center; margin-bottom: 4px; }
.rc-verdict-body {
  font-size: 10.5px; line-height: 1.8; color: #1a1a1a;
  word-break: break-all; white-space: pre-wrap;
}
.rc-footer-meta { width: 100%; line-height: 1.9; font-size: 10px; }
.rc-barcode-wrap { width: 100%; text-align: center; margin-top: 6px; }
.rc-barcode {
  display: flex; align-items: flex-end; justify-content: center;
  height: 40px; gap: 1px;
}
/* Barcode bars */
.bc-b { display: inline-block; background: #111; height: 100%; }
.bc-s { display: inline-block; background: transparent; height: 100%; }
.bc-b.w1, .bc-s.w1 { width: 1px; }
.bc-b.w2, .bc-s.w2 { width: 2px; }
.bc-b.w3, .bc-s.w3 { width: 3px; }
.bc-b     { width: 1.5px; }
.bc-s     { width: 1px; }
.rc-barcode-num {
  font-size: 7px; color: #888; letter-spacing: 1px; margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════════════
   TEMPLATE B — AMULET  锁屏御守
   9:16 phone lockscreen aesthetic, deep red, vertical verdict text.
   ════════════════════════════════════════════════════════════════════════════ */
#share-card-template.tpl-amulet .amulet-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: #8B0000;
  color: #FFE8C0;
  min-height: 640px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 24px 32px;
  overflow: hidden;
}
.am-clock-space { height: 80px; flex-shrink: 0; }
.am-bagua-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 280px; opacity: 0.06;
  pointer-events: none; user-select: none; line-height: 1;
}
.am-brand {
  font-size: 9px; letter-spacing: 3px; color: rgba(255,232,192,0.5);
  text-align: center; margin-bottom: 20px; position: relative; z-index: 1;
}
.am-hex-wrap {
  text-align: center; margin-bottom: 16px; position: relative; z-index: 1;
}
.am-hex-symbols {
  font-size: 36px; letter-spacing: 12px; color: #FFD580;
  display: block; margin-bottom: 6px;
}
.am-hex-names {
  font-size: 13px; letter-spacing: 4px; color: #FFE8C0;
  font-family: 'STSong', 'Songti SC', serif;
}
.am-question-text {
  font-size: 11px; color: rgba(255,232,192,0.7);
  letter-spacing: 2px; margin-bottom: 24px;
  text-align: center; position: relative; z-index: 1;
}
#am-verdict {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: 'STSong', 'Songti SC', 'SimSun', serif;
  font-size: 18px; line-height: 2.2; letter-spacing: 4px;
  color: #FFE8C0; text-align: center;
  max-height: 280px; overflow: hidden;
  position: relative; z-index: 1;
  flex: 1;
}
.am-bottom-seal {
  margin-top: auto; padding-top: 20px; text-align: center;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,232,192,0.2); width: 100%;
}
.am-seal-text {
  font-size: 9px; letter-spacing: 3px; color: rgba(255,232,192,0.6);
}
.am-seal-sub {
  font-size: 8px; color: rgba(255,232,192,0.35); margin-top: 4px; letter-spacing: 1px;
}

/* ════════════════════════════════════════════════════════════════════════════
   TEMPLATE C — ENERGY  五行能量面板
   Dark tech panel, five Wu-Xing progress bars, cyan glow.
   NO backdrop-filter (html2canvas incompatible).
   ════════════════════════════════════════════════════════════════════════════ */
#share-card-template.tpl-energy .energy-wrapper {
  display: flex;
  flex-direction: column;
  background: #0a0b10;
  color: #e0e8f0;
  padding: 28px 24px 24px;
  width: 100%;
  box-sizing: border-box;
}
.en-header { margin-bottom: 20px; }
.en-title {
  font-size: 15px; font-weight: 700; color: #00f3ff;
  letter-spacing: 3px; text-shadow: 0 0 10px rgba(0,243,255,0.6);
}
.en-subtitle {
  font-size: 10px; color: rgba(0,243,255,0.55);
  letter-spacing: 1.5px; margin-top: 4px;
}
.en-bars { margin-bottom: 20px; }
.en-bar-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.en-bar-label {
  width: 14px; font-size: 13px; font-weight: 700; text-align: center; flex-shrink: 0;
}
.en-gold  { color: #ffd700; }
.en-wood  { color: #22c55e; }
.en-water { color: #38bdf8; }
.en-fire  { color: #f97316; }
.en-earth { color: #ca8a04; }
.en-bar-track {
  flex: 1; height: 8px; background: rgba(255,255,255,0.07);
  border-radius: 4px; overflow: hidden;
}
.en-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width .4s ease;
}
.en-bar-fill.gold  { background: linear-gradient(90deg, #b8860b, #ffd700); box-shadow: 0 0 6px rgba(255,215,0,0.5); }
.en-bar-fill.wood  { background: linear-gradient(90deg, #15803d, #22c55e); box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.en-bar-fill.water { background: linear-gradient(90deg, #0369a1, #38bdf8); box-shadow: 0 0 6px rgba(56,189,248,0.5); }
.en-bar-fill.fire  { background: linear-gradient(90deg, #c2410c, #f97316); box-shadow: 0 0 6px rgba(249,115,22,0.5); }
.en-bar-fill.earth { background: linear-gradient(90deg, #92400e, #ca8a04); box-shadow: 0 0 6px rgba(202,138,4,0.5); }
.en-bar-val {
  width: 32px; font-size: 10px; color: rgba(224,232,240,0.6);
  text-align: right; flex-shrink: 0; font-family: monospace;
}
.en-question-panel {
  font-size: 10px; color: rgba(0,243,255,0.5);
  letter-spacing: 2px; margin-bottom: 12px;
  border-top: 1px solid rgba(0,243,255,0.12);
  padding-top: 12px;
}
.en-verdict-panel {
  font-size: 11.5px; line-height: 1.9; color: #c8d8e8;
  background: rgba(0,243,255,0.04);
  border: 1px solid rgba(0,243,255,0.12);
  border-radius: 6px; padding: 12px;
  word-break: break-all;
}
.en-footer {
  display: flex; justify-content: space-between;
  font-size: 8px; color: rgba(0,243,255,0.3);
  letter-spacing: 1.5px; margin-top: 16px;
}

/* Bottom Sheet upgrade */
#share-panel { max-height: 90vh; overflow-y: auto; }
.social-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.social-icon-btn .icon-circle {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.social-icon-btn:active .icon-circle { opacity: .75; }
.social-icon-btn span { font-size: 10px; color: #666; }

/* Inspiration Cards */
#inspiration-container .insp-card {
  border-radius: 14px; padding: 18px 20px;
  border: 1px solid rgba(0,0,0,0.07);
  background: white;
}
.insp-breathe { animation: inspBreath 3s ease-in-out infinite; }
@keyframes inspBreath {
  0%,100% { opacity: .7; } 50% { opacity: 1; }
}
.shortcut-card {
  flex: 1; padding: 14px; border-radius: 12px;
  border: 1px solid #e5e7eb; background: #f9fafb;
  cursor: pointer; text-align: left; transition: background .15s;
}
.shortcut-card:active { background: #f0f1f3; }

/* ── Zen Tutorial Onboarding ───────────────────────────────────────────────── */
@keyframes zenBreathe {
  0%, 100% { opacity: 0.28; }
  50%       { opacity: 0.78; }
}
.tutorial-breathe {
  animation: zenBreathe 3.6s ease-in-out infinite;
}

/* ============================================================
   2.0 ANIMATION SYSTEM
   ============================================================ */

/* Design tokens for 2.0 */
:root {
  --anim-fast: 150ms;
  --anim-normal: 300ms;
  --anim-slow: 500ms;
  --anim-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --anim-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --anim-enter: cubic-bezier(0, 0, 0.2, 1);
}

/* ── 1. Home brand entrance ──────────────────────────────── */
@keyframes brandFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.brand-enter {
  animation: brandFadeIn var(--anim-slow) var(--anim-ease) both;
}

.card-enter {
  animation: cardSlideUp var(--anim-normal) var(--anim-ease) both;
}

.card-enter-delay-1 {
  animation: cardSlideUp var(--anim-normal) var(--anim-ease) 80ms both;
}

.card-enter-delay-2 {
  animation: cardSlideUp var(--anim-normal) var(--anim-ease) 160ms both;
}

.card-enter-delay-3 {
  animation: cardSlideUp var(--anim-normal) var(--anim-ease) 240ms both;
}

/* ── 2. Method selector switch ────────────────────────────── */
.method-btn {
  transition: border-color var(--anim-fast) var(--anim-ease),
              background-color var(--anim-fast) var(--anim-ease),
              transform var(--anim-fast) var(--anim-ease);
}

.method-btn.selected {
  color: #111827 !important;
  background-color: transparent !important;
  border-color: transparent !important;
  border-bottom-color: #111827 !important;
  border-bottom-width: 2px !important;
  transform: none !important;
  box-shadow: none !important;
}

.method-btn:active {
  transform: scale(0.98);
}

/* ── 3. Time picker modal ─────────────────────────────────── */
#time-picker-modal {
  transition: opacity var(--anim-normal) var(--anim-ease);
}

#time-picker-modal > div {
  transition: transform var(--anim-normal) var(--anim-spring);
}

#time-picker-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── 4. Line result display ───────────────────────────────── */
.line-result {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.line-result.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Number input placeholder ─────────────────────────────── */
.num-line-input::placeholder {
  color: #d4d0cb;
  font-weight: 400;
  letter-spacing: 0.15em;
}

/* ── 5. Submit loading state ──────────────────────────────── */
@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.analyzing-pulse {
  animation: pulseText 1.5s ease-in-out infinite;
}

/* ── 6. Instant result page entry ─────────────────────────── */
@keyframes resultSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

#instant-result-screen .result-enter {
  animation: resultSlideIn var(--anim-slow) var(--anim-enter) both;
}

/* ── 7. Full reading sections ─────────────────────────────── */
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-reveal {
  animation: sectionReveal var(--anim-normal) var(--anim-ease) both;
}

.section-reveal-1 { animation-delay: 0ms;   }
.section-reveal-2 { animation-delay: 80ms;  }
.section-reveal-3 { animation-delay: 160ms; }
.section-reveal-4 { animation-delay: 240ms; }
.section-reveal-5 { animation-delay: 320ms; }

/* ── 8. (removed — paywall uses transition, see #paywall-sheet below) ── */

/* ── 9. Share success feedback ────────────────────────────── */
@keyframes shareSuccess {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.share-success-bounce {
  animation: shareSuccess 400ms var(--anim-spring);
}

/* ── 10. Coin onboarding modal ────────────────────────────── */
#coin-onboarding-modal > div {
  animation: sheetUp var(--anim-normal) var(--anim-spring) both;
}

.coin-ob-page {
  transition: opacity var(--anim-normal) var(--anim-ease),
              transform var(--anim-normal) var(--anim-ease);
}

.coin-ob-page.leaving {
  opacity: 0;
  transform: translateX(-24px);
}

.coin-ob-page.entering {
  animation: cardSlideUp var(--anim-normal) var(--anim-ease) both;
}

/* ── Daily Guidance Card ──────────────────────────────────── */
#daily-guidance-card {
  transition: opacity var(--anim-normal) var(--anim-ease);
}

/* ── Method selector 2.0 ──────────────────────────────────── */
.method-btn.selected span.text-sm {
  color: #111827;
}

/* ── Paywall plan selection ───────────────────────────────── */
.paywall-plan-btn.selected {
  border-color: #111827;
  border-width: 2px;
  background-color: #f9fafb;
}

/* ── Glass card upgrade ───────────────────────────────────── */
.glass-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ── Instant result hexagram mini display ────────────────── */
#instant-original-hex .hex-line-yang {
  height: 6px;
  width: 48px;
  background-color: #111827;
  border-radius: 3px;
  margin: 2px auto;
}

#instant-original-hex .hex-line-yin {
  height: 6px;
  width: 48px;
  display: flex;
  justify-content: space-between;
  margin: 2px auto;
}

#instant-original-hex .hex-line-yin span {
  height: 6px;
  width: 20px;
  background-color: #111827;
  border-radius: 3px;
}

/* Profile membership stat boxes */
#profile-readings-left,
#profile-bonus-credits {
  font-variant-numeric: tabular-nums;
}

/* Share progress bars active state */
.share-prog-active {
  background-color: #111827 !important;
}

/* ── Scrollbar hide utility ───────────────────────────────── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── 万事贞明 brush-writing loading animation ───────────────── */
/*
 * Three-phase calligraphy reveal:
 *   Phase 1 (0–10%):   clip-path wipe begins, blur=4px simulates wet ink landing on paper
 *   Phase 2 (10–65%):  wipe continues, blur dissolves as ink settles, ink-bloom shadow fades
 *   Phase 3 (65–100%): clip fully open, blur=0, shadow gone — dry, crisp stroke
 * Per-char duration 0.72s × 4 chars × 0.38s stagger ≈ 1.9s total (EN: 0.45s stagger ≈ 2.1s)
 */
@keyframes brushWrite {
  0%   {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(4px);
    text-shadow: 0 0 18px rgba(44, 41, 37, 0.55);
  }
  8%   { opacity: 1; }
  55%  {
    filter: blur(0.6px);
    text-shadow: 0 0 5px rgba(44, 41, 37, 0.12);
  }
  100% {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
    filter: blur(0);
    text-shadow: none;
  }
}
@keyframes brushFadeIn {
  0%   { opacity: 0; transform: translateY(3px); }
  100% { opacity: 0.3;  transform: translateY(0); }
}
.wzzzm-char {
  /* 楷体栈：有底蕴、流畅，彻底废除宋体印刷感 */
  font-family: 'Kaiti SC', 'STKaiti', 'Kaiti', 'PingFang SC', sans-serif;
  font-size: 3.2rem;          /* ≈ text-5xl — 足够分量 */
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #2c2925;
  opacity: 0;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  /* Exponential ease-out: fast brush entry, long graceful settle */
  animation: brushWrite 1.06s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: clip-path, filter;
}
.wzzzm-char.lang-ko {
  font-family: 'ChosunGsLocal', '조선궁서체', 'UnGungseoLocal', 'UnGungseo', '은 궁서', '궁서', 'Gungsuh', serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
.wzzzm-subtitle {
  opacity: 0;
  transform: translateY(3px);
  animation: brushFadeIn 1.1s ease forwards;
  animation-delay: 2.35s;
}

/* ── 神煞 chip layout ──────────────────────────────────────── */
.spirits-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 2px;
}
.spirits-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.spirits-name {
  font-size: 10px;
  font-weight: 600;
  color: #374151;
}
.spirits-zhi {
  font-size: 9px;
  font-weight: 400;
  color: #9ca3af;
}

/* ── Task 2: Premium frosted-glass paywall ──────────────────── */
#analysis-lock-container {
  position: relative;
}

/* Blur overlay anchored to #analysis-lock-container (the text box itself).
   top:-20px bleeds slightly into the card gap above — no hardcoded screen offsets. */
#analysis-blur-gradient {
  position: absolute;
  /* Start coverage 72px from top — shows ~2 teaser lines, hides everything below */
  top: 72px;
  left: -24px;
  right: -24px;
  bottom: -32px;
  z-index: 20 !important;
  pointer-events: none;
  /* Strong gradient: quickly becomes fully opaque — no dependency on backdrop-filter */
  background: linear-gradient(
    to bottom,
    transparent                0%,
    rgba(250,250,248,0.92)    14%,
    #fafaf8                   28%,
    #fafaf8                  100%
  );
  border: none !important;
  box-shadow: none !important;
}

/* ── Premium AI-loading animation inside analysis section ─────── */
@keyframes analysisRingSpin {
  to { transform: rotate(360deg); }
}
@keyframes analysisRingBreath {
  0%, 100% { opacity: 0.28; transform: scale(0.9) rotate(0deg); }
  50%       { opacity: 0.65; transform: scale(1)   rotate(180deg); }
}
.analysis-breath-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #b5b0aa;
  border-top-color: transparent;
  border-right-color: rgba(181, 176, 170, 0.35);
  animation: analysisRingSpin 2.6s linear infinite;
}
.analysis-breath-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9ca3af;
  animation: analysisRingBreath 2.6s ease-in-out infinite;
}

/* ── Focus styles ─────────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(120, 113, 108, 0.18) !important;
  border-color: #a8a29e !important;
}

/* Fix browser autofill blue background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1c1917 !important;
  background-color: #ffffff !important;
}

/* ── Transition for screen navigation ────────────────────── */
section[id$="-screen"] {
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

#login-screen {
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  opacity: 1 !important;
}

/* Paywall bottom sheet — transition-based, driven by .is-open */
#paywall-sheet {
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.10);
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1),
              max-height 0.32s ease,
              border-radius 0.32s ease;
  will-change: transform;
}
#paywall-modal.is-open #paywall-sheet {
  transform: translateY(0);
}
/* Expand to fullscreen when user scrolls content */
#paywall-sheet.expanded {
  max-height: 100dvh !important;
  border-radius: 0 !important;
}
/* Push handle below the status bar when fullscreen */
#paywall-sheet.expanded::before {
  content: '';
  display: block;
  flex-shrink: 0;
  height: env(safe-area-inset-top, 0px);
  min-height: 0;
}

/* Generic screen fade-in (used by showScreen's screen-enter class) */
.screen-enter {
  animation: screenSlideIn 0.38s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes screenSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Global input / form normalization ──────────────────────── */
input, textarea {
  -webkit-appearance: none;
  appearance: none;
  outline: none !important;
  box-shadow: none !important;
}
/* Restore native arrow for select dropdowns */
select {
  outline: none !important;
  box-shadow: none !important;
}
input:focus, textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* Suppress browser autocomplete yellow/blue tint */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 40px #fafaf8 inset !important;
  -webkit-text-fill-color: #1a1a1a !important;
  transition: background-color 5000s ease-in-out 0s;
}
/* Bottom border focus inputs — custom elegant focus */
input.focus\:border-gray-900:focus {
  border-bottom-color: #1a1a1a !important;
}
