* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: #EFEFF4;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

input[type="text"],
select,
input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: 0.25s ease;
    font-size: 14px;
    background: #fafafa;
}

input:focus,
select:focus {
    border-color: #22c55e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    outline: none;
}

button {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: 0.25s ease;

    background: #FFA74C;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

button:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
}

.preview-container {
    margin-top: 15px;
    text-align: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
    display: none;
    border: 1px solid #ddd;
}

.status-message {
    margin-top: 18px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.status-message.success {
    color: #16a34a;
}

.status-message.error {
    color: #dc2626;
}

.rules-btn {
        margin: 10px 0 18px;
        width: 100%;
        border: 1px solid rgba(0,0,0,.12);
        background: #da0505;
        padding: 10px 12px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 14px;
      }
      .rules-btn:hover { opacity: .92; }

      .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 16px;
        z-index: 9999;
      }
      .modal-overlay.open { display: flex; }

      .modal {
        width: 100%;
        max-width: 560px;
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,.25);
      }
      .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(0,0,0,.08);
      }
      .modal-title {
        margin: 0;
        font-size: 16px;
      }
      .modal-close {
        border: none;
        background: transparent;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        padding: 4px 8px;
      }
      .modal-body {
        padding: 14px 16px 16px;
        font-size: 14px;
        line-height: 1.45;
      }
      .modal-body ol { padding-left: 18px; margin: 0; }
      .modal-body li { margin: 10px 0; }
      .modal-body a { text-decoration: underline; }
      .modal-footer {
        padding: 12px 16px;
        border-top: 1px solid rgba(0,0,0,.08);
        display: flex;
        justify-content: flex-end;
      }
      .modal-ok {
        border: none;
        border-radius: 10px;
        padding: 10px 14px;
        cursor: pointer;
      }