* {
    box-sizing: border-box;
    font-family: Tahoma, Arial;
}

body {
    margin: 0;
    background: #111;
    color: #fff;
}

.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-card {
    width: 100%;
    max-width: 420px;
    background: #222;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

h1, h2 {
    text-align: center;
}

.field {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
}

input, select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #111;
    color: #fff;
}

button {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: #ffbf00;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #e0a800;
}

/* Preview */

.preview-card {
    margin-top: 20px;
}

.preview-frame {
    width: 100%;
    height: 320px;
    background: #000;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.preview-frame img {
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.preview-frame span {
    color: #666;
}

/* Loading */

.loading {
    margin: 15px auto;
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #ffbf00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #777;
}
