.section-green-hd {
    justify-content: space-between;
}

.section-green-hd .btn-upload {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.section-green-hd .btn-upload:hover {
    background: #fff;
    color: #1b5e20;
}

.section-green-hd .btn-upload svg {
    width: 14px;
    height: 14px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 800;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.btn-close:hover {
    color: #ed1c24;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.input-pin {
    width: 100%;
    padding: 12px;
    line-height: 1;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.5rem;
    font-family: "VAGRounded", sans-serif !important;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.input-pin:focus {
    outline: none;
    border-color: #1b5e20;
}

.error-msg {
    color: #ed1c24;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #1b5e20;
    background: #f0fdf4;
}

.upload-dropzone svg {
    color: #94a3b8;
    margin-bottom: 12px;
}

.upload-dropzone p {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}

.upload-dropzone strong {
    color: #1b5e20;
    font-size: 0.95rem;
}

.upload-preview {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    background: #000;
}

.upload-preview img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

.preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(4px);
}

.preview-info span {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-remove {
    background: #ed1c24;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-remove:hover {
    background: #c62828;
}

.upload-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.upload-meta label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.input-select,
.input-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #0f172a;
    outline: none;
}

.input-select:focus,
.input-text:focus {
    border-color: #1b5e20;
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 16px;
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
