/* assets/css/menu.css */
* { box-sizing: border-box; }
:root {
    --menu-bg: #f8f9fa;
    --menu-border: #ddd;
    --menu-text: #333;
    --menu-hover: #e9ecef;
    --menu-primary: #2ecc71;
    --menu-width: 250px;
    --menu-collapsed-width: 60px;
    --header-height: 55px;
    --primary-green: #2ecc71;
    --primary-red: #e74c3c;
    --background-white: #ffffff;
    --premium-gradient: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.04);
}

body { display: flex; margin: 0; padding: 0; height: 100vh; overflow: hidden; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #ffffff; color: var(--menu-text); flex-direction: row;}

.main-content { 
    flex: 1; 
    padding: 20px; 
    margin-top: var(--header-height); 
    overflow-y: auto; 
    overflow-x: hidden; 
    box-sizing: border-box; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background: #fdfdfd; 
    transition: margin-left 0.3s ease; 
    max-width: 100%;
}

/* プレミアム・アプリカード */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--premium-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(46, 204, 113, 0.2);
}

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

.app-card-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 8px;
    transition: transform 0.3s;
}

.app-card:hover .app-card-icon-wrap {
    transform: rotate(-10deg) scale(1.1);
    background: var(--premium-gradient);
    color: white;
}

.app-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.app-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.card-actions {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
@media (min-width: 769px) {
    .main-content { padding: 40px; }
}

/* ページタイトル表示 (ヘッダー下) */
.page-header-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 0 10px;
    animation: fadeInPageTitle 0.5s ease-out;
}
.page-header-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
}
.page-header-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--menu-primary);
    border-radius: 2px;
}
@keyframes fadeInPageTitle {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .page-header-container { margin-bottom: 15px; }
    .page-header-title { font-size: 1.3rem; }
}
.page-header-container.in-fixed {
    text-align: left;
    margin-bottom: 10px;
    padding-bottom: 0;
}
.page-header-container.in-fixed .page-header-title::after {
    left: 0;
    transform: none;
}

/* グローバルヘッダー (PC・スマホ共通) */
#app-header {
    display: flex;
    width: 100%;
    height: var(--header-height);
    background: var(--menu-bg);
    border-bottom: 1px solid var(--menu-border);
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5000;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; align-items: center; gap: 15px; }

.hamburger-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--menu-text); padding: 5px; margin: 0;}
#app-title { font-weight: bold; color: var(--menu-primary); font-size: 1.1rem; white-space: nowrap; margin: 0;}
.title-short { display: none; }
@media (max-width: 600px) {
    .title-full { display: none; }
    .title-short { display: inline-block; }
}

