@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-700.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fira Mono';
    src: url('../fonts/firamono-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
:root {
    --bg: #1a1e1e;
    --bg-surface: #1f2424;
    --bg-card: #232828;
    --bg-card-inner: #1c2222;
    --text-primary: #ffffff;
    --text-muted: #8c9b9d;
    --accent: #e67e22;
    --accent-hover: #f0932e;
    --accent-dim: rgba(230, 126, 34, 0.12);
    --border: #2e3636;
    --radius-lg: 20px;
    --radius-md: 14px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.hero {
    padding: 5rem 1.25rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-inner));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    border: 1px solid var(--border);
}
.hero-logo svg { width: 44px; height: 44px; filter: drop-shadow(0 4px 8px rgba(230, 126, 34, 0.2)); }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 2rem; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35); width: 100%; max-width: 720px; }
.input-row { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.field-group { text-align: left; }
.field-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }
input { width: 100%; background: var(--bg-card-inner); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.25rem; color: var(--text-primary); font-size: 1rem; outline: none; transition: all var(--transition); }
input:focus { border-color: var(--accent); box-shadow: 0 0 15px rgba(230, 126, 34, 0.1); }
input[type="datetime-local"], input[type="password"] { color-scheme: dark; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.75rem; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: all var(--transition); width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.result-container { margin-top: 2rem; display: none; animation: fadeUp 0.5s ease both; }
.result-container:not(.is-hidden) { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.result-card { background: var(--bg-card-inner); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: all var(--transition); cursor: pointer; }
.result-card:not(.is-error):hover { border-color: var(--accent); background: rgba(230, 126, 34, 0.05); }
.result-card.is-error { justify-content: center; cursor: default; }
.result-url { font-family: "Fira Mono", monospace; color: var(--accent); font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-error { color: #ff4d4d; font-weight: 600; font-size: 0.95rem; white-space: normal; }
.result-note { margin-top: 0.85rem; color: #ff4d4f; font-size: 0.9rem; font-weight: 700; text-shadow: 0 0 10px rgba(255,77,79,0.18); }
.copy-btn { background: rgba(255,255,255,0.05); color: var(--text-primary); width: auto; font-size: 0.85rem; padding: 0.5rem 1rem; flex-shrink: 0; pointer-events: none; }
.qr-container { margin-top: 1.5rem; display: flex; justify-content: center; }
.is-hidden { display: none !important; }
.qr-code { background: #fff; padding: 12px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.qr-code img { display: block; }
.footer { background: var(--bg-surface); padding: 5rem 0 3rem; margin-top: auto; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 4rem; }
.footer-col h4 { color: var(--text-muted); font-size: 0.85rem; font-weight: 700; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col a { display: block; color: var(--text-primary); font-size: 0.95rem; margin-bottom: 0.8rem; font-weight: 400; opacity: 0.85; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.footer-bottom a { font-weight: 700; color: var(--accent); }
.footer-bottom a:hover { color: var(--accent-hover); }
.options-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem 0;
    cursor: pointer;
    transition: color var(--transition);
    user-select: none;
}
.options-toggle:hover { color: var(--accent); }
.options-toggle .icon { transition: transform var(--transition); }
.options-toggle.active .icon { transform: rotate(180deg); }
.options-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}
.options-content.active {
    max-height: 500px;
    transition: max-height 0.4s ease-in-out;
    margin-bottom: 1rem;
}
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem;
}
.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .card { padding: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .options-row { grid-template-columns: 1fr; }
}
