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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: #8e8e93;
    font-size: 1.1rem;
}

main {
    display: grid;
    gap: 32px;
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #8e8e93;
}

.settings {
    background: #1c1c1e;
    border-radius: 16px;
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 0.9rem;
    color: #8e8e93;
    margin-bottom: 8px;
}

select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    background: #2c2c2e;
    color: #fff;
    border: 1px solid #3a3a3c;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238e8e93'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

select:focus {
    outline: none;
    border-color: #0a84ff;
}

optgroup {
    font-weight: 600;
    color: #8e8e93;
}

option {
    padding: 8px;
}

.preview {
    background: #1c1c1e;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

#preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    max-height: 400px;
    object-fit: contain;
    background: #000;
}

.hint {
    font-size: 0.85rem;
    color: #636366;
    margin-top: 12px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: #0a84ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn:hover {
    background: #0066cc;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
}

.btn-secondary:hover {
    background: #3a3a3c;
}

.links {
    background: #1c1c1e;
    border-radius: 16px;
    padding: 20px;
}

.link-box label {
    margin-bottom: 8px;
}

.link-box input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    background: #2c2c2e;
    color: #fff;
    border: 1px solid #3a3a3c;
    border-radius: 10px;
    font-family: monospace;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #636366;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
