* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    color: #aaa;
    margin-top: 8px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #e94560;
    box-shadow: 0 4px 15px rgba(233,69,96,0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.card h2 {
    margin-bottom: 8px;
}

.card .sub {
    color: #bbb;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

textarea, input[type="password"], input[type="file"] {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: monospace;
}

textarea {
    resize: vertical;
    font-family: monospace;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #e94560;
}

.file-area {
    margin-top: 10px;
}

.file-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(233,69,96,0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.file-label:hover {
    background: rgba(233,69,96,0.4);
}

.info-text {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 5px;
}

.primary-btn, .secondary-btn, .reveal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn {
    background: #e94560;
    color: white;
    margin-top: 10px;
}

.primary-btn:hover {
    background: #d63a55;
    transform: scale(1.02);
}

.secondary-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    margin-top: 10px;
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.25);
}

.reveal-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,87,108,0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(245,87,108,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,87,108,0); }
}

.qr-output, .reveal-output {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.qr-output h3, .reveal-output h3 {
    margin-bottom: 15px;
    text-align: center;
}

#qr-canvas-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.qr-actions {
    display: flex;
    gap: 10px;
}

.hidden {
    display: none;
}

.reveal-output .blurred-content {
    filter: blur(8px);
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
    transition: filter 0.3s ease;
    cursor: pointer;
}

.reveal-output .blurred-content.revealed {
    filter: blur(0);
}

.secret-content {
    font-family: monospace;
    word-break: break-all;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.warning-box {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255,100,100,0.15);
    border-left: 3px solid #e94560;
    border-radius: 8px;
    font-size: 0.8rem;
}

.revealed-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.75rem;
    color: #888;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .card {
        padding: 20px;
    }
    .qr-actions, .revealed-actions {
        flex-direction: column;
    }
}