/* ヘッダー・サイドバー内のボタン共通 */
.header-btn, .sidebar-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    transition: background 0.2s;
    white-space: nowrap;
}
.header-btn:hover, .sidebar-btn:hover { background: #e9ecef; }
.btn-charge-accent { background: var(--menu-primary); color: #fff; border-color: var(--menu-primary); }
.btn-charge-accent:hover { background: #27ae60; }
.header-points-display { font-weight: bold; font-size: 1.1rem; color: #e74c3c; white-space: nowrap; display: flex; align-items: center; gap: 4px;}

/* プレミアム告知パネル (スリム・グラスモフィズム仕様) */
.home-notice-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    padding: 20px 40px;
    margin: 20px auto 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1040px;
    width: 95%; /* 左右に少し余白を持たせる */
    box-sizing: border-box; /* パディングを含めた幅計算 */
    position: relative;
    overflow: hidden; /* 再び hidden にし、中身がはみ出ないように制御 */
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-shrink: 0; /* 圧縮を防止 */
    height: auto;   /* 内容に応じて高さを確保 */
    min-height: fit-content;
}

.home-notice-left {
    flex: 1;
    text-align: left;
}

.home-notice-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: fit-content;
}

.home-notice-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.home-beta-disclaimer {
    font-size: 10px;
    color: #6b7280;
    margin-top: 6px;
    opacity: 0.8;
}

.no-break {
    display: inline-block;
}

.home-notice-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background: var(--premium-gradient);
    border-radius: 28px 0 0 28px;
}

.home-charge-status {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    width: auto;
    z-index: 21;
}

.status-badge {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.status-badge.wait {
    border-color: rgba(231, 76, 60, 0.2);
    background: rgba(231, 76, 60, 0.05);
    color: #e74c3c;
}

/* プレミアムボタン */
.btn-home-charge {
    background: var(--premium-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(46, 204, 113, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-home-charge:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(46, 204, 113, 0.5);
    filter: brightness(1.1);
}

.btn-home-charge:active:not(:disabled) {
    transform: translateY(-1px);
}

/* モバイル対応：告知パネルのスタック表示 */
@media (max-width: 768px) {
    .home-notice-container {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        text-align: center;
    }
    .home-notice-left {
        text-align: center;
    }
    .home-notice-right {
        align-items: center;
        width: 100%;
    }
    .home-charge-status {
        justify-content: center;
    }
    .home-notice-text {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    .btn-home-charge {
        font-size: 0.85rem;
        padding: 12px 16px;
        white-space: nowrap;
        width: auto;
        max-width: 100%;
        letter-spacing: -0.02em;
    }
}

.status-badge {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ヘッダーのポイント表示をよりはっきりと */
.header-points-display {
    font-weight: 800;
    font-size: 1.2rem;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    padding: 4px 12px;
    border-radius: 10px;
    border: 1px solid rgba(231, 76, 60, 0.1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

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

/* スマホ用メニューアクションの非表示（PC時） */
.mobile-actions { display: none; padding-bottom: 15px; border-bottom: 1px solid var(--menu-border); margin-bottom: 10px;}
.mobile-actions .sidebar-btn { width: 100%; margin-bottom: 8px; }

/* 共通サイドバー */
#app-sidebar {
    width: var(--menu-width);
    height: calc(100vh - var(--header-height)); 
    height: calc(100dvh - var(--header-height));
    margin-top: var(--header-height); 
    background-color: var(--menu-bg);
    border-right: 1px solid var(--menu-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 4999;
}

/* 折りたたみ状態 (PC) */
body.sidebar-collapsed #app-sidebar { width: var(--menu-collapsed-width); }
body.sidebar-collapsed #app-sidebar-title { display: none; }
body.sidebar-collapsed .nav-text { display: none; }
body.sidebar-collapsed .nav-item { 
    justify-content: center; 
    padding: 15px 0;
    border-left: none !important;
    width: var(--menu-collapsed-width) !important; /* スクロールバーに影響されない固定幅 */
    box-sizing: border-box;
}
body.sidebar-collapsed .nav-icon { 
    margin-right: 0; 
    font-size: 1.6rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
body.sidebar-collapsed .sidebar-toggle-btn { transform: scaleX(-1); }

/* 折りたたみ時はスクロールバーによるズレを防ぐため非表示にする */
.sidebar-collapsed .nav-list::-webkit-scrollbar {
    width: 0;
    display: none;
}
.sidebar-collapsed .nav-list {
    scrollbar-width: none; /* Firefox */
}

/* ヘッダーエリア（サイドバー内） */
.sidebar-header {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--menu-border);
}
#app-sidebar-title { font-size: 1.1rem; color: var(--menu-primary); margin: 0; font-weight: bold; white-space: nowrap; overflow: hidden; }
.sidebar-toggle-btn { background: none; border: none; cursor: pointer; font-size: 16px; color: #888; padding: 5px; transition: transform 0.2s;}

/* ナビメニューリスト */
ul.nav-list { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column;}
li.nav-item-container { margin: 0; position: relative;}
.nav-item {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--menu-text);
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
    transition: background-color 0.2s, border-left-color 0.2s;
    user-select: none;
}
.nav-item:hover { background-color: var(--menu-hover); border-left-color: var(--menu-primary); }
.nav-item.active { background-color: var(--menu-hover); border-left-color: var(--menu-primary); font-weight: bold; }
.nav-icon { 
    margin-right: 12px; 
    font-size: 1.2rem; 
    text-align: center; 
    width: 30px; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: margin 0.3s;
}
.nav-text { 
    white-space: normal; 
    word-break: break-all;
    line-height: 1.3;
    font-size: 0.95rem;
    opacity: 1; 
    transition: opacity 0.3s; 
    flex: 1;
}

/* メニューのグループ見出しと区切り線 */
.menu-section-label {
    padding: 8px 15px !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
    color: #ffffff !important; /* 白色テキスト */
    background-color: #27ae60 !important; /* はっきりとした緑背景 */
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    user-select: none;
    list-style: none !important;
    display: block !important;
    line-height: 1.5 !important;
    margin: 15px 10px 5px 10px !important;
    width: auto !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
}
.sidebar-collapsed .menu-section-label { display: none !important; }
.menu-divider {
    height: 1px !important;
    border-top: 1px solid #ccc !important;
    margin: 15px 20px 10px !important;
    list-style: none;
    display: block !important;
    opacity: 1 !important;
    clear: both;
}
.sidebar-collapsed .menu-divider { margin: 8px 5px !important; }

/* ドラッグ＆ドロップ状態 */
.nav-item-container.dragging { opacity: 0.4; background: #eee; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.nav-item-container.drag-over { border-top: 2px dashed var(--menu-primary); background: rgba(46, 204, 113, 0.05); }
.drag-handle { display: none; cursor: grab; padding: 15px 10px; color: #aaa; position: absolute; right: 0; top: 0; user-select: none; }
body.sort-mode .drag-handle { display: block; }
body.sort-mode .nav-item-container { touch-action: none; user-select: none; }
body.sort-mode .nav-item { padding-right: 40px; pointer-events: none; }

/* サイドバーフッター部 */
.sidebar-footer { padding: 15px 10px; border-top: 1px solid var(--menu-border); }
.btn-sort-toggle { width: 100%; padding: 8px; font-size: 12px; background: #ecf0f1; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; color: #333; transition: 0.2s;}
.btn-sort-toggle:hover { background: #dfe6e9; }
body.sort-mode .btn-sort-toggle { background: var(--menu-primary); color: white; border-color: var(--menu-primary); }

/* スマホ用メディアクエリ */
@media (max-width: 768px) {
    body { flex-direction: column; }
    #app-header { display: flex; padding: 0 10px; }
    .hamburger-btn { display: block; margin-right: 5px; }
    
    /* スマホではヘッダーのボタンは非表示、サイドバー内のものを表示 */
    #header-lang-btn, #header-charge-btn { display: none; }
    .mobile-actions { display: block; }
    
    /* ポイント表示等の微調整 */
    .header-points-display { font-size: 1rem; }
    #charge-status-container { display: none; } /* スマホではヘッダーのステータスを隠す */
    .sidebar-charge-status { 
        padding: 10px; background: #fff; border: 1px solid #ddd; 
        border-radius: 8px; margin-bottom: 10px; font-size: 0.85rem; 
        text-align: center; color: #666;
    }
    .sidebar-charge-status .charge-timer { color: #e74c3c; font-weight: bold; font-size: 1rem; margin-top: 2px; }

    #app-sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        margin-top: 0;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        transform: translateX(-100%);
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    body.mobile-menu-open #app-sidebar { transform: translateX(0); }
    .sidebar-header { display: none; }
    
    /* モバイル用メニューの背景オーバーレイ */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 4998; /* サイドバー(4999)のすぐ下 */
        backdrop-filter: blur(2px);
        animation: fadeInOverlay 0.3s ease;
    }
    body.mobile-menu-open .sidebar-overlay { display: block; }
    @keyframes fadeInOverlay {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .main-content {
        margin-top: var(--header-height);
        height: calc(100vh - var(--header-height));
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    body.sidebar-collapsed #app-sidebar { width: var(--menu-width); }
    body.sidebar-collapsed .nav-text { display: block !important; }
    body.sidebar-collapsed .nav-item { 
        justify-content: flex-start; 
        padding: 15px 15px;
        width: 100% !important; 
    }
    
    /* モバイルでのアイコンとテキストの間の余白を最適化（はみ出し防止含む） */
    .nav-icon { 
        margin-right: 16px !important; 
        width: 32px !important;
        font-size: 1.2rem;
    }
    .nav-text {
        white-space: normal;
        word-break: break-all;
        line-height: 1.2;
        font-size: 0.9rem;
        overflow: visible;
        text-overflow: clip;
    }
    
    /* フッターボタン等の幅をモバイルに合わせる (ブラウザバー考慮で少し余白追加) */
    .sidebar-footer { padding: 15px 10px 30px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
    .btn-sort-toggle { width: calc(100% - 10px); margin: 0 auto; display: block; }
}

footer { 
    margin-top: 60px; 
    padding: 40px 20px 80px; 
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee; 
    text-align: center; 
    font-size: 0.9rem; 
    color: #333; 
    width: 100%; 
    box-sizing: border-box;
    clear: both;
    position: relative;
    z-index: 10;
}
.disclaimer-box {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 11px;
    color: #666;
    background: #fafafa;
    line-height: 1.6;
    text-align: left;
}
.footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 15px; margin-bottom: 15px; }
.footer-links a { text-decoration: none; color: #333; font-weight: 600; white-space: nowrap; padding: 5px 0; }
.footer-links .sep { color: #ccc; user-select: none; }
.copyright { margin-top: 20px; font-weight: bold; color: #555; }
@media (max-width: 480px) {
    .footer-links .sep { display: none; }
    .footer-links { flex-direction: column; gap: 5px; }
}

/* Contact form layout override */
#contact-form { width: 100%; max-width: 800px; margin: 0 auto; }
.contact-desc { max-width: 800px; margin-left: auto; margin-right: auto; text-align: left; }

/* ============================================================
   カスタム確認モーダル（共通基盤）
   common.css から統合: 全ページでの正常表示を保証
   ============================================================ */
.custom-confirm-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 10000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeInUI 0.2s ease-out;
}
.custom-confirm-modal {
    background: var(--background-white);
    width: 90%; max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: popInUI 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    border: 1px solid rgba(0,0,0,0.05);
}
.custom-confirm-header {
    padding: 24px 24px 12px;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
}
.custom-confirm-header span {
    font-size: 1.8rem;
}
.custom-confirm-header h3 {
    margin: 0; font-size: 1.3rem; font-weight: 800; color: #1a1a1a;
    letter-spacing: -0.02em;
}
.custom-confirm-body {
    padding: 0 24px 28px;
    font-size: 1rem; color: #4b5563; line-height: 1.6;
    white-space: pre-wrap;
}
.custom-confirm-footer {
    padding: 16px 24px;
    background: #fdfdfd;
    display: flex; justify-content: flex-end; gap: 10px;
    border-top: 1px solid #f3f4f6;
}
.custom-confirm-btn {
    padding: 12px 24px; border: none; border-radius: 12px;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.custom-confirm-btn-ok {
    background: linear-gradient(135deg, var(--primary-green), #27ae60);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}
.custom-confirm-btn-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.35);
}
.custom-confirm-btn-ok:active {
    transform: translateY(0);
}
.custom-confirm-btn-cancel {
    background: #f3f4f6; color: #4b5563;
}
.custom-confirm-btn-cancel:hover {
    background: #e5e7eb; color: #1f2937;
}

@keyframes fadeInUI { from { opacity: 0; } to { opacity: 1; } }
@keyframes popInUI { 
    0% { transform: scale(0.9); opacity: 0; } 
    100% { transform: scale(1); opacity: 1; } 
}

@media (max-width: 480px) {
    .custom-confirm-modal { width: 94%; }
    .custom-confirm-footer { flex-direction: column-reverse; }
    .custom-confirm-btn { width: 100%; padding: 14px; }
}
/* CAB リカバリ関連スタイル */
.recovery-code-container {
    background: #fdfdfd;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}
.recovery-code-container.revealed {
    border-color: var(--primary-green);
    background: #f0fff4;
}
.recovery-code-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.recovery-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
    display: block;
    margin: 5px 0;
    filter: blur(5px);
    transition: filter 0.3s;
}
.revealed .recovery-code-value {
    filter: blur(0);
}
.recovery-code-memo {
    font-size: 0.7rem;
    color: #999;
    margin-top: 8px;
    display: block;
}
.recovery-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}
.recovery-link:hover {
    color: var(--primary-green);
}

@media (max-width: 480px) {
    .recovery-code-value { font-size: 1.1rem; }
}
