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

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --border: #1e1e2e;
    --text: #e0e0e8;
    --text-dim: #6a6a7a;
    --accent: #7c5cfc;
    --accent-hover: #9479ff;
    --danger: #f04060;
    --success: #30d080;
    --radius: 8px;
    --font: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 520px;
}

h1 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 28px;
}

textarea {
    width: 100%;
    min-height: 160px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    padding: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: var(--accent);
}

textarea::placeholder {
    color: var(--text-dim);
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 16px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

button:hover {
    background: var(--accent-hover);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.result {
    margin-top: 24px;
    display: none;
}

.result.visible {
    display: block;
}

.link-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    word-break: break-all;
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
}

.link-box:hover {
    border-color: var(--accent);
}

.link-box .copy-hint {
    display: block;
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 8px;
}

.message-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.7;
}

.status {
    text-align: center;
    padding: 40px 20px;
}

.status.error {
    color: var(--danger);
}

.status.loading {
    color: var(--text-dim);
}

.destroyed-notice {
    margin-top: 20px;
    padding: 10px 14px;
    background: rgba(240, 64, 96, 0.08);
    border: 1px solid rgba(240, 64, 96, 0.2);
    border-radius: var(--radius);
    color: var(--danger);
    font-size: 12px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.encrypted {
    background: rgba(124, 92, 252, 0.12);
    color: var(--accent);
}

.badge.destroyed {
    background: rgba(240, 64, 96, 0.12);
    color: var(--danger);
}

.footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-dim);
    font-size: 11px;
}
