:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #06b6d4;
    --accent: #14b8a6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f8fafc;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.2);
    --bg-gradient-1: #0ea5e9;
    --bg-gradient-2: #06b6d4;
    --card-bg: rgba(255, 255, 255, 0.98);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 70%);
    backdrop-filter: blur(3px);
    animation: float 25s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    top: 40%;
    right: -100px;
    animation-delay: 8s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    bottom: -150px;
    left: 40%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    33% { 
        transform: translate(50px, -50px) scale(1.15) rotate(120deg);
        opacity: 0.8;
    }
    66% { 
        transform: translate(-30px, 30px) scale(0.85) rotate(240deg);
        opacity: 0.5;
    }
}

/* 容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.icon {
    font-size: 72px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text {
    text-align: left;
}

h1 {
    color: white;
    margin-bottom: 8px;
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 主要功能区 */
.main-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.input-section {
    margin-bottom: 28px;
}

.input-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
    font-size: 15px;
}

.label-icon {
    font-size: 20px;
}

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

input[type="text"] {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    color: var(--dark);
    font-weight: 600;
    letter-spacing: 1px;
}

input[type="text"]:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-clear {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 18px;
}

.btn-clear:hover {
    background: #e2e8f0;
    color: var(--danger);
    transform: scale(1.1);
}

/* 操作按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.45);
}

.btn-tertiary {
    background: linear-gradient(135deg, var(--accent) 0%, #0d9488 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.45);
}

/* 结果显示区 */
.result-section {
    display: none;
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-section.show {
    display: block;
}

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

.code-card {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 24px;
    border: 2px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.12);
    position: relative;
    overflow: hidden;
}

.code-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.code-label {
    color: #0891b2;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-copy-code {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-copy-code:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.code-value {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 50%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 18px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    user-select: none;
}

.code-value:hover {
    transform: scale(1.05);
    letter-spacing: 22px;
}

.code-hint {
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    margin-top: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* 倒计时卡片 */
.timer-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    border: 2px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
}

.timer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.timer-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.timer-info {
    flex: 1;
}

.timer-label {
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.timer-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.timer-value span:first-child {
    font-size: 48px;
    font-weight: 900;
    color: #78350f;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    line-height: 1;
}

.timer-unit {
    font-size: 20px;
    font-weight: 700;
    color: #92400e;
}

.timer-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    transition: width 1s linear;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* 二维码卡片 */
.qr-card {
    display: none;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid rgba(20, 184, 166, 0.25);
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.15);
    text-align: center;
}

.qr-card.show {
    display: block;
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 700;
    color: #0d9488;
    font-size: 15px;
}

.btn-close-qr {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    color: #0d9488;
    font-weight: bold;
}

.btn-close-qr:hover {
    transform: scale(1.1) rotate(90deg);
    background: #ccfbf1;
}

#qrcode {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.qr-hint {
    margin-top: 20px;
    color: #0d9488;
    font-size: 14px;
    font-weight: 600;
}

/* 信息卡片区 */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

.info-card h3 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.list-icon {
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
}

.security-card {
    border: 2px solid rgba(239, 68, 68, 0.15);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98) 0%, rgba(254, 226, 226, 0.98) 100%);
}

.security-card .list-icon {
    color: var(--warning);
}

.demo-key-box {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    padding: 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border: 2px solid rgba(6, 182, 212, 0.2);
}

.demo-label {
    color: var(--gray);
    font-weight: 700;
    font-size: 14px;
}

.demo-key {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.demo-key:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.demo-hint {
    color: var(--gray);
    font-size: 13px;
    font-style: italic;
}

/* 已保存密钥区 */
.saved-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e2e8f0;
}

.saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.saved-header h3 {
    color: var(--dark);
    font-size: 18px;
    font-weight: 800;
}

.btn-clear-all {
    padding: 8px 16px;
    border: 2px solid var(--danger);
    background: white;
    color: var(--danger);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-clear-all:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.secrets-list {
    display: grid;
    gap: 12px;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 48px;
    padding: 32px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer p {
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 通知提示 */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 16px 28px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.35);
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
    font-size: 15px;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notification::before {
    content: '✓';
    margin-right: 10px;
    font-size: 18px;
    display: inline-block;
    animation: checkmark 0.5s ease;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(-45deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.notification.show {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h3 {
    color: var(--dark);
    font-size: 20px;
    font-weight: 800;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    .container {
        margin: 0;
    }
    
    .logo {
        flex-direction: column;
        gap: 12px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .main-section {
        padding: 24px;
        border-radius: 20px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .code-value {
        font-size: 48px;
        letter-spacing: 12px;
    }
    
    .code-value:hover {
        letter-spacing: 14px;
    }
    
    .timer-icon {
        font-size: 36px;
    }
    
    .timer-value span:first-child {
        font-size: 36px;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .notification {
        top: 16px;
        right: 16px;
        left: 16px;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        border-radius: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.theme-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

/* 深色模式 */
body.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

body.dark-mode .main-section,
body.dark-mode .info-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode h1,
body.dark-mode .subtitle {
    color: white;
}

body.dark-mode .input-section label,
body.dark-mode .info-card h3,
body.dark-mode .saved-header h3 {
    color: #f1f5f9;
}

body.dark-mode input[type="text"] {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

body.dark-mode input[type="text"]:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode input[type="text"]:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
}

body.dark-mode .btn-clear {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

body.dark-mode .btn-clear:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .code-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-color: rgba(6, 182, 212, 0.3);
}

body.dark-mode .code-hint {
    color: #94a3b8;
}

body.dark-mode .timer-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

body.dark-mode .timer-label {
    color: #fbbf24;
}

body.dark-mode .timer-value span:first-child {
    color: #fde047;
}

body.dark-mode .timer-unit {
    color: #fbbf24;
}

body.dark-mode .qr-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(13, 148, 136, 0.1) 100%);
    border-color: rgba(20, 184, 166, 0.3);
}

body.dark-mode .qr-header,
body.dark-mode .qr-hint {
    color: #5eead4;
}

body.dark-mode .btn-close-qr {
    background: rgba(255, 255, 255, 0.1);
    color: #5eead4;
}

body.dark-mode .btn-close-qr:hover {
    background: rgba(94, 234, 212, 0.2);
}

body.dark-mode .info-list li {
    color: #94a3b8;
}

body.dark-mode .demo-key-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-color: rgba(6, 182, 212, 0.3);
}

body.dark-mode .demo-label,
body.dark-mode .demo-hint {
    color: #94a3b8;
}

body.dark-mode .security-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

body.dark-mode .saved-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .secret-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .secret-item div:first-child div:first-child {
    color: #f1f5f9 !important;
}

body.dark-mode .secret-item div:first-child div:last-child {
    color: #94a3b8 !important;
}

body.dark-mode .secret-item button {
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .theme-toggle {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-content {
    background: #1e293b;
}

body.dark-mode .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-header h3 {
    color: #f1f5f9;
}

body.dark-mode .modal-body {
    color: #94a3b8;
}

body.dark-mode .modal-body h4 {
    color: #f1f5f9 !important;
}

body.dark-mode .modal-close {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

body.dark-mode .modal-close:hover {
    background: var(--danger);
    color: white;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    
    .theme-icon {
        font-size: 20px;
    }
}
